-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes legacy SPIFFE TLS clients and servers in favour of the new SP…
…IRE TLS clients and servers. (dapr#7037) * Removes legacy SPIFFE TLS clients and servers in favour of the new SPIRE TLS clients and servers. Signed-off-by: joshvanl <[email protected]> * Fix sentry int tests, and adds test to ensure legacy ID is not longer accepted Signed-off-by: joshvanl <[email protected]> * String match on sentry Kubernetes validator longname test Signed-off-by: joshvanl <[email protected]> * Fix namespace of sentry in operator tests Signed-off-by: joshvanl <[email protected]> * Linting Signed-off-by: joshvanl <[email protected]> * Update integration kubernetes process to use leaf certificate with cluster.local Signed-off-by: joshvanl <[email protected]> * Fix setting correct control plane trust domain on daprd Signed-off-by: joshvanl <[email protected]> * Remove SENTRY_LOCAL_IDENTITY form expected env var Signed-off-by: joshvanl <[email protected]> * Fix control plane trust domain setting in test Signed-off-by: joshvanl <[email protected]> * Fixes int version skew tests using legacy client/server Signed-off-by: joshvanl <[email protected]> * Fix int version-skew patch on v1.13.0 Signed-off-by: joshvanl <[email protected]> * Use correct namespace for sentry in injector integration tests Signed-off-by: joshvanl <[email protected]> --------- Signed-off-by: joshvanl <[email protected]> Co-authored-by: Dapr Bot <[email protected]> Co-authored-by: Yaron Schneider <[email protected]>
- Loading branch information
1 parent
7b881a7
commit 9723f55
Showing
47 changed files
with
855 additions
and
1,171 deletions.
There are no files selected for viewing
406 changes: 406 additions & 0 deletions
406
...integration/release-1.13/control-plane-master/0003-daprd-control-plane-trust-domain.patch
Large diffs are not rendered by default.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
.../integration/release-1.13/dapr-sidecar-master/0003-daprd-control-plane-trust-domain.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/tests/integration/framework/process/daprd/daprd.go b/tests/integration/framework/process/daprd/daprd.go | ||
index 8e6960f7c..06c9c9185 100644 | ||
--- a/tests/integration/framework/process/daprd/daprd.go | ||
+++ b/tests/integration/framework/process/daprd/daprd.go | ||
@@ -140,6 +140,9 @@ func New(t *testing.T, fopts ...Option) *Daprd { | ||
if opts.blockShutdownDuration != nil { | ||
args = append(args, "--dapr-block-shutdown-duration="+*opts.blockShutdownDuration) | ||
} | ||
+ if opts.controlPlaneTrustDomain != nil { | ||
+ args = append(args, "--control-plane-trust-domain="+*opts.controlPlaneTrustDomain) | ||
+ } | ||
|
||
ns := "default" | ||
if opts.namespace != nil { | ||
diff --git a/tests/integration/framework/process/daprd/options.go b/tests/integration/framework/process/daprd/options.go | ||
index d6b39a535..739d0481c 100644 | ||
--- a/tests/integration/framework/process/daprd/options.go | ||
+++ b/tests/integration/framework/process/daprd/options.go | ||
@@ -55,6 +55,7 @@ type options struct { | ||
disableK8sSecretStore *bool | ||
gracefulShutdownSeconds *int | ||
blockShutdownDuration *string | ||
+ controlPlaneTrustDomain *string | ||
} | ||
|
||
func WithExecOptions(execOptions ...exec.Option) Option { | ||
@@ -246,3 +247,9 @@ func WithDaprBlockShutdownDuration(duration string) Option { | ||
o.blockShutdownDuration = &duration | ||
} | ||
} | ||
+ | ||
+func WithControlPlaneTrustDomain(trustDomain string) Option { | ||
+ return func(o *options) { | ||
+ o.controlPlaneTrustDomain = &trustDomain | ||
+ } | ||
+} | ||
diff --git a/tests/integration/suite/daprd/hotreload/operator/informer.go b/tests/integration/suite/daprd/hotreload/operator/informer.go | ||
index 1af786e19..b8b13652f 100644 | ||
--- a/tests/integration/suite/daprd/hotreload/operator/informer.go | ||
+++ b/tests/integration/suite/daprd/hotreload/operator/informer.go | ||
@@ -105,6 +105,7 @@ func (i *informer) Setup(t *testing.T) []framework.Option { | ||
daprd.WithExecOptions(exec.WithEnvVars(t, | ||
"DAPR_TRUST_ANCHORS", string(sentry.CABundle().TrustAnchors), | ||
)), | ||
+ daprd.WithControlPlaneTrustDomain("integration.test.dapr.io"), | ||
) | ||
|
||
return []framework.Option{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.