Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes legacy SPIFFE TLS clients and servers in favour of the new SPIRE TLS clients and servers. #7037

Merged

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Oct 13, 2023

E2E tests are currently failing on N-2 version skew, though it was my understanding that this was best effort and not guaranteed. Perhaps we need to be skipping this test for now.

Part of #5756

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Attention: Patch coverage is 58.53659% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 61.83%. Comparing base (7b881a7) to head (14bb606).

Files Patch % Lines
pkg/security/security.go 0.00% 6 Missing ⚠️
...g/sentry/server/validator/kubernetes/kubernetes.go 77.77% 4 Missing ⚠️
pkg/security/x509source.go 0.00% 3 Missing ⚠️
pkg/sentry/server/ca/fake/fake.go 0.00% 1 Missing and 1 partial ⚠️
pkg/sentry/server/validator/fake/fake.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7037      +/-   ##
==========================================
- Coverage   61.88%   61.83%   -0.06%     
==========================================
  Files         246      245       -1     
  Lines       22519    22414     -105     
==========================================
- Hits        13937    13860      -77     
+ Misses       7415     7393      -22     
+ Partials     1167     1161       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Oct 13, 2023

Dapr Version Skew test (dapr-sidecar-master - 1.12.0)

🔗 Link to Action run

Commit ref: af4dc0b

❌ Version Skew tests failed

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator

dapr-bot commented Oct 13, 2023

Dapr Version Skew test (control-plane-master - 1.12.0)

🔗 Link to Action run

Commit ref: af4dc0b

❌ Version Skew tests failed

Please check the logs for details on the error.

@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Oct 21, 2023

Dapr Version Skew test (control-plane-master - 1.12.0)

🔗 Link to Action run

Commit ref: 083fd25

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Oct 21, 2023

Dapr Version Skew test (dapr-sidecar-master - 1.12.0)

🔗 Link to Action run

Commit ref: 083fd25

❌ Version Skew tests failed

Please check the logs for details on the error.

@JoshVanL JoshVanL marked this pull request as ready for review October 21, 2023 15:09
@JoshVanL JoshVanL requested review from a team as code owners October 21, 2023 15:09
@JoshVanL JoshVanL marked this pull request as draft October 21, 2023 15:09
@JoshVanL JoshVanL marked this pull request as ready for review October 21, 2023 15:18
@JoshVanL JoshVanL added the autoupdate DaprBot will keep the Pull Request up to date with master branch label Oct 21, 2023
@ItalyPaleAle
Copy link
Contributor

E2E tests are currently failing on N-2 version skew, though it was my understanding that this was best effort and not guaranteed. Perhaps we need to be skipping this test for now.

The failures seem related to some setup steps, not code changes?

// TODO: @joshvanl: included for backwards compatibility with v1.11 daprd's
// which request these environment variables to be present when running in
// Kubernetes. Should be removed in v1.13.
container.Env = append(container.Env,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we ok dropping support for 1.11 in 1.13? That is not the usual "N-2" compatibility we offer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N-2 is best effort and not guaranteed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We support N-1 compatibility, N-2 support is for users running with N-2 and not mixing N-2 with N. Anyway, 1.11 is N-3 from 1.14, so we are OK to remove it either way.

@JoshVanL JoshVanL force-pushed the sentry-remove-legacy-tls-client-servers branch from d312b27 to 53e381b Compare October 24, 2023 14:53
@JoshVanL JoshVanL force-pushed the sentry-remove-legacy-tls-client-servers branch from ebedd4c to 8c623ea Compare November 3, 2023 14:37
@JoshVanL JoshVanL added this to the v1.13 milestone Nov 28, 2023
@JoshVanL JoshVanL force-pushed the sentry-remove-legacy-tls-client-servers branch 2 times, most recently from 7905cd4 to 010214a Compare December 4, 2023 13:32
@JoshVanL JoshVanL added the P0 label Dec 5, 2023
@JoshVanL JoshVanL force-pushed the sentry-remove-legacy-tls-client-servers branch from 1397637 to e7e16e4 Compare January 22, 2024 12:14
@mukundansundar mukundansundar modified the milestones: v1.13, v1.14 Feb 26, 2024
@JoshVanL JoshVanL modified the milestones: v1.13, v1.14 Feb 26, 2024
@JoshVanL JoshVanL force-pushed the sentry-remove-legacy-tls-client-servers branch 2 times, most recently from 2fb4e9c to 244b483 Compare March 6, 2024 14:36
@JoshVanL
Copy link
Contributor Author

JoshVanL commented Mar 6, 2024

/test-version-skew

@JoshVanL JoshVanL marked this pull request as draft March 25, 2024 13:25
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Mar 25, 2024

Dapr Version Skew e2e test (control-plane-master - 1.13.0)

🔗 Link to Action run

Commit ref: 7b44354

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Mar 25, 2024

Dapr Version Skew integration test (dapr-sidecar-master - 1.13.0)

🔗 Link to Action run

Commit ref: 7b44354

❌ Version Skew tests failed

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator

dapr-bot commented Mar 25, 2024

Dapr Version Skew e2e test (dapr-sidecar-master - 1.13.0)

🔗 Link to Action run

Commit ref: 7b44354

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Mar 25, 2024

Dapr Version Skew integration test (control-plane-master - 1.13.0)

🔗 Link to Action run

Commit ref: 7b44354

❌ Version Skew tests failed

Please check the logs for details on the error.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot

This comment has been minimized.

@dapr-bot

This comment has been minimized.

@dapr-bot

This comment has been minimized.

@dapr-bot

This comment has been minimized.

@dapr-bot
Copy link
Collaborator

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

✅ Version Skew tests passed

@JoshVanL JoshVanL marked this pull request as ready for review March 25, 2024 14:59
@dapr-bot
Copy link
Collaborator

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

✅ Version Skew tests passed

@artursouza artursouza merged commit 9723f55 into dapr:master Mar 26, 2024
21 of 22 checks passed
cicoyle pushed a commit to cicoyle/dapr that referenced this pull request May 24, 2024
…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 <me@joshvanl.dev>

* Fix sentry int tests, and adds test to ensure legacy ID is not longer
accepted

Signed-off-by: joshvanl <me@joshvanl.dev>

* String match on sentry Kubernetes validator longname test

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix namespace of sentry in operator tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Linting

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update integration kubernetes process to use leaf certificate with
cluster.local

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix setting correct control plane trust domain on daprd

Signed-off-by: joshvanl <me@joshvanl.dev>

* Remove SENTRY_LOCAL_IDENTITY form expected env var

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix control plane trust domain setting in test

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fixes int version skew tests using legacy client/server

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix int version-skew patch on v1.13.0

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use correct namespace for sentry in injector integration tests

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
jfreeland pushed a commit to jfreeland/dapr that referenced this pull request Jun 3, 2024
…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 <me@joshvanl.dev>

* Fix sentry int tests, and adds test to ensure legacy ID is not longer
accepted

Signed-off-by: joshvanl <me@joshvanl.dev>

* String match on sentry Kubernetes validator longname test

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix namespace of sentry in operator tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Linting

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update integration kubernetes process to use leaf certificate with
cluster.local

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix setting correct control plane trust domain on daprd

Signed-off-by: joshvanl <me@joshvanl.dev>

* Remove SENTRY_LOCAL_IDENTITY form expected env var

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix control plane trust domain setting in test

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fixes int version skew tests using legacy client/server

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix int version-skew patch on v1.13.0

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use correct namespace for sentry in injector integration tests

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: Joey Freeland <joey@free.land>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoupdate DaprBot will keep the Pull Request up to date with master branch P0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants