View Source Plausible.Plugins.API.Token (Plausible v0.0.1)
Ecto schema for Plugins API Tokens. Tokens are stored hashed and require a description.
Tokens are considered secret, although the Plugins API by nature will expose very little, if any, destructive/insecure operations.
The raw token version is meant to be presented to the user upon creation. It is prefixed with a plain text identifier allowing source scanning for leaked secrets.
Summary
Functions
Raw tokens are prefixed so that tools like https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning can scan repositories for accidental secret commits.
Types
Functions
@spec insert_changeset(Plausible.Site.t(), map(), map()) :: Ecto.Changeset.t()
Raw tokens are prefixed so that tools like https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning can scan repositories for accidental secret commits.