GeezerVison is showing github.com — Cloud security (add new user) Phase II · Issue #109 · commitdev/zero-aws-eks-stack
Cloud security (add new user) Phase II #109DescriptionAlong with Could security - add new member, we completed DevOps/Admin side with kind of best experience. However, we need to further figure out how to improve new member side of experience with quick client setup and resource accessibility to both AWS and K8S. Activitysshi100 commented on Sep 25, 2020 ContributorAuthor More actions Requirements & Workflow(draft):
-
DevOps: After creating new users, an operator needs a way to easily get temporary passwords for those users to give to them.
The users should be required to change their passwords when they log in.
Users should have permission to create access keys.
-
Member: After creating access keys, a user should be able to clone the infra repo and run a script that will check their configuration and attempt to set things up for them.
Script should check if user has the aws cli. If not, it should tell them how to get it.
Script should check if user has any aws creds set up, or if there is a current profile, if not, it should prompt the user to enter credentials and we can save them with aws configure set.
Script should check if user has kubectl. If not, it should tell them how to get it.
Script should check if user has a kube context. If not, it should use our make command to add a context.
-
Newly created members should require MFA to be enabled.
Tasks:
- Script: setup-user-access.sh
- Script: sanity test to verify resource accessibility (optional)
- README
sshi100 commented on Sep 29, 2020 ContributorAuthor More actions Per discussion with @bmonkman , as TF creation of password (even temporary password) needs to deal with keybase and consider of small team of password distribution practice, we would create another ticket for later handling. For now, we just have an Operator to manually create temporary password and pass to the team in whatever way that they feel confident and convenient. sshi100 commented on Sep 29, 2020 ContributorAuthor More actions For requirement #3, a new ticket is created: #115 bmonkman commented on Sep 29, 2020 Can you add some documentation about how to use the aws cli to create temporary passwords? Maybe a one-liner or something they could run.. sshi100 commented on Oct 1, 2020 ContributorAuthor More actions Enhancements:
- added user profile setup script for Admin, which does auto-detect "new" users and create temporary passwords etc.
sshi100 commented on Oct 1, 2020 ContributorAuthor More actions Flow:
- ops-person: add new users into the users array in
shared/main.tf, then do make apply;
- ops-person: run
scripts/setup-user-password.sh to create their passwords
- ops-person: grant git access and pass password to new users
- new-user: checkout git code, and run
scripts/setup-user-access and run locally
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|