WordPress · Drupal · Site Maintenance · Technical SEO · Editorial Policy

How to Lock Down Prismic Admin Accounts

Prismic is a hosted headless CMS. Prismic runs the content backend, and your team controls who can sign in to the repository, which API access tokens exist, which webhooks fire, and the front-end app you deploy yourself. That split decides where your security work goes. You cannot patch Prismic’s servers, but you can control every account and token that touches your repository.

An administrator account matters because it can change who else has access. This guide walks through the controls you own, in the order that usually pays off most.

Start with the sign-in itself

Every person who edits content should have their own login. Shared accounts such as a single “admin” login used by a whole agency make it impossible to tell who changed what. They also force a password change for everyone when one person leaves.

For each administrator account:

  • Use a long, unique password that is not reused anywhere else.
  • Store it in a password manager rather than a spreadsheet, a chat message or a browser note.
  • Use a work email address the organisation controls, not a personal inbox that outlives the job.
  • Secure the mailbox behind that address as well. Whoever controls the inbox can usually reset the password.

A password manager also helps with phishing. It fills credentials only on the domain it saved them for, so a look-alike login page gets nothing.

Check which sign-in protections Prismic offers

Available sign-in methods, two-step verification and single sign-on can vary by plan and change over time. Do not assume a feature exists because another SaaS tool has it. Open your Prismic account and repository settings, and read the current Prismic documentation to see what your plan includes.

Then apply the strongest option you find:

  1. If Prismic lets you sign in through an identity provider you already manage, such as a Google or GitHub account, that provider’s own two-step verification protects the Prismic login too. Turn it on there.
  2. If your plan offers single sign-on, consider it for larger teams. Offboarding someone from your identity provider then also removes their access to the CMS.
  3. If you use email and password sign-in and a second factor is available, enable it for every administrator first, then for everyone else.
  4. Prefer an authenticator app or a hardware security key over text messages when you get a choice.

If you find that a protection is missing on your plan, write down the gap. It then becomes a known risk that you cover with stricter roles and faster user reviews.

Apply least privilege to roles

Prismic repositories let you assign each user a role. Check the current role list in your repository’s user settings, because the exact permissions of each role are defined by Prismic. In general, the ladder runs from people who can only write content, through people who can publish it, up to administrators who manage settings and users.

Use that ladder deliberately:

  • Give writers the writer-level role. They draft; someone else publishes.
  • Give publishing rights only to people who are accountable for what goes live.
  • Keep administrator rights for a very small group. Two named people is often enough, so there is always a backup.
  • Do not make a developer an administrator just because they might need it someday. Promote them for the task and demote them afterwards.

Ask one question for every account: what is the lowest role that lets this person do their job today? If the answer differs from their current role, change it.

Review and remove old users

Dormant accounts are the easiest way in, because nobody is watching them. Freelancers, agencies, interns and former employees often stay in the repository long after the work ends.

Run a user review on a schedule, for example every quarter and whenever a project ends:

  1. Open the repository’s user list.
  2. Match every entry to a current person and a current reason for access.
  3. Remove anyone you cannot match, and anyone whose project is over.
  4. Lower any role that is higher than the person’s present work needs.
  5. Record the date and who did the review.

Tie this to offboarding. When someone leaves, removing their repository access should be a line on the same checklist as returning their laptop.

Treat API tokens and webhooks as credentials

Accounts are not the only way into your content. Prismic uses access tokens for its APIs, and your front-end app uses them at build or run time. A token for a private repository can read content you have not published, and a token with write access can change it.

Good token hygiene looks like this:

  • Keep tokens in your hosting platform’s environment variables or secret store, never in the code repository.
  • Do not expose a token in browser-side code unless you have confirmed that it is meant to be public. A token that lets visitors read private content is not public.
  • Create separate tokens for separate uses, such as production, staging and a one-off migration, so you can revoke one without breaking the others.
  • Delete tokens for integrations you no longer run.
  • Use the secret option on webhooks if Prismic offers one for your setup, and check it in the receiving endpoint so random requests are ignored.

Also look at the front-end app. Because you deploy it yourself, its npm dependencies and build pipeline are part of your attack surface. Limit who can change deployment settings, and keep dependencies updated. The OWASP Top 10 is a useful checklist of the common web application risks to review in that code.

Keep sessions short-lived and devices clean

A stolen session can be as damaging as a stolen password. Sign out on shared or borrowed computers, and do not tick “remember me” there. Keep browsers and operating systems updated on any machine used for administration. Where possible, have administrators use a separate browser profile with few extensions, since a malicious extension can read what you type and see.

If you suspect a session was exposed, changing the password and signing out of other sessions, where Prismic’s account settings allow it, is a sensible first step.

What to do if credentials leak

Decide your response before you need it. A leak might be a password pasted into a chat, a token committed to a public code repository, or a laptop that went missing. Work through the list in this order:

  1. Revoke first. Delete or regenerate any exposed access token, then update the environment variable in your hosting platform and redeploy.
  2. Reset the account. Change the password for the affected user, and change it anywhere else it was reused.
  3. Check the users. Look for accounts you did not add, and for roles that were raised without your knowledge.
  4. Check the content. Review recent changes and published documents for edits nobody can explain, and compare against your latest known-good state.
  5. Check webhooks and integrations. Confirm that the endpoints and connected services are all ones you recognise.
  6. Fix the cause. If a token was committed to code, remove it from the repository history as well as the current files, because the old commit still contains it.

Keep this list where administrators can find it quickly, and name one person who decides when to act.

Frequently asked questions

Should every developer be a Prismic administrator?

No. Most developers need to work with content models, tokens and previews, not to manage who has access. Keep the administrator role small and give each person the lowest role that covers their current work.

Is it enough to have a strong password?

A strong, unique password stored in a password manager is the baseline, not the finish line. Add a second factor or single sign-on if your plan offers it, and still review roles and tokens, since a strong password does nothing about an old user or an exposed token.

How often should I review users and tokens?

Review them on a fixed schedule, such as every quarter, and also whenever a person leaves or a project ends. Short, regular reviews catch stale access before it becomes a problem.

We use essential cookies to make this site work and remember your preferences. We do not use advertising or analytics cookies. Privacy Policy. Cookie Policy.