-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alphabets in secret version id are converted UPPER_CASE only when --output text
is specified
#7138
Comments
Hi @goldeneggg thanks for reaching out. In terms of the values you're referring to (AWSPREVIOUS, AWSCURRENT), I believe that those are supposed to be uppercase as per the Secrets Manager documentation: https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html. |
Thank you for your response. I reported about the version id in UUID format. (not the string "AWSPREVIOUS" or "AWSCURRENT"). For example, as mentioned in the description, if the version id is registered as
I expect the version id to be returned in lower case even if I specify |
Hi @goldeneggg thanks for clarifying that, I see what you're saying now. It seems to be the default behavior that identifiers in text output are always uppercase as shown here in the User Guide. That aws secretsmanager list-secrets --query 'SecretList[*].SecretVersionsToStages' --output json | jq '.[]' | jq 'keys' |
@tim-finnigan On the other hand, the
A possible scenario is as follows
In my personal opinion, I thought it would be better to unify either upper or lower case letters, or to not strictly distinguish between upper and lower case letters. Please see also https://www.uuidtools.com/what-is-uuid#case-sensitive and ramsey/uuid#131 |
Thanks @goldeneggg for the feedback. I see what you're saying, but any changes involving service API functionality would have to come from that team. I think it's unlikely that the Secrets Manager team would consider changing the version ID to be case insensitive, but I suggest reaching out to that team through the recommended channels here: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html#support-and-feedback. |
Checking in as there hasn't been any activity here for a while. To summarize up to now, the |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
I can't understand if this behavior is a bug or a spec so please let me know 🙏
When I ran the
aws secretsmanager list-secrets
oraws secretsmanager describe-secret
command with--output text
option, all the alphabets contained in the version id are converted to UPPER_CASE.aws secretsmanager list-secrets --query 'SecretList[*].SecretVersionsToStages' --output text
Other than
text
(e.g.json
,yaml
and others), I can get the expected id with lower_case alphabets.aws secretsmanager list-secrets --query 'SecretList[*].SecretVersionsToStages' --output json
Expected Behavior
All alphabets in version id are lower_case with
--output text
option (like--output json
option).Current Behavior
All alphabets in version id are UPPER_CASE with
--output text
option.Reproduction Steps
aws secretsmanager list-secrets --query 'SecretList[*].SecretVersionsToStages' --output json
aws secretsmanager list-secrets --query 'SecretList[*].SecretVersionsToStages' --output text
describe-secret
instead oflist-secrets
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.7.17 Python/3.10.5 Darwin/21.5.0 source/x86_64 prompt/off
Environment details (OS name and version, etc.)
OS X Monterey 12.4 (Intel Mac)
The text was updated successfully, but these errors were encountered: