Secret

A reference to a host secret, made by secret(name).

It holds only the name: host code reads the value from the environment when it uses it, and the value never enters the sandbox, a prompt or the log.

Opaque: build it with its factory and pass it on; it has no public members.

Properties

namestringrequired

The host environment variable the value is read from. Unset or empty when used is a ConfigError missing_secret.

Edit on GitHub

On this page