Skip to content

Commit 32ea885

Browse files
authored
0.8.0 (#247)
2 parents be8d2d4 + 57af978 commit 32ea885

File tree

28 files changed

+319
-182
lines changed

28 files changed

+319
-182
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ prerelease:
8181

8282
deploy-dev:
8383
stage: deploy
84+
only:
85+
refs:
86+
- prerel
8487
before_script:
8588
- mkdir -p /root/.ssh
8689
- cp $KNOWN_HOSTS /root/.ssh/known_hosts

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,54 @@
1212
<!-- ### Dependencies -->
1313
<!-- -->
1414

15+
## mytoken 0.8.0
16+
17+
### Features
18+
19+
- Added support for RFC8707 for requesting audience restricted ATs
20+
21+
### Changes
22+
23+
- Default behavior for requesting audience restricted ATs is now according to RFC8707; the previous behavor can be
24+
configured with these options:
25+
```yaml
26+
audience:
27+
use_rfc8707: false
28+
request_parameter: "audience"
29+
space_separate_auds: true
30+
```
31+
32+
### API
33+
34+
- When creating a mytoken from a mytoken and it is returned as a transfer code the response now contains the
35+
`mom_id` of the created mytoken.
36+
37+
### Bugfixes
38+
39+
- Fixed a bug where wrong dates where returned if the database used a different timezone than UTC.
40+
- Fixed a bug in `mytoken-migratedb` were empty databases could not be setup.
41+
42+
### Security Fixes
43+
44+
- Replaced the uuid library; the old library had a security flaw CVE-2021-3538
45+
46+
### Dependencies
47+
48+
- Bump golang.org/x/term from 0.5.0 to 0.8.0
49+
- Bump github.com/valyala/fasthttp from 1.44.0 to 1.47.0
50+
- Bump golang.org/x/net from 0.6.0 to 0.7.0
51+
- Bump golang.org/x/crypto from 0.6.0 to 0.9.0
52+
- Bump golang.org/x/oauth2 from 0.5.0 to 0.8.0
53+
- Bump golang.org/x/mod from 0.8.0 to 0.9.0
54+
- Bump github.com/gofiber/helmet/v2 from 2.2.24 to 2.2.25
55+
- Bump github.com/gofiber/template from 1.7.5 to 1.8.0
56+
- Bump github.com/gofiber/fiber/v2 from 2.42.0 to 2.46.0
57+
- Bump github.com/pires/go-proxyproto from 0.6.2 to 0.7.0
58+
- Bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1
59+
- Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2
60+
- Bump github.com/coreos/go-oidc/v3 from 3.5.0 to 3.6.0
61+
- Replaced github.com/satori/go.uuid with github.com/gofrs/uuid
62+
1563
## mytoken 0.7.2
1664

1765
### Bugfixes

cmd/mytoken-server/mytoken-migratedb/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ var app = &cli.App{
134134
}
135135
dbConfig.ReconnectInterval = 60
136136
dbConfig.DBConf.Hosts = dbConfig.Hosts.Value()
137+
tmpScheduleEnabled := dbConfig.DBConf.EnableScheduledCleanup
138+
dbConfig.DBConf.EnableScheduledCleanup = false
137139
db.ConnectConfig(dbConfig.DBConf)
140+
dbConfig.DBConf.EnableScheduledCleanup = tmpScheduleEnabled
138141
return migrateDB(mytokenNodes)
139142
},
140143
}

config/example-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ features:
193193
- /etc/ssh/ssh_host_ed25519_key
194194
- /etc/ssh/ssh_host_rsa_key
195195

196+
# Settings related to server profiles and templates
197+
server_profiles:
198+
enabled: true
199+
# group names and passwords; those are used by an entity to add, update, delete profiles on this server, the '_'
200+
# group is the default group managed by the server admin
201+
groups:
202+
# _: admin
203+
196204
# The list of supported providers
197205
providers:
198206
- issuer: "https://example.provider.com/"
@@ -205,4 +213,12 @@ providers:
205213
# Maximum lifetime for mytokens for this issuer, given in seconds. On default the lifetime of mytokens is not
206214
# restricted. Setting this value to 0, means that there is no maximum lifetime.
207215
mytokens_max_lifetime: 0
216+
# Settings related to how the audience(s) of ATs is requested
217+
audience:
218+
# Unless false audiences are requested according to RFC8707; other options are ignored;
219+
use_rfc8707: true
220+
# The parameter used in the request, common options are "resource" and "audience"
221+
request_parameter: "resource"
222+
# Defines how multiple audience values in a request are handled;
223+
space_separate_auds: false
208224

go.mod

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,38 @@ go 1.19
44

55
require (
66
github.com/Songmu/prompter v0.5.1
7-
github.com/coreos/go-oidc/v3 v3.5.0
7+
github.com/coreos/go-oidc/v3 v3.6.0
88
github.com/evanphx/json-patch/v5 v5.6.0
99
github.com/fatih/structs v1.1.0
1010
github.com/gliderlabs/ssh v0.3.5
11-
github.com/go-sql-driver/mysql v1.7.0
12-
github.com/gofiber/fiber/v2 v2.41.0
13-
github.com/gofiber/helmet/v2 v2.2.23
14-
github.com/gofiber/template v1.7.4
11+
github.com/go-sql-driver/mysql v1.7.1
12+
github.com/gofiber/fiber/v2 v2.46.0
13+
github.com/gofiber/helmet/v2 v2.2.26
14+
github.com/gofiber/template v1.8.1
15+
github.com/gofrs/uuid v4.4.0+incompatible
1516
github.com/golang-jwt/jwt v3.2.2+incompatible
1617
github.com/ip2location/ip2location-go v8.3.0+incompatible
1718
github.com/jinzhu/copier v0.3.5
1819
github.com/jmoiron/sqlx v1.3.5
1920
github.com/lestrrat-go/jwx v1.2.25
20-
github.com/oidc-mytoken/api v0.10.0
21+
github.com/oidc-mytoken/api v0.10.1-0.20230412103735-ccd26fb9a9ae
2122
github.com/oidc-mytoken/lib v0.7.0
2223
github.com/oidc-mytoken/utils v0.1.2
2324
github.com/patrickmn/go-cache v2.1.0+incompatible
24-
github.com/pires/go-proxyproto v0.6.2
25+
github.com/pires/go-proxyproto v0.7.0
2526
github.com/pkg/errors v0.9.1
26-
github.com/satori/go.uuid v1.2.0
27-
github.com/sirupsen/logrus v1.9.0
27+
github.com/sirupsen/logrus v1.9.2
2828
github.com/urfave/cli/v2 v2.3.1-0.20211205195634-e8d81738896c
29-
github.com/valyala/fasthttp v1.44.0
30-
golang.org/x/crypto v0.5.0
31-
golang.org/x/mod v0.7.0
32-
golang.org/x/oauth2 v0.4.0
33-
golang.org/x/term v0.4.0
29+
github.com/valyala/fasthttp v1.47.0
30+
golang.org/x/crypto v0.9.0
31+
golang.org/x/mod v0.10.0
32+
golang.org/x/oauth2 v0.8.0
33+
golang.org/x/term v0.8.0
3434
gopkg.in/yaml.v3 v3.0.1
3535
)
3636

3737
require (
38-
github.com/andybalholm/brotli v1.0.4 // indirect
38+
github.com/andybalholm/brotli v1.0.5 // indirect
3939
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
4040
github.com/cbroglie/mustache v1.4.0 // indirect
4141
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
@@ -44,21 +44,26 @@ require (
4444
github.com/go-resty/resty/v2 v2.7.0 // indirect
4545
github.com/goccy/go-json v0.9.7 // indirect
4646
github.com/golang/protobuf v1.5.2 // indirect
47-
github.com/klauspost/compress v1.15.11 // indirect
47+
github.com/google/uuid v1.3.0 // indirect
48+
github.com/klauspost/compress v1.16.3 // indirect
4849
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
4950
github.com/lestrrat-go/blackmagic v1.0.0 // indirect
5051
github.com/lestrrat-go/httpcc v1.0.1 // indirect
5152
github.com/lestrrat-go/iter v1.0.1 // indirect
5253
github.com/lestrrat-go/option v1.0.0 // indirect
5354
github.com/mattn/go-colorable v0.1.13 // indirect
54-
github.com/mattn/go-isatty v0.0.17 // indirect
55+
github.com/mattn/go-isatty v0.0.18 // indirect
5556
github.com/mattn/go-runewidth v0.0.14 // indirect
57+
github.com/philhofer/fwd v1.1.2 // indirect
5658
github.com/rivo/uniseg v0.2.0 // indirect
5759
github.com/russross/blackfriday/v2 v2.1.0 // indirect
60+
github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 // indirect
61+
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect
62+
github.com/tinylib/msgp v1.1.8 // indirect
5863
github.com/valyala/bytebufferpool v1.0.0 // indirect
5964
github.com/valyala/tcplisten v1.0.0 // indirect
60-
golang.org/x/net v0.5.0 // indirect
61-
golang.org/x/sys v0.4.0 // indirect
65+
golang.org/x/net v0.10.0 // indirect
66+
golang.org/x/sys v0.8.0 // indirect
6267
google.golang.org/appengine v1.6.7 // indirect
6368
google.golang.org/protobuf v1.28.0 // indirect
6469
)

0 commit comments

Comments
 (0)