Skip to content
Browse documentation

Guides

Share secrets once

Create an expiring link, with an optional PIN, that lets one recipient reveal a value, several secrets, or pasted text once.

Create a one-time link

To share one secret, open its menu in the project's secret list and choose Share once. To share several secrets in one link, or text that is not stored in Bulgur, choose Share above the secret list, then select secrets or paste the text. Organization owners and admins can create links. Choose an expiry of one hour, one day, or seven days, then create the link and copy it immediately. The full link is shown only at creation and cannot be recovered from the active-links list.

A link is a snapshot at creation. Editing a secret later does not update it. Several selected secrets become one dotenv snapshot with references resolved, the same as an environment export. All selected secrets must belong to one project. Share the full URL privately: anyone who has it can reveal the snapshot once before it expires.

Secrets marked sensitive cannot be shared from the dashboard, because the browser cannot read them; the CLI can, with --allow-sensitive. Marking a secret sensitive, or deleting it, makes every link that covers it unavailable, including links that cover several secrets.

Add a PIN

You can require a PIN of 4 to 12 digits. The recipient must enter it before the link reveals anything, and the fifth wrong try destroys the link. Send the PIN through a different channel from the link, because someone with both can open it.

The PIN is an extra check, not encryption. The value is still encrypted with the key in the link, and Bulgur stores only a hash of a proof derived from the PIN and that key, so Bulgur does not learn the PIN. The limit on wrong tries is what protects a short PIN. Anyone who has the link can use up the tries, which destroys it, so treat the link itself as private.

Create a link from the CLI

With CLI 1.5.0 or newer, bulgur share creates the same links from a terminal. It encrypts on your machine and prints only the link to standard output. Name secrets to share them, use --all for the whole environment, or pipe text with --stdin. One secret is shared as its bare value, several as a dotenv snapshot. --ttl accepts one minute to seven days, and --pin asks for a PIN on the terminal without putting it on the command line.

--stdin takes UTF-8 text, because the recipient's browser can only show text; encode anything else first, for example with base64. It works outside a project directory: the CLI uses the organization from --org, else from bulgur.json, else the one organization you own or administer. If you manage several organizations, pass --org.

For secret names and --all, the CLI uses the environment from bulgur.json unless you pass --env. Secrets marked sensitive need --allow-sensitive, which is the only way to share them, because the dashboard cannot read them. The CLI also refuses a selected secret whose resolved value contains an exact copy of a sensitive value of 8 bytes or more, for example through a reference, unless you pass --allow-sensitive. This check is best effort: it does not detect encoded or partial copies, or copies through cyclic or very deep references. With --allow-sensitive, the sensitive secrets found this way are recorded with the link, so a link for one secret that contains a sensitive value covers both secrets and the dashboard lists it as a link for two secrets.

A runtime, MCP, project-bound, or workload token cannot create links; sign in as an organization owner or admin with a full-access token that is not bound to an organization or project. A BULGUR_TOKEN environment variable is used first, as with every command. Because a project .env usually holds a project-bound token, bulgur share otherwise uses your saved login from bulgur login ahead of a BULGUR_TOKEN in the project .env, but only when that login is for the same server as the project. If the project .env points at a different server, share uses the project's credentials like every other command, and if that server refuses them, the error says how to log in to it, for example with bulgur login --host.

What the recipient sees

The recipient opens the link, enters the PIN if there is one, and selects Reveal secret. No Bulgur account is required. A successful reveal consumes the link, so opening the same link again cannot reveal the value. An expired, revoked, already used, or invalid link shows an unavailable message.

Wait to select Reveal until you are ready to use the value. A reveal request consumes the link before the browser decrypts it, so a damaged link may be used without displaying the value. The recipient page removes the URL fragment from the browser address bar after reading it, and the decrypted value stays in that page for the current view.

How the link protects the value

The browser encrypts the fetched value with a fresh key before creating the link. Bulgur stores ciphertext and a nonce. The link's URL fragment carries both a one-time capability and the decryption key; URL fragments are not sent with the initial page request. On reveal, the browser sends only the capability (and a PIN proof, if the link has a PIN) to consume the share, then decrypts the returned ciphertext locally. Bulgur never receives the link's decryption key.

Treat the complete link as a secret. Anyone who obtains it before the intended recipient can consume it. The link grants access to one snapshot, not to the project or the current secret value.

Expire and revoke links

Open Share once again to see that secret's active links, or Share above the secret list to see all of the organization's active links, and revoke any you no longer want available. Links expire automatically at the selected time and are removed when consumed. Deleting any secret a link covers also makes that link unavailable. If the creator is no longer an organization owner or admin, their outstanding links cannot be consumed.

An organization can have up to 50 active shares. Revoke links you no longer need before creating more.