Skip to content

Commit

Permalink
Merge branch 'main' into leo/update/crd
Browse files Browse the repository at this point in the history
  • Loading branch information
RangerRick authored Jan 15, 2025
2 parents 4559139 + efdad47 commit f5e5b57
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 22 deletions.
8 changes: 4 additions & 4 deletions charts/netbox-operator/Chart.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions charts/netbox-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ maintainers:
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: ^2.28.0
version: ^2.29.0
tags:
- bitnami-common
- name: netbox
version: ^5.0.6
version: ^5.0.16
repository: oci://ghcr.io/netbox-community/netbox-chart
condition: netbox.enabled
annotations:
Expand Down
10 changes: 5 additions & 5 deletions charts/netbox/Chart.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions charts/netbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: netbox
version: 5.0.6
version: 5.0.16
# renovate: image=ghcr.io/netbox-community/netbox
appVersion: "v4.1.10"
appVersion: "v4.2.1"
type: application
kubeVersion: ^1.25.0-0
description: IP address management (IPAM) and data center infrastructure management (DCIM) tool
Expand All @@ -19,18 +19,23 @@ maintainers:
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: ^2.28.0
version: ^2.29.0
tags:
- bitnami-common
- name: postgresql
version: ^16.3.4
version: ^16.4.2
repository: oci://registry-1.docker.io/bitnamicharts
condition: postgresql.enabled
- name: redis
version: ^20.6.1
version: ^20.6.3
repository: oci://registry-1.docker.io/bitnamicharts
condition: redis.enabled
annotations:
artifacthub.io/images: |
- name: netbox
image: ghcr.io/netbox-community/netbox:v4.2.1
- name: busybox
image: docker.io/busybox:1.37.0
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: Upstream Project
Expand Down
1 change: 1 addition & 0 deletions charts/netbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ The following table lists the configurable parameters for this chart and their d
| `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* |
| `remoteAuth.ldap.caCertDir` | CA certificate directory | *see auth.md* |
| `remoteAuth.ldap.caCertData` | CA certificate data | *see auth.md* |
| `remoteAuth.ldap.bindDn` | Distinguished Name to bind with | `""` |
| `remoteAuth.ldap.bindPassword` | Password for bind DN | `""` |
Expand Down
3 changes: 3 additions & 0 deletions charts/netbox/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ data:
AUTH_LDAP_BIND_DN: {{ .Values.remoteAuth.ldap.bindDn | quote }}
AUTH_LDAP_START_TLS: {{ toJson .Values.remoteAuth.ldap.startTls }}
LDAP_IGNORE_CERT_ERRORS: {{ toJson .Values.remoteAuth.ldap.ignoreCertErrors }}
{{- if .Values.remoteAuth.ldap.caCertDir }}
LDAP_CA_CERT_DIR: {{ .Values.remoteAuth.ldap.caCertDir | quote }}
{{- end }}
{{- if .Values.remoteAuth.ldap.caCertData }}
LDAP_CA_CERT_FILE: /etc/netbox/config/ldap/ldap_ca.crt
{{- end }}
Expand Down
7 changes: 5 additions & 2 deletions charts/netbox/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,9 @@
"ignoreCertErrors": {
"type": "boolean"
},
"caCertDir": {
"type": "string"
},
"caCertData": {
"type": "string"
},
Expand Down Expand Up @@ -1057,10 +1060,10 @@
"type": "boolean"
},
"mirrorGroups": {
"type": "boolean"
"type": ["boolean", "string", "array"]
},
"mirrorGroupsExcept": {
"type": "string"
"type": ["null", "string", "array"]
},
"cacheTimeout": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion charts/netbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ remoteAuth:
serverUri: ldap://example.com
startTls: true
ignoreCertErrors: false
caCertDir: ""
caCertData: ""
bindDn: CN=Netbox,OU=EmbeddedDevices,OU=MyCompany,DC=example,dc=com
bindPassword: ""
Expand All @@ -402,7 +403,7 @@ remoteAuth:
- CN=Domain Admins,CN=Users,DC=example,dc=com
findGroupPerms: true
mirrorGroups: true
mirrorGroupsExcept: ""
mirrorGroupsExcept: []
cacheTimeout: 3600
attrFirstName: givenName
attrLastName: sn
Expand Down
18 changes: 15 additions & 3 deletions docs/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,24 @@ remoteAuth:
# and ALL the other remoteAuth.ldap.* settings from values.yaml
```

Note: in order to use anonymous LDAP binding set `bindDn` and `bindPassword`
to an empty string as in the example above.
> [!NOTE]
> In order to use anonymous LDAP binding, set `bindDn` and `bindPassword`
> to an empty string as in the example above.

### LDAP Certificate Verification
If you need to specify your own CA certificate, follow the instructions below.

In your `values.yaml` file define your CA certificate content in `caCertData`:
Option 1. In your `values.yaml` file define the directory already containing your CA certificate:

```yaml
ldap:
serverUri: 'ldap://domain.com'
startTls: true
ignoreCertErrors: false
caCertDir: /etc/ssl/certs
```

Option 2. In your `values.yaml` file define your CA certificate content in `caCertData`:

```yaml
ldap:
Expand Down

0 comments on commit f5e5b57

Please sign in to comment.