Protecting secrets in Tutor configuration

Tutor writes generated passwords and keys into config.yml and the project root, so a self-hosted Open edX site needs deliberate handling of who can read them, where copies live and how they change.

On this page

Why Tutor secrets in config.yml need a deliberate protection plan

Once a team has run tutor config save, the most important thing to decide is how the generated credentials will be protected, because the project root now holds the database passwords, the Django secret key and other signing and service keys in plain text. Protect those generated values with restrictive file permissions, controlled backups, a secret manager on Kubernetes and a tested rotation procedure. Treat this as Tutor secrets management work that starts before the platform goes live, not as cleanup after the first incident.

Several values in a Tutor project are secrets. These include the MySQL and MongoDB passwords, the Django secret key, JWT and service signing keys, and any credentials that plugins add for email, storage, LTI or identity providers. The same values do not stay in one place. They appear in config.yml, in the env directory where Tutor renders service configuration, and in the manifests generated for Kubernetes. A file permission fix on config.yml alone leaves copies elsewhere, so the reader should inventory every location the rendered output writes to and confirm which of them are excluded from version control and backups.

This work is needed at three points: before handover from the build team to operations, before an information security review of the platform, and before the platform moves to Kubernetes. Each point is a moment when more people or systems gain access to the project root. Ask the team that ran the initial setup which plugins were enabled, which credentials they introduced and who holds a copy of the project directory today. The answers determine how much of the protection plan in the sections below applies to your environment.

Where Tutor secrets can live and when each option fits

This table compares five places Tutor secrets can live, from config.yml on a single host to a managed cloud key service. Read each row for the fit, the ongoing work it creates and the main risk it carries. The takeaway is that the right option depends on whether you run one Tutor host or a Kubernetes cluster, and how many people can reach the server.

OptionBest fit and operational burdenMain risk and what to confirm
config.yml with tight file permissionsSingle-host Tutor installs with a small operator group. Low burden: restrict the project root to the service account and operators, and back up the file with the same care as the database.Anyone who copies the file, a backup or a shell on the host gets every secret. Confirm which keys Tutor writes to config.yml and which files under the project root hold generated values.
config.yml kept out of version control with an encrypted storeTeams that share the repository but must not share values. Moderate burden: someone owns the encryption keys, decryption at deploy time and rotation of the encryption key itself.Plaintext copies left in working directories, CI logs or shell history. Confirm the tool you choose handles the generated keys Tutor creates and that your deploy step never prints them.
Kubernetes Secret created outside the Tutor chartClusters where the team applies secrets through a controlled pipeline and wants values out of Git. Moderate burden: you maintain the Secret objects, names and references that Tutor reads.Base64 is encoding, not encryption, and anyone with read access to Secrets in the namespace can see values. Confirm against the Tutor documentation for your version how Kubernetes deployments reference secrets.
External secret manager synced into the clusterMulti-team platforms that need central audit, rotation workflows and access policies. Higher burden: you run the sync operator, its permissions, and a path for recovering when the external store is unavailable.A misconfigured sync role can expose many secrets at once. Confirm the sync integration with your Kubernetes version and the Tutor release you run, since Tutor's support for this pattern is not described here.
Managed cloud key serviceOrganizations already standardized on one cloud provider with staff trained in its access model. Burden shifts to IAM policy, key rotation schedules and cost tracking, which recur.Lock-in and dependence on cloud IAM. Secrets stored in the service still need to reach Tutor at runtime, so confirm how values get into config.yml or the cluster and who can read them there.

How to lock down the Tutor project root and config.yml

This sequence turns the generated passwords and keys in a Tutor project root into a set of files that only the operator account can read, with each step confirmed by a check. It also leaves a repeatable record that the lockdown was done and still holds.

  1. Inventory every file holding generated values

    The operator lists everything in the Tutor project root that carries generated passwords, keys or tokens, starting with config.yml and the environment files Tutor writes beside it. Confirm the exact file list against the Tutor version in use, because generated file names and locations can change between releases. Save the inventory as a dated record in your change log. Done means every file that holds a secret is named, and no file is left to be found later by memory.

  2. Restrict ownership and mode for the operator

    Set the owner of the project root and each secret-bearing file to the dedicated operator account, and remove group and world read access so that only that account can read or write them. Use chmod and chown on the directory and each file in the inventory, and avoid running Tutor as root for day-to-day work so the restriction holds. Check the result with ls -l on each file, confirming the owner is the operator and no group or other permission bits are set. Done means every inventoried file shows owner-only permissions in the listing.

  3. Keep config.yml out of shared repositories

    Add config.yml and any other secret-bearing files to .gitignore in the project's version control, and confirm they were never committed in earlier history. If a file was committed, treat its secrets as exposed and plan rotation before continuing. Search the repository history with a secret-scanning tool your team already uses, and record the scan result. Done means the files are ignored going forward, the history scan is clean or its findings are queued for rotation, and no secret appears in a shared branch.

  4. Keep secrets out of CI logs and job output

    Review every continuous integration job, shell script and deployment pipeline that runs Tutor commands, and confirm none prints the contents of config.yml or echoes generated values to build logs. Mask or store any required value in the pipeline's secret store instead of in a plain variable. Run a test job and search its output for known secret patterns. Done means a test run produces logs without any generated value, and the pipeline configuration is recorded for review.

  5. Confirm rendered output is not published

    Tutor renders configuration into build and runtime files, and these can contain the same values as config.yml. Identify the rendered output directories for your Tutor version, confirm they sit inside the restricted project root, and confirm no web server, object storage bucket or artifact registry serves or copies them. Check the published locations with a request from outside the operator network, which should be refused. Done means rendered output is private, and the external check returns no secret content.

  6. Verify a non-operator account cannot read the files

    Create or use a second local account with no membership in the operator's group, then attempt to read each inventoried file, for example with cat run as that account. Each attempt should fail with a permission error. Also repeat the attempt through any shared folder, backup mount or sync client that could expose the directory. Record the account name, the date and each result. Done means every read attempt by the non-operator account is denied, and the record is kept with the inventory.

How generated secrets move from config.yml to the running pods

The flow starts when Tutor generates values into config.yml on the operator workstation and the project root, then renders them into Kubernetes manifests. The key hand-off is where those rendered values become a Kubernetes Secret or a secret manager entry that the LMS and CMS pods read at runtime. Check at each boundary that the plaintext copy stays out of the repository, that only the cluster and secret store hold the live values, and that the backup and rotation steps reach every copy.

Where generated secrets are written, copied and read by running pods.

Backup, access and logging risks for Tutor secrets

Tutor's generated values sit in a few places that are easy to overlook: backups of the project root, the people and service accounts that can read the cluster, and the logs and shell history that record commands. Each card below is a check to run in your own environment before you call the secrets handling finished.

Encrypt and restrict project root backups

Backups of the Tutor project root contain config.yml and the generated secret values, so they carry the same sensitivity as the live files. Confirm that every backup location, including snapshots, object storage buckets and developer laptops, is encrypted at rest and readable only by the operators who run restores. Check that backup retention is written down and that restored copies are re-permissioned rather than inheriting broad access.

Map who can read cluster secrets

On Kubernetes, anyone who can read Secret objects in the Open edX namespace can recover database passwords, the Django secret key and other credentials, whether or not they have a login to the platform. List the users, groups and service accounts holding get, list or watch rights on Secrets, including those granted through cluster-admin roles and CI pipelines. Remove standing access that no current job needs.

Keep values out of logs and history

Secret values can leak when they are typed on the command line, echoed by a shell script, printed by a debug flag or included in CI job output. Check your shell history settings on administration hosts, the output of Tutor commands run with verbose options, and whether CI masks variables that hold generated values. Confirm that rendered manifests and configuration dumps are not stored in ticketing systems or chat channels.

Enable audit trails for secret reads

Kubernetes API audit logging can record who read or changed a Secret, but only if an audit policy covers Secret resources and the logs are shipped off the node. Confirm that your audit policy captures reads of Secrets in the Open edX namespace, that the logs are retained outside the cluster, and that someone reviews unexpected access. Ask your secret manager vendor which access events it logs and how long it keeps them.

Control access to the secret manager itself

Once secrets move to an external store, the store's own credentials become the most valuable target. Verify that the identity Kubernetes uses to reach the store is scoped to the Open edX secret paths, that human administrators use individual accounts with multi-factor authentication, and that break-glass access is recorded and reviewed. Confirm that the store's root or unseal material is held by separate people.

How to rotate Open edX secrets without an outage

Rotate Open edX secrets in a fixed order: plan the change window, generate the new values in your secret manager, update the consuming configuration, redeploy, verify, and only then retire the old values. Start by listing every value that will change and who owns it. Tutor writes generated passwords and keys into config.yml and the project root, and some of them are read by several services at once, so a value changed in one place can break logins, outbound mail or background tasks elsewhere. Keep the old value available until every consumer has been redeployed and checked, so you have a path back if something was missed.

Treat the Django secret key and the database credentials as the two high-risk items. Changing the Django secret key invalidates signed data, which in practice can sign out active learners and staff, so schedule it for a low-traffic window and tell support teams in advance. Database credential changes are not a platform-only task: the database team must create the new account or password, confirm grants on the LMS and Studio schemas, and agree when the old credential is removed. Mail, OAuth client secrets and the Redis or Memcached settings each need their own check after redeploy, because a failure there often appears only when a learner resets a password or a background job runs.

Before the window, confirm the rotation behavior of each value for your Tutor release in the Tutor documentation, since some values may need a full regeneration and others only a restart. After the redeploy, verify a staff login, a learner login, a password reset email, a certificate or scheduled task, and an LTI or SSO sign-in if you use one. Retire old values only after these checks pass for a full working period, and record the date, owner and checks in your change log so the next rotation starts from a known state.

Limits to confirm before you change secret handling

Moving secrets out of Tutor's config.yml touches several layers at once: the Tutor release, the plugins that write values, the deployment path and the secret manager. Each card below names one limit to confirm in your own environment before you change how secrets are generated, stored or rotated.

Tutor version and generated values

Confirm which Tutor version your site runs and which keys it writes into config.yml and the project root during tutor config save. Naming of generated values can change between releases, so a script that edits a key in one version may silently miss it in the next. Record the version you tested against and repeat the check before every upgrade.

Tutor docs

Plugin-written secrets

Ask each installed plugin where it stores its own credentials. Some plugins write passwords or API tokens into config.yml, others read them from environment variables or expect you to supply them. A secret that lives outside the values you migrate is easy to miss during rotation, so list every plugin and its secret keys before you start.

Supported Kubernetes deployment path

Confirm that the Kubernetes deployment path Tutor offers matches your cluster design, including how it renders manifests and where it expects secrets to land. If you plan to inject values from an external store, check whether your chosen path can consume them without patching generated manifests. Unsupported local edits can be overwritten on the next render.

Secret manager integration with your cluster

Check whether your secret manager has a supported way to sync secrets into your Kubernetes cluster, such as an operator or a CSI driver, and whether your cluster's identity model allows it. Confirm who owns the sync configuration and how a failed sync is detected. A mismatch here can leave the platform running on stale credentials.

Rotation dependencies across services

Map which services read each secret before rotating anything. Database, cache, object storage and SMTP credentials are often shared between the LMS, Studio, Celery workers and plugins. Ask your team to confirm the restart order and the window in which old and new values must both work. Rotating one value without this map is a common cause of partial outages.

Ownership and backup of the project root

Confirm who is allowed to read and change the Tutor project root, and whether your backup tool copies it to places with weaker access controls. Ask your security team to approve the permission model and the backup destinations in writing. Backups that hold secrets need the same protection as the live files.

Questions teams ask about Tutor secret handling

How much effort does securing Tutor's config.yml take?

The effort depends mostly on how many environments you run, how you deploy, and whether secrets already live anywhere outside the project root. A single server with one Tutor project and a locked-down file is a small job. Work grows when you have staging and production, several Kubernetes clusters, plugin-generated credentials, and backup copies that also hold the file. The main effort drivers are: inventorying every generated password and key, tightening file permissions on the project root, deciding where backups are encrypted and who can restore them, and moving values into a secret manager if you run on Kubernetes. Ask any partner to break the quote into those workstreams so you can see what each one covers.

Can our internal team secure Tutor secrets without outside help?

Yes, a capable platform team can do this, provided they know where Tutor writes its generated values and which of those values are used by the LMS, Studio, MySQL, MongoDB and any plugins. The areas that most often catch internal teams are the secret copies left in backups, shell history, CI logs and container environment variables, and rotating a value without updating every consumer. Consider whether your team has time to test each rotation in a non-production environment and to document the steps for the next person. If the answer is no for any of these, an outside partner can handle that part under a written scope while your team keeps ownership.

What do we need to provide for this work?

You need to provide access and people, not just a request. Typically that means read and write access to the Kubernetes namespace or the Tutor host, access to the secret manager if one is in use, and a named owner for each backup location that holds the project root. You also need someone who can approve a change window, because moving secrets and rotating keys can restart services and interrupt logins. Expect to name a person who can confirm which plugins are installed and who owns external services that use shared credentials, such as SMTP or object storage. Confirm these items with the partner before work starts so the schedule is not blocked by access requests.

How long does rotating Tutor secrets take, and what affects it?

The duration depends on how many secrets you rotate, how many systems depend on each one, and how much testing you require before you cut over. Rotating a single database password is a different job from rotating the platform secret key, because the latter can invalidate sessions and signed values across the platform. Ask for the rotation plan to list each secret, its consumers, the order of changes, the expected restart points and a rollback step. Factors that lengthen the work include external services that need manual updates, multi-node deployments that must restart in sequence, and a change window that is short or infrequent. No fixed duration applies to every site, so request a estimate tied to your inventory.

Do we need a secret manager to protect Tutor secrets?

No, a secret manager is not strictly required, but it is the practical option on Kubernetes because it keeps values out of manifests, Git repositories and shared files. On a single Tutor host, correct file ownership, restricted permissions on the project root and encrypted backups can meet many internal policies. A secret manager adds audit trails, central rotation and access control, but it also adds an component to operate, back up and recover. Decide based on your existing standards, your audit expectations and whether other platforms in your estate already use a shared vault. Ask your security team which option they will accept before choosing.

What should we include when requesting a quote for this work?

A quote is only comparable when the scope is written down. Ask for a list of environments in scope, the deployment method (single host or Kubernetes), the number of secrets to inventory and rotate, the backup systems that hold the project root, and whether a secret manager is already in place. Also ask for the deliverables, such as a secret inventory, updated file permissions, a backup procedure, a rotation runbook and a test record. Clarify who performs each step, whether a change window is included, and what happens if the inventory uncovers secrets that need separate work. Fixed-scope agreements usually state these items explicitly before work starts.

What recurring work follows the initial secret hardening?

Secret handling is not a one-time task. Recurring work includes rotating credentials on a schedule your policy sets, reviewing who can read backups, updating the runbook after plugin or release changes, and checking that new Tutor plugins do not write secrets to places you have not reviewed. Upgrades to a new Open edX release can also add or change generated values, so the inventory needs a refresh at each upgrade. Ask whether the partner offers ongoing support or retainers, and what the agreement covers when a rotation fails in production. Your internal team should own the schedule even when an outside party runs the rotations.

How DeployOpen scopes Tutor secret hardening

DeployOpen plans and implements this work inside your own infrastructure, in your cloud accounts, data centers or air-gapped networks, so the generated values in your Tutor project never leave systems you control. The engagement starts from a written scope that lists each file to be handled (the Tutor config.yml, the generated env directory and any project-root files holding keys), each environment in play (development, staging and production), and each secret store that will hold values once they move out of plain files. Agreeing that list before work starts is what keeps the job from stopping halfway, because a secret left behind in a backup or a CI variable is the usual gap that surfaces later. Confirm with your own team which backup targets, Kubernetes clusters and operator accounts sit in that scope before you request a quote.

The deliverables are a hardened configuration, a documented rotation runbook and the operating notes your engineers need to repeat the process without us. The runbook should state, for every credential, who generates the replacement, the order in which Kubernetes secrets, Tutor configuration and running workloads are updated, how a rollback works, and how the old value is revoked. Ask for a dry run in a non-production environment before any production rotation is scheduled, and ask who signs off each step. DeployOpen prepares these controls and evidence for your compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make that determination, so ask your assessor early which of the artifacts they expect to sample.

How DeployOpen delivers Open edX secret hardening

DeployOpen treats the secrets in a Tutor project as part of the platform build, not an afterthought. We scope the work in writing, implement it inside your own infrastructure, and hand over the files, runbooks and rotation steps your team needs to keep it working.

How we scope

  • Inventory every generated password, key and token in config.yml, the project root and the environment files
  • Agree in writing which secrets move to a secret manager and which stay in local files
  • Confirm the Kubernetes or host layout, the backup targets and the team that will own rotation
  • Fixed-scope engagement with deliverables and timelines agreed before any work starts

How we build

  • Set file ownership and permissions on the Tutor project root so only the deploying account can read secrets
  • Move selected secrets into your chosen secret manager and wire them into the Kubernetes deployment
  • Exclude secret-bearing files from version control and confirm backups are encrypted and access-restricted
  • Test the rotation procedure on a non-production copy before anything changes on the live platform

How we hand over

  • Written record of where each secret lives, who can read it and how it reaches running pods
  • Step-by-step rotation runbook covering database, Django and SSO credentials, with rollback notes
  • Verification checklist your team can rerun after upgrades, redeployments or staff changes
  • Walkthrough with your platform and security staff so they can operate the setup without us

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Re-check secret handling after each Open edX release upgrade or Tutor version change
  • Retesting of the secret controls after material changes to the hosting or identity setup
  • Support scope and response expectations are confirmed in writing as part of the retainer

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.