Secret

A password or API key stored on the server.

A Secret is a password or API key, stored on the server, outside the Site's code.

  • Preview and Live have separate values.
  • Values can't be read back once set.
  • PHP reads them with haume_site_secret('NAME').
hm secrets set STRIPE_KEY --scope live

See Store an API key.