-
Notifications
You must be signed in to change notification settings - Fork 2
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
Role of API_KEY
variable for ingester and how to have multiple diode client
#179
Comments
API_KEY
environment variable for ingester and can I set up a single Diode server with multiple API KeysAPI_KEY
variable for ingester and how to have multiple diode client
Hi @dga-nagra,
It's a leftover from one of very first iterations, not used and is going to be removed.
You can utilise diode server from multiple clients, but at this stage of the project we use single shared
That's correct.
As mentioned above, all clients using same |
Hi @mfiedorowicz and thank you a lot for taking the time to respond!
In my opinion, it is really important that the data being ingested uses the user's permissions and that every user can manage their own tokens. But I understand the limitations, especially, since it uses a redis queue, you cannot store the user credential for later use or give the user a Thank you again for your responses. |
TL;DR
The token the client is using is passed to Netbox with an environment variable. Therefore, we can only have one token and therefore only one client (or multiple ones sharing the same secret which is not good).
Detailed question
Hi,
I am trying to configure Diode in the same docker compose as Netbox.
I see that there is a
RECONCILER_API_KEY
variable set toCHANGE_.ME
https://github.com/netboxlabs/diode/blob/develop/diode-server/docker/sample.env#L2
diode/diode-server/docker/docker-compose.yaml
Line 39 in 3f4235f
I went in all repositories and I don't find the mention to this variable, even in the Go code:
diode/diode-server/ingester/component_test.go
Line 37 in 3f4235f
Is this variable needed? I thought that this would be used by the clients, but from netbox-learning I am supposed to use
DIODE_API_KEY
If I understand correctly:
DIODE_API_KEY
, and since this value is defined on startup on diode and netbox, this means we can only ever have only one DIODE_API_KEY even if we were to spawn multiple diode instances since the token is still passed to netbox.Please, correct me if I am wrong. Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: