Documentation
¶
Overview ¶
Package backend provides the Vault plugin backend that is used to generate authentication keys for Tailscale devices.
Index ¶
- func Create(ctx context.Context, config *logical.BackendConfig) (logical.Backend, error)
- type Backend
- func (b *Backend) GenerateKey(ctx context.Context, request *logical.Request, data *framework.FieldData) (*logical.Response, error)
- func (b *Backend) ReadConfiguration(ctx context.Context, request *logical.Request, _ *framework.FieldData) (*logical.Response, error)
- func (b *Backend) UpdateConfiguration(ctx context.Context, request *logical.Request, data *framework.FieldData) (*logical.Response, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
The Backend type is responsible for handling inbound requests from Vault to serve Tailscale authentication keys.
func (*Backend) GenerateKey ¶
func (b *Backend) GenerateKey(ctx context.Context, request *logical.Request, data *framework.FieldData) (*logical.Response, error)
GenerateKey generates a new authentication key via the Tailscale API. This method checks the existing Backend configuration for the Tailnet and API key. It will return an error if the configuration does not exist.
Click to show internal directories.
Click to hide internal directories.