Yopass fork with one-time in-browser QR code preview for secure MFA enrollment and secret sharing
64
A self-hosted Yopass fork with one-time in-browser image preview for secure sharing of passwords, secrets, files, and MFA/TOTP QR codes.
Based on the original Yopass project.
The main addition is direct preview of encrypted images in the browser.
Supported image formats:
Instead of automatically downloading an MFA QR code, the recipient can open the one-time link and scan the QR code directly from the browser.
The original Yopass security model is preserved:
This makes yopass-mfa especially useful for distributing MFA/TOTP enrollment QR codes inside organizations.
Create a docker-compose.yml:
services:
memcached:
image: memcached:1.6-alpine
container_name: yopass-memcached
restart: unless-stopped
command:
- memcached
- -m
- "128"
- -I
- 10m
yopass:
image: mutkoff/yopass-mfa:latest
container_name: yopass
restart: unless-stopped
command:
- --memcached=memcached:11211
- --force-onetime-secrets
ports:
- "8080:1337"
depends_on:
- memcached
Start the service:
docker compose up -d
Check container status:
docker compose ps
Open Yopass in your browser:
http://SERVER_IP:8080
For example:
http://192.168.1.100:8080
Regular non-image files continue to work like standard Yopass downloads.
docker compose pull
docker compose up -d
docker compose down
For production use, HTTPS is strongly recommended.
When using Nginx, Traefik, Caddy, or another reverse proxy on the same server, bind Yopass only to localhost:
ports:
- "127.0.0.1:8080:1337"
Then proxy HTTPS traffic to:
http://127.0.0.1:8080
The example configuration uses Memcached for temporary encrypted storage.
Secrets are stored in memory and are not persisted to disk by default. Restarting Memcached removes all currently stored secrets.
A one-time link prevents the secret from being retrieved from the server more than once.
Once an image is displayed in the browser, however, it is technically impossible to prevent the recipient from taking a screenshot or photographing the screen.
This project is based on Yopass, which is licensed under the Apache License 2.0.
See the included LICENSE file for details.
Content type
Image
Digest
sha256:b912675c0…
Size
35 MB
Last updated
2 months ago
docker pull mutkoff/yopass-mfa