Skip to content

Commit 1177ada

Browse files
authored
Update README.md
1 parent 2cc04f7 commit 1177ada

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,19 @@ cd /opt/netbox
4040
source venv/bin/activate
4141
```
4242

43-
Set the following environment variables based on API keys created in your NetBox installation:
43+
Generate three random 40 character long alphanumeric strings. You can use the following command to generate random strings:
4444

4545
```shell
46-
export DIODE_TO_NETBOX_API_KEY={API_KEY_1} # API key for the Diode service to interact with NetBox
47-
export NETBOX_TO_DIODE_API_KEY={API_KEY_2} # API key for the NetBox service to interact with Diode
48-
export INGESTION_API_KEY={API_KEY_3} # API key for Diode SDKs to ingest data into Diode
46+
head -c20 </dev/urandom|xxd -p
4947
```
5048

51-
Note: API key values should be 40 character long alphanumeric strings
49+
Set the following environment variables based on the random generated strings:
50+
51+
```shell
52+
export DIODE_TO_NETBOX_API_KEY={random_string_1} # API key for the Diode service to interact with NetBox
53+
export NETBOX_TO_DIODE_API_KEY={random_string_2} # API key for the NetBox service to interact with Diode
54+
export INGESTION_API_KEY={random_string_3} # API key for Diode SDKs to ingest data into Diode
55+
```
5256

5357
Configure the plugin:
5458

0 commit comments

Comments
 (0)