Skip to content

Add instance flag support#6789

Open
kfox1111 wants to merge 9 commits intospiffe:mainfrom
kfox1111:instance
Open

Add instance flag support#6789
kfox1111 wants to merge 9 commits intospiffe:mainfrom
kfox1111:instance

Conversation

@kfox1111
Copy link
Copy Markdown
Contributor

@kfox1111 kfox1111 commented Mar 25, 2026

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Description of change
Adds easy multiinstance support

Which issue this PR fixes
fixes #6247

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

func (c *agentConfig) getAddr() (net.Addr, error) {
return util.GetUnixAddrWithAbsPath(c.SocketPath)
resolved := common.ResolveSocketPath(c.SocketPath, common.DefaultSocketPath, "SPIFFE_PUBLIC_SOCKET_TEMPLATE", c.Instance)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this variable should be SPIRE_PUBLIC_SOCKET_TEMPLATE. We can't use anything from the SPIFFE_ namespace since the spec might want to use that later on.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
@kfox1111 kfox1111 marked this pull request as ready for review April 11, 2026 22:04
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.

Instance flag and pathing

2 participants