-
Notifications
You must be signed in to change notification settings - Fork 66
New tool to create GitHub secrets based on IAM creds extracted from Terraform state. #5
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
Conversation
Cleanup Linux instructions and add WSL references to CONTRIBUTING.md
Update actions/checkout to v2 Update formatting to match downstream children
…n_and_checkout_action Update Python and actions/checkout Versions
Update pre-commit hooks (and flip Actions cache order in workflow).
… verbose '--requirement'.
…ches Use Verbose pip Switches
Autoupdate pre-commit hooks. Add mypy.
…provement/iam_to_github
Adds the ability to filter users. Adds better pre-launch checks. Adds ability to add suffixes to secret names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but please see my one comment/question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome- can't wait to use it! 🎸
I noted a few superficial items to clean up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really solid. Strong work 💪
I did have some superficial/preferential stuff for consideration.
🗣 Description
Add the
iam-to-github
tool. Creates GitHub secrets for use in GitHub Actions.💭 Motivation and Context
We have a similar tool for our previous CI (Travis).
Terraform no longer displays the secret keys in show state.
This is a nice thing to have.
Features:
--repo
option.handle those nicely. If more than one user is found it will inform the user how to proceed.
--user
option to be used to filter users down to one. And a--suffix
option that can modify the names used to store secrets.🧪 Testing
I tested this on a personal repository as well as cisago
v/ansible-role-dev-ssh-access
(@dav3r I may have clobbered any secrets you put out there. If the terraform state changed since we debugged it.)
📷 Screenshots (if appropriate)
Don't worry I rolled the key in the screenshot before I posted the image. 😛
🚥 Types of Changes
✅ Checklist