Why Jitsi Docker internal passwords need planning before the first start
The internal XMPP account passwords in a docker-jitsi-meet deployment are the credentials that the Jitsi components use to authenticate to each other and that internal user accounts use when they sign in. They must be generated, not typed by hand, because a human-chosen value is easier to guess, is often reused across systems, and tends to be entered inconsistently across the .env file and the containers that read it. Before you run the first start on a production host, decide where these values will live and who is allowed to read them.
The Jitsi Docker guide lists internal XMPP accounts as one of several authentication options, alongside JWT tokens, LDAP, Matrix user verification and a hybrid Matrix plus JWT mode, and all of them are configured through the .env file. Choosing internal accounts does not remove the need for planning. Each password in that file is a secret that the containers need at startup, so the choice of authentication method, the generation process and the storage location should be settled together. Confirm which option fits your access model before you generate anything, because switching methods later changes which values you need.
This page covers three things: how to generate the passwords with gen-passwords.sh, the rules for never reusing them across accounts, components or environments, and how to store the .env file so that only the operators who need it can read it. Ask your team to confirm the current deployment steps against the Jitsi Docker guide for the release you are installing, since the file layout and scripts can change between releases.
How to generate Jitsi Docker passwords with gen-passwords.sh
This sequence produces a .env file in which each internal XMPP account password holds a newly generated value instead of template text. It also confirms the file is readable only by its owner and that the stack starts with those values. Run it once on the host that will operate the deployment, before the first start.
Copy the example environment file
The operator works in the docker-jitsi-meet checkout on the host that will run the stack and copies the template named
env.exampleto.env. The template lists every setting in the Docker guide, including the password fields for the internal XMPP accounts, and it should contain placeholders only. You know this step is done when.envsits besideenv.exampleand the template itself is unchanged.Run gen-passwords.sh from the project directory
From the same docker-jitsi-meet directory, the operator runs
gen-passwords.sh. The script writes generated values into.envfor the password variables the internal accounts need, so each account receives its own secret and no value is reused across accounts. Run it from the directory that holds.env, because the script edits that file. You know this step is done when the script exits without an error message and the shell returns to its prompt.Confirm generated values fill the password fields
The operator opens
.envin a text editor and checks each internal XMPP password variable. Each one should now hold a long, irregular string instead of the template wording. Read the script's comments in the repository if a variable is unclear, and do not copy any value into a ticket, chat or shared document. You know this step is done when every password field in the file has a generated value.Check that no placeholder values remain
The operator runs
diff env.example .envfrom the project directory. The output should list every password line as changed, and no password line should match its entry in the template. Any password line that appears unchanged, or that still shows template text, must be fixed by running the script again or by editing the value before the stack is started. You know this step is done when every password line appears in the diff output with a new value.Restrict permissions on the environment file
The operator sets the file to owner-only access with
chmod 600 .envand then lists it withls -l .env. The owner should be the account that runs Docker Compose, and no group or other account should have read access. The operator also confirms.envis listed in the repository's ignore rules so it is never committed to version control. You know this step is done when the listing shows read and write for the owner only.Start the stack and verify it runs
The operator starts the deployment from the project directory with
docker compose up -dand then runsdocker compose psto list the containers. Since stable-11146, the containers run rootless with read-only filesystems, so the operator should check the container logs for permission errors on mounted directories and for failed connections between the internal services. You know this step is done when every container is running and the logs show no authentication errors between the internal components.
Why each internal password must be unique
The Docker stack creates several internal XMPP accounts, and each one authenticates a different component to Prosody. The cards below cover what goes wrong when those values are shared, copied or carried over from earlier deployments, and the checks that prevent it.
Shared passwords widen the blast radius
If JICOFO, the videobridge and other internal accounts share one value, a single leaked secret lets an attacker authenticate as any of them. The internal accounts sit inside the XMPP control plane, so compromise of one component can affect conference setup for every meeting. Check that the generated .env file holds a distinct value for each internal password variable before the stack starts.
Reused values from other systems
Passwords copied from a directory service, a database or another application often have weaker entropy or were already exposed in that system's logs and backups. Any system that holds the same value becomes part of the attack path for Jitsi. Generate new values with gen-passwords.sh rather than pasting in credentials from elsewhere, and record which team owns each value.
Leftovers from test deployments
Test stacks are often cloned into production with their .env files intact, so the internal passwords are already known to everyone who had access to the test server, its images or its backups. Treat every production secret as new, and confirm that no value in the production .env appears in any earlier test configuration or ticket.
Rotation becomes harder with shared values
When one password is used by several components, rotating it means restarting every service that depends on it, and a missed component produces authentication failures that look like outages. Distinct values let you rotate one account at a time, which keeps the change small and easier to verify. Plan the rotation order and the restart sequence before the first change.
Copies left in logs and tickets
Shared values tend to be pasted into chat threads, change tickets, shell history and container inspection output during troubleshooting. The more places a value is written, the more places must be cleaned up when it changes. Keep the values only in the protected .env file, and check that deployment logs and tickets do not contain them.
Which Jitsi Docker authentication setting fits your access model
This table compares the authentication modes the Jitsi Docker guide exposes through the .env file, showing when each fits, which secrets it needs and what the team must still plan. Read it to match your access model first, then generate only the passwords that mode requires. The main takeaway is that the deprecated secure domain method should not be chosen for a new installation.
| Authentication mode | When it fits | Secrets it needs | Still to plan |
|---|---|---|---|
| Internal XMPP accounts | Small, closed groups where a central team creates and removes each user | Generated XMPP component and user passwords from gen-passwords.sh, kept in the .env file | Account lifecycle, password rotation, moderator assignment and a process for offboarding users |
| JWT tokens | Meetings started from your own application or portal that should admit only verified users | A shared JWT secret used to sign tokens, plus the app ID and audience settings | Secret storage and rotation, token expiry, a separate anonymous domain for guests and the signing service in your app |
| LDAP | Organizations that already manage staff identities in a directory | A bind account and its password for the directory, stored in the .env file | Directory schema mapping, TLS to the directory, group filters and who maintains the bind account |
| Matrix user verification | Teams that already run a Matrix homeserver as their chat or identity layer | Homeserver connection details; confirm which credentials the Docker guide requires for your version | Homeserver availability, federation policy and how Matrix accounts map to meeting roles |
| Hybrid Matrix plus JWT | Matrix-based organizations that also want application-issued meeting links | Matrix settings and the JWT secret together, so both secret sets must be generated and stored | Two trust sources to keep aligned, failure behavior when one side is down and combined rotation steps |
| Secure domain (deprecated) | Not recommended for new installations according to the Jitsi handbook | Room creation credentials under the secure domain method | Plan a migration to JWT token authentication if an older deployment already uses it |
How to store the .env file so the secrets stay secret
The .env file produced by the password generation step holds every internal XMPP secret in plain text, so anyone who can read it can impersonate the Prosody, Jicofo and videobridge components. Treat it as a credential file from the moment it is created. It must not be committed to Git, copied to a shared drive, pasted into a ticket or chat, or baked into a container image. Check your repository ignore rules and your image build context before the first deployment, because a .env file that slips into a layer is hard to remove from registry history.
On the Docker host, limit the file to the account that runs the Compose stack. Set the owner to that account or to root, and set the mode so that group and other users have no read access, then confirm the result with ls -l on the file and on the directory that contains it. Keep the same restriction on any copy an operator makes for review. Also confirm which accounts hold sudo or Docker group membership, because those accounts can read container environment variables through docker inspect regardless of the file mode. Ask your platform team to document who those accounts are and to review them on the same schedule as other privileged access.
Backups of the deployment directory will contain the .env file, so they need the same protection as the live copy. Encrypt backup archives at rest with keys held outside the backup itself, restrict who can restore them, and test a restore on a separate host. If your organization already runs a managed secrets store, such as a vault or cloud secrets service, consider generating the values there and rendering .env at deploy time from that store, so the file exists only on the host and is never edited by hand. Rotation then becomes a store operation rather than a file edit. Rootless containers and read-only filesystems in recent Jitsi releases limit what a compromised container can change, but they do not protect a readable file on the host, so these controls remain your responsibility.
Security and operational controls around generated passwords
The generated values are only as safe as the process around them. The controls below cover who can read the .env file, how values move between environments, and what happens when people leave or secrets may have leaked. Each one maps to a step you repeat on every Jitsi Docker deployment.
Restrict who can read the .env file
Treat the .env file as the single place where all internal XMPP passwords live. Limit read access to the operators who deploy the stack, set the file owner and mode so other local users cannot read it, and keep it out of shared drives and chat. Record in your runbook which roles hold access, so the list can be reviewed during access reviews and after staff changes.
Rotate after staff changes
When someone with access to the .env file changes role or leaves, regenerate the internal passwords with gen-passwords.sh, update the file, and restart the containers so every component picks up the new values. Rotation also needs a plan for active meetings, since a restart drops connections. Confirm in your own environment which services need a restart to reload the variables.
Respond to suspected exposure
If a copy of .env may have left the server, treat every internal password in it as compromised. Generate a full new set, replace the file, redeploy the stack, and review who had access during the exposure window. Document the steps before an incident happens, so the response does not depend on memory under pressure.
Keep secrets out of shell history and logs
Avoid pasting passwords as command arguments or echoing them in scripts, because shell history and terminal logs can keep them. Check that your deployment tooling, CI jobs and container logs do not print environment variables. Confirm how your shell is configured to save history on the deployment host and clear or exclude sensitive commands.
Separate test and production values
Generate a distinct .env file for each environment and never copy production values into a test stack. A test stack that shares production passwords gives anyone with test access a route into the production XMPP components. Keep each environment's file in its own directory with its own permissions, and label the files so they are not mixed up during upgrades.
Document ownership and backups
Record who owns the generated values, where the backup of the .env file is kept, and how it is encrypted. A backup you cannot restore makes a failed host expensive to rebuild, while an unprotected backup is another copy to leak. Store the backup in your approved secrets system where possible, and test a restore on a non-production host.
What teams ask before generating Jitsi Docker passwords
Can our own team generate and manage the Jitsi Docker passwords without a partner?
Yes, a team with Linux and container experience can do this, because the core work is running the generator script, storing the output and wiring it into the .env file. The effort that matters is less the generation itself and more the surrounding controls: who can read the file, how it is backed up, and how a rotation is carried out without breaking the stack. Teams without an operator who has run Docker Compose in production usually take longer to validate the result. A partner is most useful when the same team also needs authentication, TLS and network decisions made in the same change.
How much effort does the password setup take, and what drives it?
The generation step is short, but the effort grows with the number of environments and the number of people who need access to them. The main drivers are how many Jitsi stacks you run (test, staging and production each need their own set), whether you already have a secrets manager that the .env file can be sourced from, and how much existing access control must be reviewed. Ask any provider to break its quote into design, implementation, validation and handover so you can see which of these your environment actually requires.
What does the work need from our team?
Plan for a named owner for the container host, someone who can approve where the .env file will live, and a reviewer who understands your secrets handling policy. You will also need access to the host to run the script and confirm the containers start with the new values. Security or compliance staff should be involved if your policy requires documented evidence of how credentials are created, stored and reviewed. Confirm these roles before the work starts so the change does not stall waiting for approvals.
How does rotating these passwords affect a running stack?
Changing internal XMPP account passwords on a running stack requires restarting the affected containers so they read the new values, which means a short interruption for active meetings. Plan rotation for a maintenance window, change the values in the .env file, and confirm that the web, Prosody, Jicofo and videobridge containers all authenticate afterward. Do not rotate one account in isolation without checking the others, because the services depend on each other. Keep the previous file until a test meeting succeeds, then remove it from every location where it was copied.
Why should we never reuse these passwords across environments or services?
Reuse means one leaked value opens more than one system, and it makes it impossible to tell which environment a credential came from during an investigation. Generate a separate value for each internal account in each stack, and do not copy a .env file from a test host to production. Treat the generated values as secrets that belong only to the Jitsi deployment, and keep them out of shared documents, chat channels and tickets.
Which Jitsi release and authentication mode should we confirm before generating passwords?
Confirm the Docker release tag you will deploy, because the container layout and file paths changed with the rootless release, and the .env keys you need depend on the authentication mode. The Jitsi Docker guide lists internal XMPP accounts, JWT tokens, LDAP, Matrix verification and a hybrid Matrix plus JWT mode, and the internal account passwords only apply when internal accounts are in use. If you plan JWT for production, the handbook recommends it over the older secure domain method, so confirm your mode first. Check the current release notes on the jitsi-meet GitHub repository before you start.
Does the generated password file need to meet a compliance requirement?
The script produces strong random values, but whether your evidence satisfies a framework depends on how the file is created, protected, reviewed and rotated across your whole environment. Ask your auditor or compliance lead which controls they expect for credential storage and access logging, and whether they need a written procedure. DeployOpen prepares systems and evidence for compliance assessments, but independent auditors and certification bodies make the final determination.
What to confirm in your environment before going live
The generated passwords are only as good as the setup around them. Each item below is a point where the vendor documentation for your release or your own environment decides whether the stack behaves the way you expect, so confirm them before users depend on the deployment.
Exact internal account names
The internal XMPP accounts that gen-passwords.sh populates are defined by the Docker setup for the release you deploy, not by this guide. Check the variable names in your .env file and the account names the containers expect against the Jitsi Docker guide for your release. A renamed or missing variable can leave a component with an empty or default credential, so compare the generated file with the template line by line.
Rotation on a running stack
Changing a password in .env does not update Prosody or Jicofo by itself. Confirm with the vendor documentation whether a rotation requires recreating the containers, and whether the XMPP user records must be updated in Prosody at the same time. Plan the change in a maintenance window and test it on a non-production copy first, since a mismatch can break conference creation.
Extra secrets for your authentication mode
The authentication mode you choose may need more than the internal XMPP passwords. JWT, LDAP, Matrix verification and the hybrid modes each read their own settings from .env, and some need a shared secret or a bind password. Confirm which values your mode requires, generate them separately, and make sure none of them reuses an internal account password.
Integration with your secrets store
Decide whether the .env file stays on disk with restricted permissions or is injected from a secrets manager at deploy time. Confirm that your tooling can write the generated values without printing them to logs or shell history, and that the store can rotate them on the schedule you set. Document who can read the file and who can approve a change.
Backup handling of generated values
Backups of the host or the Docker volumes may capture .env in clear text. Confirm where the file is included in your backup jobs, who can restore it, and whether restored copies are encrypted. A backup that holds the passwords should be protected to the same standard as the live file.
Rootless and read-only container behavior
Since stable-11146 the containers run rootless with read-only filesystems. Confirm which directories must stay writable for your release and that the file permissions on the .env file and the mounted config directories still let the containers read the values they need. Test a restart after changing permissions so a credential problem does not surface during a live meeting.
How generated secrets reach the Jitsi Docker containers
The flow starts when the operator runs gen-passwords.sh in the Docker checkout, which writes random values into the .env file. Docker Compose reads that file on the host and passes the values as environment variables to the web, prosody, jicofo and jvb containers, so each service receives only the credentials it needs. The trust boundary is the host and the restricted .env file: anyone who can read that file can read every internal password. Check the file's owner and permissions, and confirm that no copy of it is committed or shared.
Generated values flow from the script through the restricted .env file into each container.
When and how to rotate internal Jitsi Docker passwords
Rotate the internal XMPP account passwords when you have a specific reason to believe they are exposed or when your review cycle calls for it. The usual triggers are a staff change, where someone who had access to the host or the .env file leaves the team; a copy of the file found outside the host, such as in a ticket, a chat thread or a personal backup; or a planned review of credentials. Treat a copy found outside the host as an incident, not a housekeeping task, and record when the exposure was discovered so you can show the review later.
Work in this order. First, regenerate the values with gen-passwords.sh so every internal account gets a new, unique secret rather than a hand-edited one. Second, replace the matching entries in .env on the host and confirm the file keeps its restricted permissions. Third, restart the containers that read those values, which in a standard setup are the Prosody and Jicofo services, and then bring the rest of the stack back up. Confirm the restart behavior in your release, because the exact containers that need recreating can differ between versions, and check the official Docker guide before you start. Finally, verify that a test meeting can be created and joined from two separate browsers, and that a participant can join a room they did not create. Keep the old .env only until verification passes, then delete it securely.
How to confirm the password setup works before users join
This sequence confirms that the generated internal passwords let Jitsi's components connect to each other, that the .env file is locked down and backed up, and that a real meeting works before anyone outside the operations team is invited.
Confirm the .env file is complete
Before starting anything, the operator checks that the .env file exists in the deployment directory and that every internal password key the Docker setup expects has a value that was generated for this deployment, not a copied example value. The operator compares the key names against the example file shipped with the release so nothing is missing or left at a placeholder. The step is done when the operator can say, for each key, that a unique generated value is present and that no placeholder text remains.
Check file permissions and backup location
The operator confirms that the .env file is readable only by the account that runs the Docker Compose stack and by the administrators who must maintain it, and that it is not inside a web-served directory, a shared folder or a version control repository. They also confirm that an encrypted copy exists in the approved backup location and that restoring it has been tested or scheduled. The step is done when the permission check and backup location are recorded in the deployment runbook.
Start the stack and watch for clean startup
The operator brings up the stack with Docker Compose and watches the container status for each core service: web, prosody, jicofo and jvb. Any container that restarts repeatedly or exits points to a configuration or credential mismatch, so the operator reads the log lines for that container without copying secret values into tickets or chat. The step is done when all core containers report running and none is in a restart loop.
Confirm internal connections in the logs
The operator reviews logs from jicofo and jvb for messages showing that they authenticated to the XMPP server and joined the expected components. The operator looks for connection and authentication success messages, not for the passwords themselves, and should redact any output before sharing it. If a component reports an authentication failure, the operator corrects the matching key in the .env file and restarts only the affected container. The step is done when each component shows a successful internal connection.
Run a test meeting between two clients
Two team members join the same test room from separate browsers or devices, ideally on different networks, using the public address configured for the deployment. The operator confirms that both participants see and hear each other, that the room is created and joined without error, and that the connection uses HTTPS with a valid certificate. The step is done when the two-client call works end to end and the operator has noted any browser warnings.
Verify access control on the test room
If the deployment uses internal accounts or another authentication option, the operator tests that a meeting cannot be created or joined by an unauthenticated user, and that a valid account can create a room. This confirms the password settings are doing their job at the access layer, not only inside the containers. The step is done when the expected allowed and denied cases behave as designed and the results are recorded.
Record the sign-off and schedule password rotation
The operator records the verification results, the date, the people who performed each check and any open issues in the change record, and notes who holds access to the .env file. They also set a planned review for rotating the internal passwords, since a rotation changes the .env file and requires restarting the stack. The step is done when the sign-off is filed and the rotation owner is named before users are invited.
How DeployOpen plans and delivers Jitsi Docker deployments
DeployOpen treats the internal XMPP passwords in a Jitsi Docker deployment as part of the wider build, not a one-off setup step. We scope which accounts exist, generate and place secrets with the gen-passwords.sh workflow, and document how the .env file is stored, reviewed and rotated. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- Inventory every internal account the Docker
.envfile defines, and which services read each one. - Confirm the authentication mode in
.envbefore generating anything, since it changes which secrets are needed. - Agree in writing who receives the generated values, where the
.envfile lives and who may read it.
How we build
- Run gen-passwords.sh on the target host, so secrets are never generated on a laptop and copied across.
- Confirm each internal password is unique, long and not reused from any other Jitsi, admin or service account.
- Check file permissions on
.envand its backups, and confirm no secret appears in shell history or logs.
How we hand over
- Deliver a written record of the accounts, where secrets are held and who controls access to them.
- Document the procedure for regenerating a password and restarting the affected containers safely.
- Walk your operators through the checks, so your team can repeat them without DeployOpen present.
How we support
- Offer ongoing support and periodic review of secret handling as a retainer, if your team wants it.
- Retest password handling after upgrades or host changes, including the rootless container directory changes.
- Keep the handover documentation current as your authentication mode or deployment layout changes.

