You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/webserver/authentication.sh
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
#!/bin/sh
2
2
# enable basic auth when user/password is configured
3
-
if [ !"$BASIC_AUTH"="" ] || [ !"$BASIC_AUTH_RAW"="" ];then
3
+
if [ !"$BASIC_AUTH_RAW"="" ];then
4
4
echo'auth_basic "Please enter your username and password";auth_basic_user_file /etc/nginx/htpasswd/basic_auth.htpasswd;'> /etc/nginx/conf.d/basic_auth.conf
Copy file name to clipboardExpand all lines: documentation/Docker-deployment-batch.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ Batch installations require the following settings:
103
103
104
104
And optionally:
105
105
106
-
-`MONITORING_AUTH`: May be a comma separated list of `user:password` pairs which are allowed to access the metrics at `https://example.com/grafana/`.
106
+
-`MONITORING_AUTH_RAW`: May be a comma separated list of `user:hashed-password` pairs which are allowed to access the metrics at `https://example.com/grafana/`.
107
107
-`BASIC_AUTH_RAW` and `ALLOW_LIST`: Can be set to restrict access to the single scan webpage. See [Restricting Access](Docker-deployment.md#restricting-access) for more information.
108
108
109
109
For example:
@@ -112,7 +112,9 @@ For example:
112
112
ENABLE_BATCH=True
113
113
ENABLE_HOF=False
114
114
# user/password(s) for access to /grafana monitoring
115
-
MONITORING_AUTH=user:welkom01
115
+
MONITORING_AUTH_RAW=user:<htpasswd hash>
116
+
# user/password(s) for access to web interface
117
+
BASIC_AUTH_RAW=user:<htpasswd hash>
116
118
# allowed IP's to visit web interface without password
Copy file name to clipboardExpand all lines: documentation/Docker-deployment.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ Besides the single scan webpage, the Internet.nl application also contains a Bat
301
301
302
302
## Metrics (grafana/prometheus)
303
303
304
-
The default deployment includes a metrics collection system. It consists of a Prometheus metrics server with various exporters and a Grafana frontend. To view metrics and graphs visit: `https://example.com/grafana/`. Authentication is configured using the `MONITORING_AUTH` variable.
304
+
The default deployment includes a metrics collection system. It consists of a Prometheus metrics server with various exporters and a Grafana frontend. To view metrics and graphs visit: `https://example.com/grafana/`. Authentication is configured using the `MONITORING_AUTH_RAW` variable.
305
305
306
306
Also see: [Metrics](Docker-metrics.md)
307
307
@@ -353,17 +353,13 @@ By default the installation is open to everyone. If you like to restrict access
353
353
354
354
### HTTP Basic Authentication
355
355
356
-
Site wide HTTP Basic Authentication is configured `BASIC_AUTH` and `BASIC_AUTH_RAW` variable. They should contain comma separated`user:password` or`user:encrypted_password` entries.
356
+
Site wide HTTP Basic Authentication is configured `BASIC_AUTH_RAW` variable. This should contain comma separated `user:encrypted_password` entries.
357
357
358
-
The allow only the user `example_user` with password `secret123` to access the site add the following in the `docker/local.env` file:
359
-
360
-
BASIC_AUTH=example_user:secret123
361
-
362
-
Aditionally the password can already be provided as encrypted value. For this encrypt the password using the `htpasswd` tool and use the `BASIC_AUTH_RAW` variable. Make sure to enclose the value with single quotes:
358
+
To allow only the user `example_user` with password `secret123` to access the site add the following in the `docker/local.env` file:
Copy file name to clipboardExpand all lines: documentation/Docker-metrics.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The Docker deployment includes a metrics collection system which is available on production as well as development/test environments. It consists of a Prometheus metrics server which scrapes metrics from various exporters. Grafana is provided as frontend to visualise metrics and create graphs/dashboards.
4
4
5
-
To view metrics and graphs visit the `/grafana/` endpoint. Eg: `http://localhost:8080/grafana/` for development and `https://example.com/grafana/` for production. For development the user/password is set to `test/test`, for production users can be configured using the `MONITORING_AUTH` variable in `docker/local.env` (see `docker/defaults.env` for information).
5
+
To view metrics and graphs visit the `/grafana/` endpoint. Eg: `http://localhost:8080/grafana/` for development and `https://example.com/grafana/` for production. For development the user/password is set to `test/test`, for production users can be configured using the `MONITORING_AUTH_RAW` variable in `docker/local.env` (see `docker/defaults.env` for information).
6
6
7
7
Metrics collection is defined in the `docker/docker-compose-monitoring.yml` file.
0 commit comments