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

Unable to set metadata for entity_alias #827

Closed
johannesesbjornsson opened this issue Jul 23, 2020 · 2 comments
Closed

Unable to set metadata for entity_alias #827

johannesesbjornsson opened this issue Jul 23, 2020 · 2 comments

Comments

@johannesesbjornsson
Copy link
Contributor

johannesesbjornsson commented Jul 23, 2020

For the vault_identity_entity resource it's possible to set metadata, however for the vault_identity_entity_alias resource it's not, even though it's possible to do it the the vault api.

This then gets in the way of using this type of policy templating identity.entity.aliases.<mount accessor>.metadata.<metadata key>

Is setting alias metadata planned to be supported in the near future?

@ludydoo
Copy link

ludydoo commented Sep 23, 2021

Looking for this as well
I'd like to provision with terraform the vault_identity_entity_alias that would otherwise be created by the kubernetes auth.
Currently it's not possible to specify the metadata in the alias using terraform

@vinay-gopalan
Copy link
Contributor

@johannesesbjornsson thank you for raising an issue! Currently, the entity alias metadata field is only set by Vault and is not available for reading and updating via the API. If you would like to add any metadata for things like policy templating, then you can use the custom_metadata field to do it. We recently merged an improvement to the feature that enables users to configure custom_metadata through the TF Vault Provider and it is milestoned for v3.1.0 #1235

Please feel free to open another issue if the problem still persists!

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

No branches or pull requests

3 participants