SaltDns.Certificates.Provider (Salt v1.0.0)

A certificate provider: an account at a certificate authority that speaks ACME (RFC 8555). Nothing about any particular authority is built in. What the provider supports is read from its directory document (SaltDns.Certificates.Capabilities) and cached in capabilities.

The account key and the external account binding key (eab_hmac_key, for authorities that want one) are encrypted with the vault, context certificate_provider.*, and redacted from inspect/1 of the struct and of a changeset (redact: true). account_url is set once the account is registered; it is what the CAA accounturi parameter names.

A provider with an organisation belongs to it; one without is shared by the whole installation and is created by the operator (SaltDns.Release).

Summary

Functions

Changeset for the fields a person fills in.

The statuses.

Whether the provider has a registered account and may be used.

Types

t()

@type t() :: %SaltDns.Certificates.Provider{
  __meta__: term(),
  account_key: term(),
  account_url: term(),
  capabilities: term(),
  capabilities_at: term(),
  contact_email: term(),
  directory_url: term(),
  eab_hmac_key: term(),
  eab_kid: term(),
  id: term(),
  inserted_at: term(),
  last_error: term(),
  name: term(),
  organisation: term(),
  organisation_id: term(),
  preferred_profile: term(),
  status: term(),
  updated_at: term()
}

Functions

changeset(provider, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Changeset for the fields a person fills in.

statuses()

@spec statuses() :: [atom()]

The statuses.

usable?(provider)

@spec usable?(t()) :: boolean()

Whether the provider has a registered account and may be used.