Skip to content

Commit

Permalink
Merge branch 'main' into release/1.19
Browse files Browse the repository at this point in the history
* main:
  feat: enable ability to specify bootstrap token (#1350)
  feat(auth/k8s): kubernetes auth method service implementation (#1344)
  feat(rpc/auth): define AuthenticationMethodKubernetesService proto (#1341)
  chore: fix dependencies after testcontainers-go bump (#1349)
  chore(deps): bump github.com/testcontainers/testcontainers-go (#1348)
  chore(deps): bump golang.org/x/net from 0.6.0 to 0.7.0 (#1347)
  chore: switch to official redis client and redis-cache/v9 (#1345)
  chore(deps): bump golang.org/x/net from 0.6.0 to 0.7.0 in /_tools (#1346)
  • Loading branch information
markphelps committed Feb 22, 2023
2 parents e7112d4 + ebb3f84 commit 13b44d0
Show file tree
Hide file tree
Showing 31 changed files with 1,538 additions and 232 deletions.
2 changes: 1 addition & 1 deletion _tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ require (
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/exp/typeparams v0.0.0-20220613132600-b0d781184e0d // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.6.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions _tools/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0 h1:L4ZwwTvKW9gr0ZMS1yrHD9GZhIuVjOBBnaKH+SPQK0Q=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down
4 changes: 4 additions & 0 deletions config/flipt.schema.cue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ import "strings"
token?: {
enabled?: bool | *false
cleanup?: #authentication.#authentication_cleanup
bootstrap?: {
token?: string
expiration: =~"^([0-9]+(ns|us|µs|ms|s|m|h))+$" | int
}
}

// OIDC
Expand Down
19 changes: 19 additions & 0 deletions config/flipt.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@
},
"cleanup": {
"$ref": "#/definitions/authentication/$defs/authentication_cleanup"
},
"bootstrap": {
"type": "object",
"properties": {
"token": {
"type": "string"
},
"expiration": {
"oneOf": [
{
"type": "string",
"pattern": "^([0-9]+(ns|us|µs|ms|s|m|h))+$"
},
{
"type": "integer"
}
]
}
}
}
},
"required": [],
Expand Down
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ require (
github.com/fatih/color v1.14.1
github.com/go-chi/chi/v5 v5.0.8-0.20220103191336-b750c805b4ee
github.com/go-chi/cors v1.2.1
github.com/go-redis/cache/v8 v8.4.4
github.com/go-redis/redis/v8 v8.11.5
github.com/go-redis/cache/v9 v9.0.0
github.com/go-sql-driver/mysql v1.7.0
github.com/gofrs/uuid v4.4.0+incompatible
github.com/golang-migrate/migrate/v4 v4.15.2
Expand All @@ -30,11 +29,12 @@ require (
github.com/mitchellh/mapstructure v1.5.0
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/prometheus/client_golang v1.14.0
github.com/redis/go-redis/v9 v9.0.2
github.com/santhosh-tekuri/jsonschema/v5 v5.2.0
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.15.0
github.com/stretchr/testify v1.8.1
github.com/testcontainers/testcontainers-go v0.17.0
github.com/testcontainers/testcontainers-go v0.18.0
github.com/uber/jaeger-client-go v2.30.0+incompatible
github.com/xo/dburl v0.0.0-20200124232849-e9ec94f52bc3
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.39.0
Expand All @@ -50,7 +50,7 @@ require (
go.opentelemetry.io/otel/trace v1.13.0
go.uber.org/zap v1.24.0
golang.org/x/exp v0.0.0-20221012211006-4de253d81b95
golang.org/x/net v0.6.0
golang.org/x/net v0.7.0
golang.org/x/sync v0.1.0
google.golang.org/genproto v0.0.0-20230202175211-008b39050e57
google.golang.org/grpc v1.53.0
Expand All @@ -72,7 +72,7 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/docker/distribution v2.8.1+incompatible // indirect
github.com/docker/docker v20.10.20+incompatible // indirect
github.com/docker/docker v23.0.0+incompatible // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
Expand Down Expand Up @@ -129,7 +129,7 @@ require (
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
golang.org/x/crypto v0.0.0-20221010152910-d6f0a8c073c2 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
Expand All @@ -142,5 +142,4 @@ require (
replace (
github.com/codahale/hdrhistogram => github.com/HdrHistogram/hdrhistogram-go v0.9.0
github.com/dgrijalva/jwt-go v3.2.0+incompatible => github.com/golang-jwt/jwt/v4 v4.2.0
github.com/docker/docker => github.com/docker/docker v20.10.3-0.20221013203545-33ab36d6b304+incompatible // 22.06 branch - https://golang.testcontainers.org/quickstart/#2-install-testcontainers-for-go
)
Loading

0 comments on commit 13b44d0

Please sign in to comment.