Skip to content

About

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

108 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneShotLink

Self-host one-time links for passwords, API keys, and private notes: the recipient gets one view, then the record is deleted.

Free-tier beta

Code-level gates are green, and the app runs in a hardened, non-root container.

OneShotLink — share a secret once, on a server you run

Share a secret once — on a server you run.

What it does

  • One view, then gone. The consume is an atomic compare-and-delete in Lua: eight concurrent reveals produce exactly one winner.
  • A preview cannot spend it. Opening the link shows a confirmation first. In v3, GET .../secret/:key returns metadata only; POST .../secret/:key/reveal consumes.
  • Encrypted at rest. AES-256-GCM; plaintext never enters Redis. The server holds the instance key and can read a revealed secret — the passphrase is an extra access check, not a second key.
  • One answer for every miss. Expired, already opened, and never existed all return the same 404. Redis enforces a TTL allowlist, so there is no cleanup job to fail silently.
  • No account on either end. Optional simple-mode accounts add Argon2id sign-in, opaque sessions, CSRF-protected mutations, owner receipts and a dashboard. AUTH_MODE=full returns 501 on purpose.
  • Operator tooling. bin/ots covers customers, health, backup/restore and key rotation; there is also /metrics, an audit stream, an OpenAPI 3.1 document, and one-time text files up to 512 KiB.
  • Hardened by default. Non-root read-only container, Redis auth and AOF, per-IP rate limits with Retry-After, redacted logs, strict CSP and HSTS when SSL=true.

Not built: the admin API (the CLI covers it), organizations, custom domains, email jobs, MFA/SSO and i18n.

Stack

Ruby 3.3 · Roda 3 on Rack 3 · Puma 7 · Redis 7+ · Vue 3 + TypeScript · Vite 6 · Tailwind CSS 4. See TECH_STACK.md.

Quickstart

Prerequisites: Docker with Compose v2, openssl and curl. For UI work you also need Node 24; browser journeys need Chrome/Chromium.

export SECRET="$(openssl rand -hex 32)"
export REDIS_PASSWORD="$(openssl rand -hex 24)"
docker compose up -d --build
curl -fsS http://localhost:3000/health

Open http://localhost:3000/. Configuration is environment-driven — see .env.example and DEPLOYMENT.md. The web container runs as UID 10001 with a read-only root filesystem and a persistent Redis volume.

For a real host, terminate TLS in front of the app, run script/preflight.sh, and rehearse the sequence with script/tls-rehearsal.sh. The deploy-day order is in DEPLOYMENT.md §4.2; these are human actions, not steps for an agent to run against shared infrastructure.

API example

Create a secret, preview it, then consume it. A preview is safe for link scanners; only the POST reveals and deletes.

# Save secret_key from the response.
curl -sS -X POST http://localhost:3000/api/v3/guest/conceal \
  -H 'content-type: application/json' \
  -d '{"secret":"hello","ttl":1800}'

# Preview — metadata only, 200, no value.
curl -si http://localhost:3000/api/v3/guest/secret/<key>

# Reveal — 200 with the value; the next POST returns 404.
curl -si -X POST http://localhost:3000/api/v3/guest/secret/<key>/reveal \
  -H 'content-type: application/json' -d '{}'

The frozen v1 GET consumes, so use v3 for new integrations. Runnable curl, TypeScript and Python examples live in examples/ and are explained in docs/SDK.md. Full contract: API.md.

Testing

The counts above come from these gates. Ruby runs in Docker on hosts without a local Ruby install:

docker run --rm --network=host \
  -v "$PWD":/app -v ots-bundle:/bundle -e BUNDLE_PATH=/bundle -w /app \
  ots-dev bundle exec rspec    # 342 examples, 0 failures; Redis DB 15 only

npm --prefix frontend test     # 41 passed
npm --prefix frontend run typecheck
npm --prefix frontend run build

Eight committed browser journeys cover lifecycle, accounts, file, requests, webhooks, states, mobile and accessibility. Run the primary journey against a live stack with BASE_URL=http://127.0.0.1:3000 npm --prefix e2e test; the full deployment check is BASE_URL=http://localhost:3000 script/verify-deployment.sh. All commands are in TESTING.md.

Security reporting

Do not file public issues for vulnerabilities. Follow SECURITY.md for scope and the reporting policy. Enable GitHub private vulnerability reporting in Settings → Security before publishing; until then there is no private channel. For ordinary bugs, open an issue with the X-Request-Id from the failing response. Never paste secrets, passphrases or tokens into an issue, PR or log.

Documentation

Clone workflow

Clean-room rebuild of the original service's core features. The MIT replica-* skills under ~/.agents/skills/ drive recon → architect → design → build → backend → test → diff → entrepreneur → brand → launch → deploy. Artifacts: replica/recon.md, replica/architecture.md, replica/features.csv, replica/design/tokens.json, replica/parity.md. No original source, bundles, logos, copy or fonts were copied. Rebranding is mandatory before any deploy and the brand sweep must stay clean:

python3 ~/.agents/skills/replica-diff/parity.py replica/features.csv
script/brand-sweep.sh

Read AGENTS.md before clone work.

License

MIT. See LICENSE.

About

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages