Documentation
¶
Overview ¶
Package inventoryserver serves CA-authenticated resolution reads and separate OIDC-authorized administration and host enrollment in managed deployments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Admins ¶ added in v0.31.0
Admins is intentionally one role. IDs use the same configured claim mapping and active directory records as certificate issuance, never a second identity.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient uses a separate transport for inventory so a Unix policy socket cannot accidentally receive inventory requests. Redirects are never followed.
func (*Client) FetchDiscovery ¶
FetchDiscovery reads inventory-owned login configuration using service authentication.
func (*Client) Resolve ¶
func (c *Client) Resolve(ctx context.Context, req wire.ResolveRequest) (*wire.Resolution, error)
type Control ¶ added in v0.31.0
type OIDCConfig ¶
type OIDCConfig struct {
IdentityMode oidc.IdentityMode `yaml:"identity_mode,omitempty" json:"identity_mode,omitempty"`
UserIDClaim string `yaml:"user_id_claim,omitempty" json:"user_id_claim,omitempty"`
Issuer string `yaml:"issuer" json:"issuer"`
ClientID string `yaml:"client_id" json:"client_id"`
ClientSecret string `yaml:"client_secret,omitempty" json:"client_secret,omitempty"` // Optional, for confidential clients
}
OIDCConfig represents OIDC configuration for token validation
type Resolver ¶
Resolver combines independently owned directory and host snapshots. Each source supplies its revision together with the facts from that snapshot.
type ServerConfig ¶
type ServerConfig struct {
CAPublicKey string `yaml:"ca_pubkey" json:"ca_pubkey"`
OIDC OIDCConfig `yaml:"oidc" json:"oidc"`
}
ServerConfig contains inventory-owned authentication settings loaded at startup.
func (*ServerConfig) BootstrapAuth ¶
func (c *ServerConfig) BootstrapAuth() wire.AuthConfig
BootstrapAuth returns the auth configuration for the bootstrap endpoint.
func (*ServerConfig) Validate ¶
func (c *ServerConfig) Validate() error
Validate checks that the ServerConfig is valid.