Documentation ¶
Overview ¶
Package sds implements secret discovery service in NodeAgent.
Index ¶
Constants ¶
View Source
const (
// SecretType is used for secret discovery service to construct response.
SecretType = "type.googleapis.com/envoy.api.v2.auth.Secret"
)
Variables ¶
This section is empty.
Functions ¶
func NewPlugins ¶
NewPlugins returns a slice of default Plugins.
func NotifyProxy ¶
func NotifyProxy(proxyID, resourceName string, secret *model.SecretItem) error
NotifyProxy send notification to proxy about secret update, SDS will close streaming connection is secret is nil.
Types ¶
type Options ¶
type Options struct { // UDSPath is the unix domain socket through which SDS server communicates with proxies. UDSPath string // CertFile is the path of Cert File for gRPC server TLS settings. CertFile string // KeyFile is the path of Key File for gRPC server TLS settings. KeyFile string // CAEndpoint is the CA endpoint to which node agent sends CSR request. CAEndpoint string // The CA provider name. CAProviderName string // TrustDomain corresponds to the trust root of a system. // https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain TrustDomain string // PluginNames is plugins' name for certain authentication provider. PluginNames []string }
Options provides all of the configuration parameters for secret discovery service.
Click to show internal directories.
Click to hide internal directories.