Skip to content

Commit f102fb5

Browse files
authored
Merge pull request #12 from netboxlabs/feat/OBS-491-improve-api-key-environment-variables-consistency
feat: rename INGESTION_API_KEY to DIODE_API_KEY
2 parents 11a6e47 + 50b42eb commit f102fb5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export DIODE_TO_NETBOX_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep DIO
6363
# API key for the NetBox service to interact with Diode
6464
export NETBOX_TO_DIODE_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep NETBOX_TO_DIODE_API_KEY
6565
# API key for Diode SDKs to ingest data into Diode
66-
export INGESTION_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep INGESTION_API_KEY
66+
export DIODE_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep DIODE_API_KEY
6767
```
6868

6969
**Note:** store these API key strings in a safe place as they will be needed later to configure the Diode server

docker/netbox/env/netbox.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ WEBHOOKS_ENABLED=true
3939
RELOAD_NETBOX_ON_DIODE_PLUGIN_CHANGE=false
4040
DIODE_TO_NETBOX_API_KEY=1368dbad13e418d5a443d93cf255edde03a2a754
4141
NETBOX_TO_DIODE_API_KEY=1e99338b8cab5fc637bc55f390bda1446f619c42
42-
INGESTION_API_KEY=5a52c45ee8231156cb620d193b0291912dd15433
42+
DIODE_API_KEY=5a52c45ee8231156cb620d193b0291912dd15433
4343
BASE_PATH=netbox/

netbox_diode_plugin/management/commands/configurediodeplugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Command(BaseCommand):
4545

4646
diode_to_netbox_username = "DIODE_TO_NETBOX"
4747
netbox_to_diode_username = "NETBOX_TO_DIODE"
48-
ingestion_username = "INGESTION"
48+
diode_username = "DIODE"
4949

5050
def handle(self, *args, **options):
5151
"""Handle command execution."""
@@ -57,7 +57,7 @@ def handle(self, *args, **options):
5757
self.diode_to_netbox_username, group
5858
)
5959
_ = _create_user_with_token(self.netbox_to_diode_username, group, True)
60-
_ = _create_user_with_token(self.ingestion_username, group)
60+
_ = _create_user_with_token(self.diode_username, group)
6161

6262
diode_plugin_object_type = NetBoxType.objects.get(
6363
app_label="netbox_diode_plugin", model="diode"

0 commit comments

Comments
 (0)