Skip to content

Commit 32d1875

Browse files
committed
Merge branch 'master' into vlt091-plugin-testing
* master: Sync Protobuf dependencies between core and sdk (#9154) Document and give an example of the input size limits when using the FF3-1 transform. (#9151) Fix feature flag persistence: we shouldn't have excluded dr primaries, they too must write feature flags. DR secondaries might not need depend on feature flags being there, but a DR primary could also be (or become) a perf primary. (#9148)
2 parents 191ddda + a0aa93d commit 32d1875

File tree

19 files changed

+246
-64
lines changed

19 files changed

+246
-64
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ require (
148148
golang.org/x/tools v0.0.0-20200416214402-fc959738d646
149149
google.golang.org/api v0.24.0
150150
google.golang.org/grpc v1.29.1
151-
google.golang.org/protobuf v1.23.0
151+
google.golang.org/protobuf v1.24.0
152152
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce
153153
gopkg.in/ory-am/dockertest.v3 v3.3.4
154154
gopkg.in/square/go-jose.v2 v2.4.1

go.sum

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,8 @@ google.golang.org/genproto v0.0.0-20200416231807-8751e049a2a0/go.mod h1:55QSHmfG
10911091
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
10921092
google.golang.org/genproto v0.0.0-20200519141106-08726f379972 h1:6ydLqG65DIMNJf6p97WudGsmd1w3Ickm/LiZnBrREPI=
10931093
google.golang.org/genproto v0.0.0-20200519141106-08726f379972/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
1094+
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=
1095+
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
10941096
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
10951097
google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio=
10961098
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
@@ -1117,6 +1119,9 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi
11171119
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
11181120
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
11191121
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
1122+
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
1123+
google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA=
1124+
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
11201125
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
11211126
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
11221127
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

sdk/go.mod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ require (
88
github.com/aws/aws-sdk-go v1.25.41
99
github.com/fatih/structs v1.1.0
1010
github.com/go-ldap/ldap/v3 v3.1.3
11-
github.com/go-test/deep v1.0.2
12-
github.com/golang/protobuf v1.3.2
11+
github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31
12+
github.com/golang/protobuf v1.4.2
1313
github.com/golang/snappy v0.0.1
1414
github.com/hashicorp/errwrap v1.0.0
1515
github.com/hashicorp/go-hclog v0.12.0
@@ -32,5 +32,6 @@ require (
3232
github.com/ryanuber/go-glob v1.0.0
3333
golang.org/x/crypto v0.0.0-20200117160349-530e935923ad
3434
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82
35-
google.golang.org/grpc v1.23.1
35+
google.golang.org/grpc v1.27.0
36+
google.golang.org/protobuf v1.24.0
3637
)

sdk/go.sum

Lines changed: 77 additions & 0 deletions
Large diffs are not rendered by default.

vault/core.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ func (s standardUnsealStrategy) unseal(ctx context.Context, logger log.Logger, c
18391839
if err := enterprisePostUnseal(c); err != nil {
18401840
return err
18411841
}
1842-
if !c.ReplicationState().HasState(consts.ReplicationPerformanceSecondary | consts.ReplicationDRPrimary | consts.ReplicationDRSecondary) {
1842+
if !c.ReplicationState().HasState(consts.ReplicationPerformanceSecondary | consts.ReplicationDRSecondary) {
18431843
// Only perf primarys should write feature flags, but we do it by
18441844
// excluding other states so that we don't have to change it when
18451845
// a non-replicated cluster becomes a primary.
@@ -2381,15 +2381,18 @@ type FeatureFlags struct {
23812381
}
23822382

23832383
func (c *Core) persistFeatureFlags(ctx context.Context) error {
2384-
c.logger.Debug("persisting feature flags")
2385-
json, err := jsonutil.EncodeJSON(&FeatureFlags{NamespacesCubbyholesLocal: !c.PR1103disabled})
2386-
if err != nil {
2387-
return err
2384+
if !c.PR1103disabled {
2385+
c.logger.Debug("persisting feature flags")
2386+
json, err := jsonutil.EncodeJSON(&FeatureFlags{NamespacesCubbyholesLocal: !c.PR1103disabled})
2387+
if err != nil {
2388+
return err
2389+
}
2390+
return c.barrier.Put(ctx, &logical.StorageEntry{
2391+
Key: consts.CoreFeatureFlagPath,
2392+
Value: json,
2393+
})
23882394
}
2389-
return c.barrier.Put(ctx, &logical.StorageEntry{
2390-
Key: consts.CoreFeatureFlagPath,
2391-
Value: json,
2392-
})
2395+
return nil
23932396
}
23942397

23952398
func (c *Core) readFeatureFlags(ctx context.Context) (*FeatureFlags, error) {

vendor/google.golang.org/genproto/protobuf/field_mask/field_mask.go

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/google.golang.org/protobuf/encoding/prototext/decode.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/google.golang.org/protobuf/encoding/prototext/encode.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/google.golang.org/protobuf/internal/version/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/google.golang.org/protobuf/proto/decode.go

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)