Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Environment Variable to Mange ALLOW_TOKEN_RETRIEVAL #1197

Open
computeracer opened this issue Apr 4, 2024 · 1 comment
Open

Add Environment Variable to Mange ALLOW_TOKEN_RETRIEVAL #1197

computeracer opened this issue Apr 4, 2024 · 1 comment

Comments

@computeracer
Copy link

Desired Behavior

When running the container with the ALLOW_TOKEN_RETRIEVAL environment variable set to false it would mask the API tokens in the GUI as outlined here:
https://github.com/netbox-community/netbox/blob/develop/docs/configuration/security.md#allow_token_retrieval

Contrast to Current Behavior

Setting ALLOW_TOKEN_RETRIEVAL seems to have no effect on this setting.

Required Changes

No response

Discussion: Benefits and Drawbacks

No response

@cimnine
Copy link
Collaborator

cimnine commented Apr 4, 2024

We need to manually map environment variables to python configuration variables. This is done in the following file:
https://github.com/netbox-community/netbox-docker/blob/release/configuration%2Fconfiguration.py

The one you're looking for is not mapped yet. Please open a PR.

In the meantime, you can mount an extra.py file to set that setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants