Skip to content
DennisPohlmannPublic

About

Share passwords and secrets with one-time links that burn after reading: end-to-end encrypted in the browser, stored in Redis. Self-hosted, Docker image and Helm chart.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

108 Commits

Folders and files

Vanishly

Vanishly

Share passwords and other secrets with a link that works only once. Vanishly encrypts the secret in your browser, stores only the ciphertext in Redis and deletes it after it was viewed, burned or expired. The key is part of the link after #, which browsers never send to the server, so not even the server operator can read a secret.

Vanishly runs as a small Node.js container next to Redis.

Features

  • End-to-end encrypted: AES-256-GCM in the browser (Web Crypto), random 256-bit key per secret, only in the link fragment.
  • Burn after reading, or a set number of views (1 to MAX_VIEWS), and an expiry from 5 minutes to MAX_TTL.
  • Optional passphrase: checked by the server before the secret is handed out; a wrong one does not use a view, too many destroy the secret.
  • Status page for the sender: state, a history of who opened it and when (no IPs), copy the share link again, burn the secret early. With sign-in it can be limited to the creator, the responsible people and those who opened it (STATUS_ACCESS); only creator and responsible may burn.
  • Only for chosen people (optional): with sign-in via Microsoft Entra ID, Keycloak, Okta, Auth0, Google Workspace, PingOne, JumpCloud, Cognito or any OpenID Connect provider (AUTH_PROVIDER), or with Vanishly's own user accounts (AUTH_PROVIDER=local, managed by admins on /admin), the sender names the people or groups who may open a secret (with a directory also by searching names in a group). The server hands it out only to them after they signed in; others use no view. A secret can also name responsible people or groups who look after it (RESPONSIBLE). Off by default; a Keycloak example with demo users and a test login server for trying it are included (docker-compose/).
  • IP access lists (optional): which networks may create, read or use the admin area (CREATE_, READ_, ADMIN_ALLOWED_IPS / _DENIED_IPS), set only in the environment; off by default.
  • Click to reveal: opening the link shows nothing yet, so chat and mail link previews cannot burn a secret.
  • Password generator (in the browser, crypto.getRandomValues), with configurable length and character classes.
  • OpenAPI 3.1 API (/api/openapi.json, API reference at /api/docs, linked in the footer), including POST /api/v1/share and POST /api/v1/open (open a link with its passphrase) for scripts and curl. Every endpoint can be switched off on its own (e.g. create and reveal only); the docs then show only what is on.
  • MCP server for AI clients (/mcp, ENABLE_MCP): Claude, VS Code and other MCP clients create secrets and check or burn them through the API. With sign-in and API_TOKENS=true the client signs in through the browser and gets a personal API token (MCP_OAUTH); there is no tool to open a secret.
  • Audit log (optional, AUDIT_LOG): who created, opened, burned what, when, for whom, with comment and run id; one JSON event per line in Elastic Common Schema, OpenTelemetry or a plain format, to a file, stdout, Redis, syslog, OTLP or a webhook. Tamper-evident (hash chain, optional HMAC signatures, npm run audit:verify), fail-closed by default, never with the secret itself. Admins filter and export it on /admin.
  • Personal API tokens (optional, API_TOKENS): each user makes their own tokens (lifetime, allowed IP networks, scopes) on "API tokens"; only activated users or groups may, and API_TOKEN_REQUIRED=true makes them the only way into the API.
  • Templates for your branding: logo, favicon, colours, fonts, pictures, footer links, texts and, if you like, own HTML views. Two designs are built in, each with light and dark mode and made for phones: default (blue) and aurora (bright white with soft violet/teal accents, round), plus example-brand as a starting point for your own. TEMPLATE picks the design, DEFAULT_MODE whether it starts light, dark or like the visitor's system.
  • Switch off what you do not need: passphrase, views, receipts, burn, view log, generator, language and light/dark buttons, each API endpoint, its docs and its footer link, the GitHub link (ENABLE_*); languages (LANGUAGES=en).
  • Configured with environment variables only: all of them with their defaults in docker-compose/standalone/.env.example and .env.example; a wrong value or a misspelt name stops the start with a clear message.
  • Rules for your organisation (optional): minimum secret length, required passphrase with minimum length and character classes, a confirmation checkbox with your own text ("only one password, no user name..."), and the expiry choices of the form. Over MCP the person confirms each secret in the AI client, warned about links, user names or host names found in it.
  • Mobile friendly and accessible: WCAG 2.2 AA (BITV 2.0) as the target, every page checked automatically with axe-core in all templates, light and dark, down to 320 px; keyboard and screen reader support. English, German, Spanish, French, Italian, Dutch, Polish and Portuguese.
  • Hardened: both containers run without root, read-only, without capabilities; CI runs npm audit, CodeQL and Trivy (repository, Dockerfile, images).
  • Privacy: no cookies except the language choice (and the session when sign-in is on), no IPs stored (except in the optional audit log), no third-party requests, strict Content Security Policy, no-store caching.

How a secret is protected, step by step and with its limits: docs/SECURITY.md.

Screenshots

Create a secret (light)

Create a secret

Link ready (dark)

Link ready

Receipt for the sender

Receipt

Recipient on a phone: passphrase, then the secret

Reveal on a phone Revealed on a phone, dark mode

Optional rules: passphrase complexity, confirmation, own expiry choices (phone)

Form with rules

With sign-in: only for chosen people, found by the people search

Recipients and people search

Personal API tokens (API_TOKENS=true)

API tokens

Administration (ADMIN_USERS, ADMIN_GROUPS): audit log and all API tokens

Admin: audit log

Admin: API tokens

Built-in design aurora (TEMPLATE=aurora): light, dark, phone

Aurora, light

Aurora, dark Aurora on a phone, light Aurora on a phone, dark

API documentation (/api/docs)

API docs

Requirements

  • Docker with Docker Compose (the image brings Node.js 26 LTS on Alpine Linux), or Node.js 24 or newer
  • Redis 7 or newer (included in the Compose files and in the Helm chart), or an external one (REDIS_URL, also rediss:// with an own CA)
  • Or Kubernetes 1.25 or newer with Helm: charts/vanishly
  • A reverse proxy with TLS (nginx, Caddy, Traefik) in front of port 3000

Quick start

curl -fsSLO https://raw.githubusercontent.com/DennisPohlmann/Vanishly/main/docker-compose/standalone/docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/DennisPohlmann/Vanishly/main/docker-compose/standalone/.env.example -o .env
# edit .env: BASE_URL, TRUST_PROXY=1 behind a proxy
docker compose up -d          # or: podman-compose up -d

The Compose files live in docker-compose/ (until 1.2.1 docker-compose.yml was at the top of the repository):

Folder What
docker-compose/standalone/ Vanishly with its own Redis; the file above. docker-compose.build.yml builds from a checkout, docker-compose.auth-test.yml adds a test login server
docker-compose/keycloak/ Example with Keycloak and demo users: sign-in, recipients, responsible groups, people search
docker-compose/entra/ Sign-in through Microsoft Entra ID: app registration, Graph permissions, groups and admins
docker-compose/local/ Vanishly's own user accounts (AUTH_PROVIDER=local): no identity provider, users managed on /admin
okta/, auth0/, google/, ping/, jumpcloud/, cognito/, oidc/ Sign-in through Okta, Auth0, Google Workspace, PingOne, JumpCloud, Amazon Cognito or any other OpenID Connect provider

docker-compose.yml pulls the published image, so it needs nothing else from the repository but its .env. To build from a checkout instead, in docker-compose/standalone/: cp .env.example .env, then docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build.

Then open http://127.0.0.1:3000. Every setting is listed with its default in .env, which docker-compose.yml loads; change it there, e.g. TEMPLATE=aurora, REQUIRE_PASSPHRASE=true, ENABLE_RECEIPTS=false. The full list: docs/CONFIG.md. Every step, the reverse proxy and the tar.gz with systemd: docs/INSTALLATION.md.

On Kubernetes, with the bundled Redis (all values: charts/vanishly):

helm install vanishly oci://ghcr.io/dennispohlmann/charts/vanishly \
  --namespace vanishly --create-namespace --set config.BASE_URL=https://ots.example.com
# Share from the command line
curl -s -X POST http://127.0.0.1:3000/api/v1/share \
  -H 'Content-Type: application/json' \
  -d '{"secret":"correct horse battery staple","ttl":3600,"views":1}'

Documentation

File Content
docs/README.md index of all documentation
docs/INSTALLATION.md docker compose, container, tar.gz with systemd, Kubernetes (Helm), reverse proxy, update, troubleshooting, removal
docs/CONFIG.md all environment variables, Redis, rate limits, API access, MCP server, languages
docs/USAGE.md pages, how sharing works, receipts, health and monitoring
docs/SECURITY.md how a secret is protected: encryption in the browser, what Redis stores, passphrase, behaviour on Redis errors, limits
docs/providers/ sign-in providers: what each supports, one page per provider (none, Entra ID, Keycloak, Okta, Auth0, Google, PingOne, JumpCloud, Cognito, other OIDC, local accounts)
docker-compose/ Compose examples: standalone (Vanishly with Redis), keycloak (local sign-in demo), entra (Microsoft Entra ID), local (own user accounts), and one per other provider (okta, auth0, google, ping, jumpcloud, cognito, oidc)
docs/ACCESSIBILITY.md accessibility statement: WCAG 2.2 AA target, how it is checked, known limits, feedback
docs/INTERFACE.md REST API (OpenAPI), MCP and its OAuth endpoints, crypto format, Redis keys, audit events
docs/DEVELOPMENT.md local development, tests, CI and releases
templates/README.md own templates: logo, CSS, pictures, views
charts/vanishly/README.md Helm chart: install from ghcr.io, all values, Redis, own templates, overrides
openapi/openapi.json the API contract
CHANGELOG.md changes per version
.github/CONTRIBUTING.md how to report bugs and contribute; also the code of conduct and the security policy
THIRD-PARTY-LICENSES.md third-party components and their licenses

Building

make check      # tools/check-all.sh: what the CI checks on a push (needs Redis)
make hooks      # run make check before every git push
make package    # dist/vanishly-<version>.tar.gz + .sha256
make image      # local Docker image vanishly:<version>
make up         # build from this folder and start with Compose

Local development and the release process: docs/DEVELOPMENT.md.

License

Vanishly is free software under the GNU General Public License, version 3 or (at your option) any later version. The full text is in LICENSE. The third-party packages and their licenses are listed in THIRD-PARTY-LICENSES.md.

About

Share passwords and secrets with one-time links that burn after reading: end-to-end encrypted in the browser, stored in Redis. Self-hosted, Docker image and Helm chart.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages