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

Add support for federated mode #124

Merged
merged 9 commits into from
Jan 27, 2024
Merged

Add support for federated mode #124

merged 9 commits into from
Jan 27, 2024

Conversation

edurra
Copy link
Contributor

@edurra edurra commented Jan 3, 2024

As stated on Issue 89 , SPIFFE Helper does not support federated mode, meaning that a trust bundle from a federated domain is not retrieved.

This pull request includes two configuration options to support fetching a federated domain trust bundle:

include_federated_domains: if true, it will include CA certificates from federated trust domains in the ca bundle.

The committed code does the following:

  1. Check if the include_federated_domains parameter is true
  2. Fetch the bundle in the same way it is currently done for the SVID bundle:
    2.1. Fetch the bundle associated to the federated trust domains from the svidResponse object
    2.2. Store the append the bundles to the CA trust bundle

pkg/sidecar/config.go Outdated Show resolved Hide resolved
pkg/sidecar/config.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
pkg/sidecar/config.go Outdated Show resolved Hide resolved
pkg/sidecar/config.go Outdated Show resolved Hide resolved
pkg/sidecar/sidecar.go Outdated Show resolved Hide resolved
pkg/sidecar/sidecar.go Outdated Show resolved Hide resolved
pkg/sidecar/sidecar.go Outdated Show resolved Hide resolved
@MarcosDY
Copy link
Collaborator

@edurra chabges looks good, but can you solve DCO? so we can merge, thanks!!!

@edurra
Copy link
Contributor Author

edurra commented Jan 16, 2024

@edurra chabges looks good, but can you solve DCO? so we can merge, thanks!!!

sure! done, let me know if I have to do anything else.

@faisal-memon
Copy link
Collaborator

@edurra Got some linter errors. Can you take a look? https://github.com/spiffe/spiffe-helper/actions/runs/7545693167/job/20541900458?pr=124

Signed-off-by: Eduardo <[email protected]>
@edurra
Copy link
Contributor Author

edurra commented Jan 16, 2024

@edurra Got some linter errors. Can you take a look? https://github.com/spiffe/spiffe-helper/actions/runs/7545693167/job/20541900458?pr=124

done, I just tested locally and it should be fixed

@faisal-memon faisal-memon merged commit 7c91b5b into spiffe:main Jan 27, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants