Skip to content

[v2] Warn on credentials file permissions#10334

Closed
kdaily wants to merge 1 commit into
v2from
feature/credentials-file-permissions-v2
Closed

[v2] Warn on credentials file permissions#10334
kdaily wants to merge 1 commit into
v2from
feature/credentials-file-permissions-v2

Conversation

@kdaily
Copy link
Copy Markdown
Member

@kdaily kdaily commented May 21, 2026

Issue #, if available:

#10019

Description of changes:

Users running the following commands now see a warning if the credentials file has permissions beyond the default of 0o600.

  • aws configure set (if setting access key,secret key, or token)
  • aws configure (if setting access key,secret key, or token)
  • aws configure import
  • aws configure mfa-login

Developers can now specify a credential check in the ConfigFileWriter.update_config method. This is used in all instances except for configure import so that a warning message is only printed once.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Users running the following commands now see a warning if the
credentials file has permissions beyond the default of 0o600.

- `aws configure set` (if setting access key,secret key, or token)
- `aws configure` (if setting access key,secret key, or token)
- `aws configure import`
- `aws configure mfa-login`

Developers can now specify a credential check in the
`ConfigFileWriter.update_config` method. This is used in all instances
except for `configure import` so that a warning message is only printed
once.
@kdaily kdaily requested a review from AndrewAsseily May 21, 2026 20:52
@kdaily kdaily marked this pull request as draft May 21, 2026 21:58
@kdaily kdaily closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant