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

SPIFFE_ENDPOINT_SOCKET env support for spire-agent #5776

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kfox1111
Copy link
Contributor

Enables specifying SPIFFE_ENDPOINT_SOCKET to the non run subcommands to the spire-agent

partially-fixes: #5770

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Comment on lines +16 to +17
// DefaultSocketPath is the SPIRE agent's default socket path
var DefaultSocketPath string
Copy link
Collaborator

@MarcosDY MarcosDY Jan 21, 2025

Choose a reason for hiding this comment

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

This will be used for API calls and health checks, except for the run command, where we will continue using DefaultRunSocketPath.

Is it expected to affect health checks?
If not, should we update the code to modify the default within AddOSFlags instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We chatted about this. I believe the current plan is to do everything but run in one pr, and run in a future pr.

@kfox1111 kfox1111 marked this pull request as draft January 27, 2025 16:36
@kfox1111
Copy link
Contributor Author

SPIFFE_ENDPOINT_SOCKET needs to support unix:// on the front according to: https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE_Workload_Endpoint.md#4-locating-the-endpoint

But this patch doesn't work with that currently.

@amartinezfayo amartinezfayo added this to the 1.12.0 milestone Jan 30, 2025
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
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.

cli socket path env
3 participants