auth_groups
Auth groups represent a collection of users within a Dapla team.
These groups allow a team to be composed of users with different responsibilities. Each group is associated with roles and permissions through IAM bindings. The team's administrators can dynamically decide which users should be member of each auth group - as opposed to granting roles directly to specific users.
Thus, in order for a specific user to be granted a certain role, the user must be a member of the auth group.
Auth groups are named like so:
<team-name>-<auth-group-simple-name>
Examples:
demo-enhjoern-a-managers
demo-enhjoern-a-data-admins
demo-enhjoern-a-developers
demo-enhjoern-a-consumers
demo-enhjoern-a-support
The master system for authorization groups is Active Directory (AD). The groups are automatically mirrored into GCP as IAM groups.
AuthGroup
Bases: BaseModel
An AuthGroup
references a collection of Dapla users.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
the full name of the auth group (including the team name prefix), such as |
simple_name |
str
|
the name (without the team-name prefix), such as |
Source code in dapla_team_cli/tf/iam_bindings/auth_groups.py
31 32 33 34 35 36 37 38 39 40 |
|
AuthGroupValidator
Bases: Validator
Questionary Validator used for checking if the user provided AuthGroup
is properly formatted.
Source code in dapla_team_cli/tf/iam_bindings/auth_groups.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
validate(document)
Validate that an AuthGroup is appropriately formatted.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
document |
Document
|
The document to validate |
required |
Raises:
Type | Description |
---|---|
ValidationError
|
if input does not adhere to the naming convention. |
Source code in dapla_team_cli/tf/iam_bindings/auth_groups.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
ask_for_auth_group_name(team_name)
Ask the user for auth group to use.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
team_name |
str
|
The Dapla team name |
required |
Returns:
Type | Description |
---|---|
str
|
selected auth group name |
Source code in dapla_team_cli/tf/iam_bindings/auth_groups.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|