jenkinsci / hashicorp-vault-plugin

Jenkins plugin to populate environment variables from secrets stored in HashiCorp's Vault.
https://plugins.jenkins.io/hashicorp-vault-plugin/
MIT License
217 stars 143 forks source link

Add support to assume another iam role on aws IAM auth method #316

Closed kumarkeshav021 closed 1 year ago

kumarkeshav021 commented 1 year ago

Added support to assume another target IAM role for aws IAM auth method in case of Jenkins controller is running on different aws account and vault is on different.

Testing done

I have tested with Controller running with one aws account and vault is configured with different aws account.

### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [ ] Ensure that the pull request title represents the desired changelog entry
- [ ] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue