-
Notifications
You must be signed in to change notification settings - Fork 0
Add Group Space for a new Team
Link to the JIRA ticket.
The first step is to create a group in vault-sync-config and give it the required permissions. Add the following code in config.json of vault-sync-config
{ "kv": "groups", "name": "team-name", "policies": [] }
Once you push the code in the main, a GitHub action will run which will add the new team in vault-sync-app
Now we have a Group space, we need to add members to the group.
There are two apps OpenSearch and Vault, for this example let's add the group members for Vault. To add members in Vault add the following code in integration-roles.json of auth-sync-config-knox
{ "group": "group", "name": "data-foundations", "members": { "static": [ "john.doe@gov.bc.ca", "jane.doe@gov.bc.ca", "jill.doe@gov.bc.ca" ], "exclude": [ "vault-admin", "vault-superadmin" ] }
After this code is merged in the main branch it will run a GitHub Action in auth-sync-app
Now to see the Group in the Vault application you have to create a dummy secret. The Group space is created in the Vault app at a random path. When adding a dummy secret, you also have to add the path.
Once this secret with a path is added you can see the Group name in the Vault application.