Fix example
os.urandom sometimes returns more bytes and its generally encouraged to use python3's `secrets` module. Also double64 encode to prevent messing up the environment variables with binary data
This commit is contained in:
parent
238ad76d65
commit
efdae5a96f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ spec:
|
|||
value: <Client ID>
|
||||
- name: OAUTH2_PROXY_CLIENT_SECRET
|
||||
value: <Client Secret>
|
||||
# python -c 'import os,base64; print base64.b64encode(os.urandom(16))'
|
||||
# docker run -ti --rm python:3-alpine python -c 'import secrets,base64; print(base64.b64encode(base64.b64encode(secrets.token_bytes(16))));'
|
||||
- name: OAUTH2_PROXY_COOKIE_SECRET
|
||||
value: SECRET
|
||||
image: docker.io/colemickens/oauth2_proxy:latest
|
||||
|
|
Loading…
Reference in a new issue