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 AWS EC2 auth method to the collection #370

Open
mechastorm opened this issue Apr 29, 2023 · 1 comment
Open

Add AWS EC2 auth method to the collection #370

mechastorm opened this issue Apr 29, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mechastorm
Copy link

SUMMARY

Official support for the ec2 auth method to generate a Vault Token

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.hashi_vault.vault_login

ADDITIONAL INFORMATION

From what I can understand from the documentation for this module, it does not support using native EC2 IMDS signature to login. Please correct me if I had misundersood this.

This auth method is useful for running on EC2 servers and would ensure the vault_login covers it. For now the workaround is doing manual Ansible uri calls for the Signature and either using the direct Vault Endpoint or Vault Agent / CLI to get a valid vault token.

@briantist briantist assigned briantist and unassigned briantist Apr 30, 2023
@briantist briantist added enhancement New feature or request help wanted Extra attention is needed labels Apr 30, 2023
@briantist briantist changed the title Can the vault_login module support AWS EC2 Auth method? Add AWS EC2 auth method to the collection Apr 30, 2023
@briantist
Copy link
Collaborator

Hi @mechastorm , you are correct that we don't currently support this auth method in the collection. We do support AWS IAM authentication, and IAM auth in Vault can be set to use EC2 inferencing (with some caveats, see the same documentation page you linked). HashiCorp also recommends using IAM auth rather than EC2 auth in most cases, so that might be something to consider.

That being said, it's a perfectly valid feature request.

I don't have any plans to implement it myself, but would welcome a PR to add the functionality.

If you're interested in adding this yourself we have a Contributor guide that can help you get started. Don't hesitate to ask any additional questions as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants