Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureSecuritySecret ¶ added in v0.8.2
func EnsureSecuritySecret(configPath string, cfg *types.DaemonConfig) (bool, error)
EnsureSecuritySecret guarantees the daemon has a non-empty HMAC secret. If cfg.SecuritySecret is empty it generates a cryptographically random 32-byte secret, sets it on cfg, and persists the full config to configPath (mode 0600) so the local CLI client — which reads the same file — signs with a matching secret. This MUST only be called from the daemon startup path, never from the client, so the client never invents its own secret.
Returns true when a new secret was generated.
func GetGitCommit ¶
func LoadConfig ¶
func LoadConfig(filePath string) (*types.DaemonConfig, error)
func ReadConfigInServer ¶
func ReadConfigInServer(path string) (*config.NextDeployConfig, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.