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: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ Here are some example snippets to help you get started creating a container.
64
64
docker create \
65
65
--name=ldap-auth \
66
66
-e TZ=Europe/London \
67
+
-e FERNETKEY= `#optional` \
67
68
-p 8888:8888 \
68
69
-p 9000:9000 \
69
70
--restart unless-stopped \
@@ -84,6 +85,7 @@ services:
84
85
container_name: ldap-auth
85
86
environment:
86
87
- TZ=Europe/London
88
+
- FERNETKEY= #optional
87
89
ports:
88
90
- 8888:8888
89
91
- 9000:9000
@@ -99,6 +101,7 @@ Container images are configured using parameters passed at runtime (such as thos
99
101
|`-p 8888`| the port for ldap auth daemon |
100
102
|`-p 9000`| the port for ldap login page |
101
103
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London |
104
+
|`-e FERNETKEY=`| Optionally define a custom fernet key, has to be base64-encoded 32-byte (only needed if container is frequently recreated, or if using multi-node setups, invalidating previous authentications) |
102
105
103
106
## Environment variables from files (Docker secrets)
104
107
@@ -123,7 +126,7 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
123
126
124
127
- This container itself does not have any settings and it relies on the pertinent information passed through in http headers of incoming requests. Make sure that your webserver is set up with the right config.
125
128
- Here's a sample config: [nginx-ldap-auth.conf](https://github.com/nginxinc/nginx-ldap-auth/blob/master/nginx-ldap-auth.conf).
126
-
- Unlike the upstream project, this image encodes the cookie information with fernet, using a randomly generated key during container creation.
129
+
- Unlike the upstream project, this image encodes the cookie information with fernet, using a randomly generated key during container creation (or optionally user defined).
127
130
- Also unlike the upstream project, this image serves the login page at `/ldaplogin` (as well as `/login`) to prevent clashes with reverse proxied apps that may also use `/login` for their internal auth.
128
131
129
132
@@ -197,6 +200,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
197
200
198
201
## Versions
199
202
203
+
***21.07.20:** - Add support for optional user defined fernet key.
200
204
***02.06.20:** - Rebasing to alpine 3.12, serve login page at `/ldaplogin` as well as `/login`, to prevent clashes with reverese proxied apps.
201
205
***17.05.20:** - Add support for self-signed CA certs.
Copy file name to clipboardExpand all lines: readme-vars.yml
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,18 +24,24 @@ param_ports:
24
24
- { external_port: "9000", internal_port: "9000", port_desc: "the port for ldap login page" }
25
25
param_usage_include_env: true
26
26
param_env_vars:
27
-
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
27
+
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London" }
28
+
29
+
# optional container parameters
30
+
opt_param_usage_include_env: true
31
+
opt_param_env_vars:
32
+
- { env_var: "FERNETKEY", env_value: "", desc: "Optionally define a custom fernet key, has to be base64-encoded 32-byte (only needed if container is frequently recreated, or if using multi-node setups, invalidating previous authentications)" }
28
33
29
34
# application setup block
30
35
app_setup_block_enabled: true
31
36
app_setup_block: |
32
37
- This container itself does not have any settings and it relies on the pertinent information passed through in http headers of incoming requests. Make sure that your webserver is set up with the right config.
33
38
- Here's a sample config: [nginx-ldap-auth.conf](https://github.com/nginxinc/nginx-ldap-auth/blob/master/nginx-ldap-auth.conf).
34
-
- Unlike the upstream project, this image encodes the cookie information with fernet, using a randomly generated key during container creation.
39
+
- Unlike the upstream project, this image encodes the cookie information with fernet, using a randomly generated key during container creation (or optionally user defined).
35
40
- Also unlike the upstream project, this image serves the login page at `/ldaplogin` (as well as `/login`) to prevent clashes with reverse proxied apps that may also use `/login` for their internal auth.
36
41
37
42
# changelog
38
43
changelogs:
44
+
- { date: "21.07.20:", desc: "Add support for optional user defined fernet key." }
39
45
- { date: "02.06.20:", desc: "Rebasing to alpine 3.12, serve login page at `/ldaplogin` as well as `/login`, to prevent clashes with reverese proxied apps." }
40
46
- { date: "17.05.20:", desc: "Add support for self-signed CA certs." }
41
47
- { date: "20.02.20:", desc: "Switch to python3." }
0 commit comments