Skip to content

Custom certificate mount and volume option or base64 format #602

Open
@basdscho23

Description

@basdscho23

The Helm chart version

0.3.21

Environment Versions

Kubernetes: v1.30.9
Argo CD: v2.14.4

Custom chart values

caCert: "..."

host: "....."
https: true
debug: false

auth:
  apiToken: "....."

netbox:
  enabled: false
  nameOverride: netbox-app

replicaCount: 3

updateStrategy:
  type: RollingUpdate

Current Behavior & Steps to Reproduce

We still have several different Netbox instances running in a Docker container and want to store our Kubernetes instances using the Netbox operator. The connection to the api of the instances works. However, a file is expected in the values file for caCert, which does not accept base64 format (error: filename to long) and there is no mount or volume option to store a custom certificate as a file in the container to which the caCert variable refers.
By accepting base64 formatted certificates or mounting your own custom certificate, Netbox instances that do not run in Kubernets themselves can be addressed via API.

I wanted to specify a custom certificate as a file with the variable caCert.
I tried to mount the certificate in a volume and then call it in the container. Error: "cant find repository or file"

I also tried to specify the certificate as base64. Error: ‘filename to long’

Expected Behavior

It would be nice if you could include a custom certificate either in base64 format or as a mount point in the container so that you can call up the mounted file in caCert.

NetBox Logs

Base64 certificate error:
2025-04-03T13:45:53Z	ERROR	setup	failed to initialize netbox client	{"error": "open <base 64 cert> : file name too long"}
main.main

2025-04-03T13:52:48Z	ERROR	setup	verification of netbox configuration failed	{"error": "Get \"https://<netbox>/api/extras/custom-fields/\": tls: failed to verify certificate: x509: certificate signed by unknown authority"}
main.main

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions