Skip to content

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

Merged
Valarissa merged 4 commits into
masterfrom
add_iam_tag_support
Feb 26, 2021
Merged

Add IAM tagging support for iam_user roles in AWS secret engine#10953
Valarissa merged 4 commits into
masterfrom
add_iam_tag_support

Conversation

@Valarissa
Copy link
Copy Markdown

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

Comment thread builtin/logical/aws/backend_test.go Outdated
Comment thread builtin/logical/aws/path_roles.go Outdated
Comment thread builtin/logical/aws/secret_access_keys.go Outdated
Comment thread builtin/logical/aws/secret_access_keys.go Outdated
@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
Comment thread builtin/logical/aws/backend_test.go Outdated
Comment thread builtin/logical/aws/path_roles.go
Comment thread builtin/logical/aws/secret_access_keys.go Outdated
Comment thread website/content/api-docs/secret/aws.mdx
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