Git Users
Applies to Roles (in environments)
- System Administrator (DEV, UAT, NFT, PROD)
- Developer (DEV)
Athena by default has two platform repositories
(where it stores platform environment configuration) and default development repository
Platform repositories
- gitolite-admin - git repository access management configuration storage
System Administrator
role must have access togitolite-admin
repository
- ansible-data - encrypted platform secret (service user passwords, system user keys and certificates) storage.
It is necessary to obtain
transcrypt key
to use ansible-data repository
System Administrator
role must have access toansible-data
repository
Development repositories
- default development repository
<owner>
(forowner test
repositoryname is test
) - any other development repository
System Administrator
role must have access to<owner>
repository inDEV environment
to be able to access platform specific configuration Ansible playbooks
Access required
- System Administrator
Command
For detailed information please check athena-users git command documentation.
athena-users [USER-OPTIONS] git [GIT-OPTIONS] <username> <email>
Parameters
<email>
- User email.<username>
- User name, for example: john.smith.
Options
- GIT-OPTIONS
--access <access>
- “R” - read,
- “W” - write,
- “RW” - read/write,
- “RW+” - full access
-r, --repo <repo>
- Repository name.
- USER-OPTIONS
--state <state>
present
-default option
, adds user access.absent
- Removes user access.
Examples
- To add user public key to platform (test) dev environment main git repository (key must be present in /var/ansible/data/ssh/john.smith-test-dev.pub):
athena-users git john.smith john.smith@example.com
- To revoke user access to platform (test) dev environment main git repository (key must be present in /var/ansible/data/ssh/john.smith-test-dev.pub):
athena-users --state absent git test.user test.user@example.com
- To allow user to manage platform (test) dev environment Git SCM users (key must be present in /var/ansible/data/ssh/john.smith-test-dev.pub)
athena-users git -a RW+ -r gitolite-admin john.smith john.smith@example.com
- To allow user to manage platform (test) dev environment platform secrets (key must be present in /var/ansible/data/ssh/john.smith-test-dev.pub)
athena-users git -a RW+ -r ansible-data john.smith john.smith@example.com