Skip to content
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

Add IAM tagging support for iam_user roles in AWS secret engine #10953

Merged
merged 4 commits into from
Feb 26, 2021

Conversation

Valarissa
Copy link
Contributor

This PR seeks to introduce the ability to add tags to user credentials generated by the AWS secret engine.

Details in usage are provided in the docs that have been updated with this feature, however, for ease of use, the following is an example of adding two tags to a role:

vault write aws/roles/my-role \
credential_type=iam_user \
iam_tags=test_key=test_value \
iam_tags=test_key2=test_value2 \
policy_document=-<<EOF
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "ec2:*",
      "Resource": "*"
    }
  ]
}
EOF

@vercel vercel bot temporarily deployed to Preview – vault-storybook February 22, 2021 23:33 Inactive
@vercel vercel bot temporarily deployed to Preview – vault February 22, 2021 23:33 Inactive
builtin/logical/aws/backend_test.go Outdated Show resolved Hide resolved
builtin/logical/aws/path_roles.go Show resolved Hide resolved
builtin/logical/aws/secret_access_keys.go Outdated Show resolved Hide resolved
website/content/api-docs/secret/aws.mdx Show resolved Hide resolved
Lauren Voswinkel added 4 commits February 25, 2021 15:36
This change allows iam_users generated by the secrets engine
to add custom tags in the form of key-value pairs to users
that are created.
@vercel vercel bot temporarily deployed to Preview – vault-storybook February 25, 2021 23:36 Inactive
@Valarissa Valarissa merged commit eece14e into master Feb 26, 2021
Valarissa pushed a commit that referenced this pull request Mar 10, 2021
Valarissa pushed a commit that referenced this pull request Mar 10, 2021
Valarissa pushed a commit that referenced this pull request Mar 10, 2021
Valarissa pushed a commit that referenced this pull request Mar 11, 2021
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.

3 participants