Skip to content

Commit

Permalink
Set a default admin socket path for spire-agent cli use (spiffe#4856)
Browse files Browse the repository at this point in the history
* Set a default admin socket path for spire-agent cli use

Set a standard default location the spire-agent cli
will use to look for the agent socket when using commands against
the spire-agent daemon. Actual functionality needing this variable
will come in future patches.

Signed-off-by: Kevin Fox <[email protected]>

* Incorperate feedback

Signed-off-by: Kevin Fox <[email protected]>

* Fix filename

Signed-off-by: Kevin Fox <[email protected]>

---------

Signed-off-by: Kevin Fox <[email protected]>
  • Loading branch information
kfox1111 authored Feb 2, 2024
1 parent 6bcf844 commit f86bc23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/spire-agent/cli/common/defaults_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ package common
const (
// DefaultSocketPath is the SPIRE agent's default socket path
DefaultSocketPath = "/tmp/spire-agent/public/api.sock"
// DefaultAdminSocketPath is the SPIRE agent's default admin socket path
DefaultAdminSocketPath = "/tmp/spire-agent/private/admin.sock"
)
2 changes: 2 additions & 0 deletions cmd/spire-agent/cli/common/defaults_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ package common
const (
// DefaultNamedPipeName is the SPIRE agent's default named pipe name
DefaultNamedPipeName = "\\spire-agent\\public\\api"
// DefaultAdminNamedPipeName is the SPIRE agent's default admin named pipe name
DefaultAdminNamedPipeName = "\\spire-agent\\private\\admin"
)

0 comments on commit f86bc23

Please sign in to comment.