Skip to content

Commit

Permalink
Add additonal remote auth settings (netbox-community#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstisa authored Nov 27, 2021
1 parent a321c50 commit 3a13353
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ The following table lists the configurable parameters for this chart and their d
| `remoteAuth.autoCreateUser` | Enables the automatic creation of new users | `true` |
| `remoteAuth.defaultGroups` | A list of groups to assign to newly created users | `[]` |
| `remoteAuth.defaultPermissions` | A list of permissions to assign newly created users | `{}` |
| `remoteAuth.groupSyncEnabled` | Sync remote user groups from an HTTP header set by a reverse proxy | `false` |
| `remoteAuth.groupHeader` | The name of the HTTP header which conveys the groups to which the user belongs | `HTTP_REMOTE_USER_GROUP` |
| `remoteAuth.superuserGroups` | The list of groups that promote an remote User to Superuser on login| `[]` |
| `remoteAuth.superusers` | The list of users that get promoted to Superuser on login | `[]` |
| `remoteAuth.staffGroups` | The list of groups that promote an remote User to Staff on login | `[]` |
| `remoteAuth.staffUsers` | The list of users that get promoted to Staff on login | `[]` |
| `remoteAuth.groupSeparator` | The Seperator upon which `remoteAuth.groupHeader` gets split into individual groups | `\|` |
| `remoteAuth.ldap.serverUri` | see [django-auth-ldap](https://django-auth-ldap.readthedocs.io) | `""` |
| `remoteAuth.ldap.startTls` | if StarTLS should be used | *see values.yaml* |
| `remoteAuth.ldap.ignoreCertErrors` | if Certificate errors should be ignored | *see values.yaml* |
Expand Down
7 changes: 7 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ data:
REMOTE_AUTH_AUTO_CREATE_USER: {{ toJson .Values.remoteAuth.autoCreateUser }}
REMOTE_AUTH_DEFAULT_GROUPS: {{ toJson .Values.remoteAuth.defaultGroups }}
REMOTE_AUTH_DEFAULT_PERMISSIONS: {{ toJson .Values.remoteAuth.defaultPermissions }}
REMOTE_AUTH_GROUP_SYNC_ENABLED: {{ toJson .Values.remoteAuth.groupSyncEnabled }}
REMOTE_AUTH_GROUP_HEADER: {{ .Values.remoteAuth.groupHeader | quote }}
REMOTE_AUTH_SUPERUSER_GROUPS: {{ toJson .Values.remoteAuth.superuserGroups }}
REMOTE_AUTH_SUPERUSERS: {{ toJson .Values.remoteAuth.superusers }}
REMOTE_AUTH_STAFF_GROUPS: {{ toJson .Values.remoteAuth.staffGroups }}
REMOTE_AUTH_STAFF_USERS: {{ toJson .Values.remoteAuth.staffUsers }}
REMOTE_AUTH_GROUP_SEPARATOR: {{ .Values.remoteAuth.groupSeparator | quote }}
RELEASE_CHECK_URL: {{ toJson .Values.releaseCheck.url }}
REDIS:
Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ remoteAuth:
autoCreateUser: true
defaultGroups: []
defaultPermissions: {}
groupSyncEnabled: false
groupHeader: HTTP_REMOTE_USER_GROUP
superuserGroups: []
superusers: []
staffGroups: []
staffUsers: []
groupSeparator: '|'

# the following options are specific for backend "netbox.authentication.LDAPBackend"
# you can use an existing netbox secret with "ldap_bind_password" instead of "bindPassword"
# see https://django-auth-ldap.readthedocs.io
Expand Down

0 comments on commit 3a13353

Please sign in to comment.