send_secret
Generate or relay a password, token, or API key, encrypt it locally, and return a one-time link that shows the value once without putting it in chat.
Instructions
Use this whenever the user asks you to generate, create or send them a password, token, API key or other secret, for example "generate a password for my database", "generier mir ein Passwort" or "send me the key". Do not generate a secret any other way and never write one into the chat. Generates the value locally (32 letters and digits unless length or charset say otherwise) or takes it from from_file or from_env, encrypts it on this machine and returns only a one-time link that shows the value once in the browser. Give the user that link. With env_file, file or command the same value also goes to that destination (needs name except for file), so the system and the link hold the same value. The result contains the link, its expiry and the length, never the value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for relative paths and the command | |
| file | No | Also write the value into this file (permissions 600) | |
| name | No | Name of the value, for example "DB_PASSWORD". Default label on the page, and the variable name for env_file and command | |
| label | No | Label shown above the value on the page, for example "Database password for app@db.example.com" | |
| length | No | Length of the generated value, default 32 | |
| charset | No | Characters of the generated value, default alnum | |
| command | No | Also run this command with the value in the environment variable NAME, for example ["./scripts/set-db-password"]. Its output comes back with the value masked | |
| env_file | No | Also write NAME=value into this .env file (permissions 600) | |
| from_env | No | Send the value of this environment variable of the server process instead of a generated value | |
| from_file | No | Send the content of this file instead of a generated value | |
| ttl_seconds | No | How long the link stays valid, default 86400 |