---
title: "Deploy One Time Secret"
description: "Share sensitive information securely with self-destructing links"
category: "Authentication"
url: https://railway.com/deploy/one-time-secret-1
---

# Deploy One Time Secret

Share sensitive information securely with self-destructing links

**[Deploy One Time Secret on Railway](https://railway.com/template/one-time-secret-1)**

- **Creator:** Karim Zarzour's Projects
- **Category:** Authentication
- **Total deploys:** 1

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### One Time Secret https://docs.onetimesecret.com/_astro/onetime-logo-v3-xl.CelDEh9e.svg

- **Image:** ghcr.io/onetimesecret/onetimesecret:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host One Time Secret on Railway

**One Time Secret** is an open-source service for securely sharing sensitive
information via single-use, expiring links. Secrets are encrypted, stored
temporarily, and destroyed automatically after being viewed once or after a
configured expiration period.

## About Hosting One Time Secret

Hosting One Time Secret consists of running a single web application backed by
Redis for ephemeral secret storage. The service handles encryption, expiration,
and one-time retrieval automatically. When deployed on Railway, the application
runs as a single service with a managed Redis instance, and all configuration is
performed through environment variables, keeping setup simple and operational
overhead low.

## Common Use Cases

- Securely sharing passwords, API keys, or access tokens  
- Sending sensitive onboarding credentials to new team members  
- Exchanging secrets between services without persisting them in logs or email  

## Dependencies for One Time Secret Hosting

- One Time Secret application  
- Redis datastore

### Deployment Dependencies

- Official One Time Secret repository  
- Redis service provided during Railway template setup

### Implementation Details 

Redis is used exclusively for temporary secret storage and expiration handling.
Connection details are supplied via environment variables, and no configuration
files need to be modified.

## Why Deploy One Time Secret on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will
host your infrastructure so you don't have to deal with configuration, while
allowing you to vertically and horizontally scale it.

By deploying One Time Secret on Railway, you are one step closer to supporting a
complete full-stack application with minimal burden. Host your servers,
databases, AI agents, and more on Railway.


## Similar templates

- [Keycloak](https://railway.com/deploy/mSwigX) — Keycloak template with keywind theme + apple and discord providers
- [lua-protector](https://railway.com/deploy/lua-protector) — Test deployed my project first
- [bknd](https://railway.com/deploy/p4nTYL) — Feature-rich yet lightweight backend

Open this page in a browser: https://railway.com/deploy/one-time-secret-1
