Video coming soon…

🔐 Setup Infisical — Open-Source Secrets Manager

Deploy Infisical open-source secrets manager on Ubuntu — centrally store, sync, and inject API keys and environment variables with RBAC and audit logging.

⚠️ This script is provided for demo and testing purposes only. Not intended for production use.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along with the video.

Automated install script — one command sets everything up.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/infisical/infisical-ubuntu.sh
chmod +x infisical-ubuntu.sh
sudo bash infisical-ubuntu.sh

Tutorial Steps

1 Download the Script

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/infisical/infisical-ubuntu.sh

2 Make it Executable

chmod +x infisical-ubuntu.sh

3 Run the Installer

The script installs Docker if needed, then sets up the service automatically.

sudo bash infisical-ubuntu.sh

4 Access the Web UI

Open your browser and navigate to:

http://<your-server-ip>:8080

5 Install CLI and Inject Secrets

Install the Infisical CLI, log in to your self-hosted instance, then use it to inject secrets directly into your application at runtime.

# Install Infisical CLI
curl -1sLf 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' | bash
apt-get install -y infisical

# Login to your instance
infisical login --domain=http://<your-server-ip>:8080

# Run your app with secrets injected
infisical run --projectId=YOUR_ID --env=prod -- node server.js

Ports Used

PortPurpose
8080Infisical Web UI & API
27017MongoDB (internal)
6379Redis (internal)

Overview

Infisical is an open-source secrets management platform — a self-hosted alternative to HashiCorp Vault and Doppler. It gives development teams a central dashboard to store, version, and distribute secrets (API keys, database credentials, TLS certificates, environment variables) across all services, environments, and developers. SDKs for Python, Node.js, Go, Java, .NET, and Ruby pull secrets dynamically at runtime, eliminating hard-coded credentials in .env files and source code. The audit log records every secret read, write, and share with a full timestamp and identity trail — essential for compliance.

Why Use It

Scattered .env files across developers' laptops and CI secrets that no one knows who added are the two most common sources of credential leaks in small engineering teams. Infisical centralises all secrets in one encrypted store, enforces RBAC (who can read prod secrets vs. dev secrets), and integrates with CI/CD pipelines and Kubernetes so services pull secrets fresh on every deploy — no more copying credentials into Slack messages.

When You Need It

    Who Should Use It

      Real Use Cases

        Main Features

          How to Use After Installation

            Security Best Practices

              Ports and Firewall Notes

              Infisical's web UI and API run on port 8080 by default. Proxy it through Nginx Proxy Manager with a TLS certificate — the Infisical CLI and SDKs will call your domain over HTTPS. MongoDB (27017) and Redis (6379) are internal services and must not be exposed. If using Kubernetes secret injection, the Infisical Operator communicates with your Infisical server over HTTPS — ensure your server's certificate is valid.

              Backup and Maintenance

                Common Mistakes

                  Troubleshooting

                    Alternatives

                    HashiCorp Vault (very powerful, very complex — overkill for most teams), Doppler (cloud SaaS, excellent DX, no self-hosting), AWS Secrets Manager (cloud, pay-per-API-call), Vaultwarden (password manager for humans, not for service-to-service secret injection). Infisical is the best balance of simplicity and power for self-hosted secret management.

                    When Not to Use It

                    Skip Infisical if your project is a single-developer side project with 2–3 secrets — a well-managed .env file is simpler. Also skip it if you are deep in the AWS ecosystem where AWS Secrets Manager is already available, or if your organisation mandates HashiCorp Vault for compliance. Infisical shines for small-to-medium teams that want Doppler-quality developer experience without the SaaS price tag.

                    PrismaTechWork Professional Help

                    PrismaTechWork provides end-to-end infrastructure services — from initial deployment and security hardening to ongoing monitoring, automated backups, and dedicated support. Whether you need a single-server setup or a multi-site network, our team ensures your infrastructure is built right, secured properly, and maintained reliably.

                      Contact Us

                      Frequently Asked Questions

                      What is the difference between Infisical and Vaultwarden?

                      Vaultwarden is a password manager for humans — it stores login credentials, credit cards, and notes that people copy-paste. Infisical is a secrets manager for machines — it stores API keys, database URIs, and environment variables that services pull programmatically at runtime. They solve different problems. Many teams use both: Vaultwarden for team password sharing and Infisical for service credentials.

                      How do I inject secrets into a Docker container with Infisical?

                      Use the Infisical CLI as the container entrypoint: CMD ["infisical", "run", "--", "node", "server.js"]. The CLI fetches secrets for the specified environment and injects them as environment variables before launching your process. Alternatively, use the language SDK (InfisicalClient in Python or Node.js) to pull secrets programmatically inside your application startup code.

                      Is Infisical a HashiCorp Vault replacement?

                      For most small-to-medium teams, yes. Infisical covers the core Vault use cases: centralised secret storage, RBAC, audit logging, dynamic credentials, and Kubernetes integration — with a dramatically simpler setup. Vault's advanced features (PKI as a Service, transit encryption engine, LDAP auth) are not available in Infisical. If you need those, Vault remains the right choice.

                      Can I use Infisical in CI/CD pipelines?

                      Yes. Infisical has first-class CI/CD integrations. For GitHub Actions, use the official infisical/secrets-action. For GitLab CI and Woodpecker, use the Infisical CLI: infisical export --env=prod > .env then source .env before your build steps. Machine identities with short-lived tokens are the recommended approach for CI — never use user account tokens in pipelines.

                      What happens if I lose the ENCRYPTION_KEY?

                      All secrets stored in Infisical are encrypted at rest using ENCRYPTION_KEY. If you lose this key, no stored secrets can be recovered — not even by Infisical support, since there is no server-side master key. Store ENCRYPTION_KEY in a separate secure location (a password manager, a hardware token, or a printed copy in a safe). This is the single most critical piece of infrastructure to protect.

                      Does Infisical support secret rotation?

                      Infisical supports manual secret rotation (update a value and all connected services pull the new value on next restart) and automatic rotation for supported integrations in the cloud edition. For self-hosted, implement rotation by updating the secret in the dashboard and using the SDK's dynamic fetch pattern so services pick up the new value without full redeployment.

                      Can Infisical inject secrets into Kubernetes pods?

                      Yes. The Infisical Kubernetes Operator watches your cluster for InfisicalSecret custom resources and syncs secrets into Kubernetes native Secret objects. Pods reference these as standard envFrom or volume mounts — no application code changes. The operator re-syncs on a configurable interval so secret rotations propagate automatically to running pods.

                      Is Infisical open-source and free to self-host?

                      Yes. Infisical is open-source under the MIT licence and completely free to self-host with all core features. The cloud-hosted Infisical.com has a generous free tier and paid plans for advanced features like SAML SSO, dynamic secrets, and priority support. Self-hosting gives you unlimited secrets, unlimited team members, and full data sovereignty at the cost of managing your own server.