Skip to content

Commit 312a429

Browse files
committed
Added request id and new feature flag
1 parent 9264d44 commit 312a429

7 files changed

Lines changed: 58 additions & 8 deletions

File tree

pkg/capabilities/actions/vault/messages.pb.go

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

pkg/capabilities/actions/vault/messages.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ message CreateSecretResponse {
6767

6868
message CreateSecretsResponse {
6969
repeated CreateSecretResponse responses = 1;
70+
string request_id = 2;
7071
}
7172

7273
message UpdateSecretsRequest {
@@ -84,6 +85,7 @@ message UpdateSecretResponse {
8485

8586
message UpdateSecretsResponse {
8687
repeated UpdateSecretResponse responses = 1;
88+
string request_id = 2;
8789
}
8890

8991
message DeleteSecretsRequest {
@@ -101,6 +103,7 @@ message DeleteSecretResponse {
101103

102104
message DeleteSecretsResponse {
103105
repeated DeleteSecretResponse responses = 1;
106+
string request_id = 2;
104107
}
105108

106109
message ListSecretIdentifiersRequest {
@@ -115,6 +118,7 @@ message ListSecretIdentifiersResponse {
115118
repeated SecretIdentifier identifiers = 1;
116119
bool success = 2;
117120
string error = 3;
121+
string request_id = 4;
118122
}
119123

120124
enum RequestType {

pkg/settings/cresettings/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ flowchart
4545
VaultGetSecretsShareAggregationIncludesPublicKeys[/VaultGetSecretsShareAggregationIncludesPublicKeys\]:::gate
4646
VaultOwnerAddressCanonicalizationEnabled[/VaultOwnerAddressCanonicalizationEnabled\]:::gate
4747
VaultJSONOmitUnpopulatedEnabled[/VaultJSONOmitUnpopulatedEnabled\]:::gate
48+
VaultSignedResponseRequestIDEnabled[/VaultSignedResponseRequestIDEnabled\]:::gate
4849
end
4950
5051
subgraph HandleNodeMessage[gatewayHandler.HandleNodeMessage]

pkg/settings/cresettings/defaults.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"VaultGetSecretsShareAggregationIncludesPublicKeys": "false",
1313
"VaultOwnerAddressCanonicalizationEnabled": "false",
1414
"VaultJSONOmitUnpopulatedEnabled": "false",
15+
"VaultSignedResponseRequestIDEnabled": "false",
1516
"GatewayHTTPGlobalRate": "500rps:500",
1617
"GatewayHTTPPerNodeRate": "100rps:100",
1718
"GatewayConfidentialRelayGlobalRate": "50rps:10",

pkg/settings/cresettings/defaults.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ VaultOptimizationsEnabled = 'false'
1111
VaultGetSecretsShareAggregationIncludesPublicKeys = 'false'
1212
VaultOwnerAddressCanonicalizationEnabled = 'false'
1313
VaultJSONOmitUnpopulatedEnabled = 'false'
14+
VaultSignedResponseRequestIDEnabled = 'false'
1415
GatewayHTTPGlobalRate = '500rps:500'
1516
GatewayHTTPPerNodeRate = '100rps:100'
1617
GatewayConfidentialRelayGlobalRate = '50rps:10'

pkg/settings/cresettings/settings.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ var Default = Schema{
6666
VaultGetSecretsShareAggregationIncludesPublicKeys: Bool(false),
6767
VaultOwnerAddressCanonicalizationEnabled: Bool(false),
6868
VaultJSONOmitUnpopulatedEnabled: Bool(false),
69+
VaultSignedResponseRequestIDEnabled: Bool(false),
6970
GatewayHTTPGlobalRate: Rate(rate.Limit(500), 500),
7071
GatewayHTTPPerNodeRate: Rate(rate.Limit(100), 100),
7172
GatewayConfidentialRelayGlobalRate: Rate(rate.Limit(50), 10),
@@ -303,6 +304,7 @@ type Schema struct {
303304
VaultGetSecretsShareAggregationIncludesPublicKeys Setting[bool]
304305
VaultOwnerAddressCanonicalizationEnabled Setting[bool]
305306
VaultJSONOmitUnpopulatedEnabled Setting[bool]
307+
VaultSignedResponseRequestIDEnabled Setting[bool]
306308
GatewayHTTPGlobalRate Setting[config.Rate]
307309
GatewayHTTPPerNodeRate Setting[config.Rate]
308310
GatewayConfidentialRelayGlobalRate Setting[config.Rate]

pkg/settings/cresettings/settings_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func TestSchema_Unmarshal(t *testing.T) {
138138
assert.False(t, cfg.VaultGetSecretsShareAggregationIncludesPublicKeys.DefaultValue)
139139
assert.False(t, cfg.VaultOwnerAddressCanonicalizationEnabled.DefaultValue)
140140
assert.False(t, cfg.VaultJSONOmitUnpopulatedEnabled.DefaultValue)
141+
assert.False(t, cfg.VaultSignedResponseRequestIDEnabled.DefaultValue)
141142
assert.Equal(t, config.Rate{Limit: rate.Limit(20), Burst: 7}, cfg.GatewayConfidentialRelayGlobalRate.DefaultValue)
142143
assert.Equal(t, config.Rate{Limit: rate.Limit(4), Burst: 2}, cfg.GatewayConfidentialRelayPerNodeRate.DefaultValue)
143144
assert.Equal(t, 48*time.Hour, cfg.PerOrg.ZeroBalancePruningTimeout.DefaultValue)

0 commit comments

Comments
 (0)