How to configure API_TOKEN_PEPPERS for netbox helm chart #21319
Unanswered
fuegito
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm running netbox in a kubernetes cluster using the netbox helm chart.
Pepper tokens have been supported since netbox 4.5.x.
Maybe I'm thinking in completely the wrong direction...
To do this, a dictionary “API_TOKEN_PEPPERS” should be configured as follows, for example:
If I map this in my values.yaml, for example, as follows:
Then the following error occurs when starting up the container:
django.core.exceptions.ImproperlyConfigured: Invalid API_TOKEN_PEPPERS key: 1. All keys must be integers.The thing is, json and yaml do not support integers as keys in a dictionary. These are always converted to a string during parsing. So it wouldn't make any difference to store the attribute as a Secret or ConfigMap.
Does anyone have any tips on how to configure this?
Beta Was this translation helpful? Give feedback.
All reactions