Skip to content

Commit 740f018

Browse files
authored
Refactored environment variable configuration usage (#1297)
Signed-off-by: dhoard <doug.hoard@gmail.com>
1 parent 5b7b930 commit 740f018

File tree

40 files changed

+48
-1236
lines changed

40 files changed

+48
-1236
lines changed

docs/content/1.4.0/http-mode/authentication.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,18 @@ httpServer:
3131
3232
---
3333
34-
Environment variable password example 1:
34+
Environment variable password example:
3535
3636
```yaml
3737
httpServer:
3838
authentication:
3939
basic:
4040
username: Prometheus
41-
password: ${env:SECRET}
41+
password: ${SECRET}
4242
```
4343
4444
---
4545
46-
File password example:
47-
48-
```yaml
49-
httpServer:
50-
authentication:
51-
basic:
52-
username: Prometheus
53-
password: ${file:/etc/secret.txt}
54-
```
55-
56-
---
57-
58-
**Notes**
59-
60-
- If an environment variable format is used and not defined or empty, the value is treated as plaintext
61-
62-
- If a file format is used and doesn't exist or is empty, the value is treated as plaintext
63-
64-
---
65-
6646
SHA-256 example using a salted password SHA-256(`<salt>:<password>`) with a password of `secret`
6747

6848
```yaml

integration_test_suite/integration_tests/src/test/java/io/prometheus/jmx/test/http/authentication/BasicAuthenticationFileTest.java

Lines changed: 0 additions & 316 deletions
This file was deleted.

0 commit comments

Comments
 (0)