Skip to content

Commit 8ebaa86

Browse files
authored
sso_*: prepare v3.0.0 release (#313)
* bump version and generate static content for v3.0.0 release * *: documentation update
1 parent 9c912b1 commit 8ebaa86

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version := "v2.1.0"
1+
version := "v3.0.0"
22

33
commit := $(shell git rev-parse --short HEAD)
44

docs/sso_config.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,22 @@ There are four configuration options that can be set as environment variables re
138138
of sso proxy when it authenticates with sso authenticator.
139139

140140

141-
The **session_valid_ttl** option controls the amount of time it will take for
141+
The **session\_ttl\_valid** option controls the amount of time it will take for
142142
`sso_proxy` to pick up on authentication changes in the 3rd party provider
143143
(e.g. revoked access, group membership updates). Once expired, `sso_proxy`
144144
will make an _internal request_ to `sso_auth` (i.e. invisible to the
145145
end user) to revalidate & refresh the session.
146146

147-
The **session_lifetime_ttl** option controls the maximum lifetime of a
147+
The **sessioni\_ttl\_lifetime** option controls the maximum lifetime of a
148148
`sso_proxy` session, after which a user will be 301 redirected to
149149
`sso_auth` to go through the 3rd party OAuth2 flow again.
150150

151-
The **cookie_expire** option controls the maximum lifetime of the `sso_proxy`
151+
The **session\_cookie\_expire** option controls the maximum lifetime of the `sso_proxy`
152152
cookie stored by a user's web browser, after which a user will also be 301
153153
redirected to `sso_auth` to go through the 3rd party OAuth2 flow
154154
again.
155155

156-
The **grace_period_ttl** option controls the duration of the grace period that
156+
The **session\_ttl\_graceperiod** option controls the duration of the grace period that
157157
`sso_proxy` grants to existing sessions in the event that `sso_auth`'s
158158
upstream provider is unavailable. `sso_proxy` starts this grace period whenever
159159
`sso_auth` returns either a `429 Too Many Requests` or `503 Service
@@ -163,11 +163,11 @@ honored as valid. The grace period ends either after the TTL expires or when
163163
164164
##### Notes
165165
166-
* For now, the `cookie_expire` value should be greater than or equal to the
166+
* For now, the `session_cookie_expire` value should be greater than or equal to the
167167
`session_lifetime_ttl` value. In the future, we should remove the separate
168168
`cookie_expire` option altogether and just rely on `session_lifetime_ttl`.
169169
170-
* The value of `session_valid_ttl` has a direct impact on the number of
170+
* The value of `session_ttl_valid` has a direct impact on the number of
171171
requests we will make to the 3rd party authentication provider, as requests
172172
to re-validate a user's permissions will be made every time it expires. Tune
173173
this value to balance between responsiveness to permission changes and
@@ -176,7 +176,7 @@ honored as valid. The grace period ends either after the TTL expires or when
176176
See [Google service accounts](#google-service-accounts) below to
177177
check API usage and quotas.
178178

179-
* The grace period defined by `grace_period_ttl` is granted on a per-user basis,
179+
* The grace period defined by `session_ttl_graceperiod` is granted on a per-user basis,
180180
starting from the first failure to authenticate.
181181

182182
### Websockets

quickstart/docker-compose.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ services:
2929
entrypoint: /bin/sso-proxy
3030
environment:
3131
# Allow any google account to log in for demo purposes
32-
- DEFAULT_ALLOWED_EMAIL_DOMAINS=*
32+
- UPSTREAM_DEFAULT_EMAIL_DOMAINS=*
3333

3434
# (Optional) Allow specific google email address to log in for demo purposes
35-
# This overrides DEFAULT_ALLOWED_EMAIL_DOMAIN
36-
# - DEFAULT_ALLOWED_EMAIL_ADDRESSES=*
35+
# - UPSTREAM_DEFAULT_EMAIL_ADDRESSES=*
3736

38-
- UPSTREAM_CONFIGS=/sso/upstream_configs.yml
39-
- PROVIDER_URL=http://sso-auth.localtest.me
37+
- UPSTREAM_CONFIGSFILE=/sso/upstream_configs.yml
38+
- PROVIDER_URL_EXTERNAL=http://sso-auth.localtest.me
4039
- PROVIDER_URL_INTERNAL=http://host.docker.internal
4140

4241
# CLIENT_ID and CLIENT_SECRET must match sso-auth's PROXY_CLIENT_ID and
@@ -49,15 +48,15 @@ services:
4948
# openssl rand -base64 32
5049
#
5150
# to generate your own.
52-
- COOKIE_SECRET=WEl0Y054TXNUN2ltTWRkazZ0YmNpRTlucXBPQUY2VHU=
51+
- SESSION_COOKIE_SECRET=WEl0Y054TXNUN2ltTWRkazZ0YmNpRTlucXBPQUY2VHU=
5352

5453
# Disable https for demo purposes
55-
- COOKIE_SECURE=false
54+
- SESSION_COOKIE_SECURE=false
5655

5756
# TODO: these config values should probably have defaults
5857
- CLUSTER=dev
59-
- STATSD_HOST=127.0.0.1
60-
- STATSD_PORT=8125
58+
- METRICS_STATSD_HOST=127.0.0.1
59+
- METRICS_STATSD_PORT=8125
6160

6261
# Tells nginx-proxy service how to route requests to this service
6362
- VIRTUAL_HOST=*.sso.localtest.me

scripts/dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rm -rf $DIR/dist
1212
mkdir -p $DIR/dist
1313

1414
arch=$(go env GOARCH)
15-
version='2.1.0'
15+
version='3.0.0'
1616
goversion=$(go version | awk '{print $3}')
1717

1818
echo "... building v$version for $linux/$arch"

0 commit comments

Comments
 (0)