Contentful is a hosted headless CMS, so the vendor runs the platform and you control who can get into it. Your administrator accounts can change content models, publish to every connected front end, create API keys and install apps. That makes them worth protecting more carefully than ordinary editor logins.
This guide covers the controls you own: how people sign in, what each person can do, and which tokens and integrations can act on your behalf.
Start with unique passwords and a password manager
Most account takeovers begin with a password that was reused somewhere else. A password manager removes the temptation to reuse one.
- Give every person a long, randomly generated password that is used for Contentful and nothing else.
- Store shared credentials, such as an agency login, in a team vault. Do not put them in chat, email or a spreadsheet.
- Use a named account for each person. Shared admin logins make it impossible to tell who changed what.
- Check that the email address on every admin account is one your organisation controls. A recovery email on an abandoned mailbox is a back door.
Secure the email accounts behind your admin logins too. Whoever controls the mailbox can usually reset the password.
Turn on two-factor authentication or single sign-on
A password alone should never be the only barrier on an admin account. Contentful supports two-factor authentication for user accounts, using an authenticator app. Switch it on for every user, and start with your administrators.
Some Contentful plans also offer single sign-on (SSO) through your organisation’s identity provider. Whether you can use SSO, and whether you can require it for everyone, depends on your plan and your Contentful agreement. Check the options in your organisation settings, or ask your Contentful contact.
If SSO is available to you, it brings several benefits:
- People sign in with the credentials and multi-factor rules you already enforce elsewhere.
- Removing someone from your identity provider cuts off their access at the same moment.
- You manage one set of sign-in rules instead of one per tool.
If SSO is not part of your plan, rely on unique passwords plus two-factor authentication, and review membership by hand on a schedule (see below).
Apply least privilege to roles
Contentful separates access at two levels. Organisation roles govern billing, membership and the organisation as a whole. Space roles govern what a person can do inside a specific space. The list of roles and how finely you can customise them depend on your plan.
Treat administrator access as an exception, not a default:
- Limit organisation owners and admins to the few people who genuinely manage billing, users and security.
- Give most people a space role that matches their work, such as editing or authoring content, rather than space administration.
- If your plan supports custom roles, create ones that restrict access by content type, locale or environment. For example, a translator needs to work on one locale, not edit the content model.
- Keep production and testing apart. Access to a sandbox environment does not have to mean access to the one that feeds your live site.
- Give contractors and agencies the narrowest role that lets them finish the job, and set a reminder to remove them afterwards.
Ask a simple question of each admin: what would break if this person had an editor role instead? If the answer is nothing, change the role.
Review and remove old users
Dormant accounts are quiet risks. Nobody notices them, and nobody’s habits would reveal a stranger using them.
Put a recurring review on the calendar and walk through your organisation’s user list:
- Remove anyone who has left the company or finished a contract.
- Look for people who are in a space they no longer work in.
- Look for admin roles that were granted for a one-off task and never taken back.
- Check for pending invitations that were never accepted, and cancel the ones you no longer need.
- Confirm that each remaining person is still on your offboarding checklist.
Add Contentful to your standard offboarding process so access is removed on the person’s last day, not whenever someone remembers.
Keep sessions and API tokens under control
Signing in is only one way into your content. Contentful also uses tokens, and they often outlive the people who created them.
Contentful’s developer documentation describes several kinds of credential, including Content Delivery API and Content Preview API tokens, which read content, and personal access tokens or OAuth-based access for the Content Management API, which can change it. The management credentials deserve the most care because they can write to your space.
- Create separate tokens for separate integrations, so you can revoke one without breaking the rest.
- Give each token a descriptive name that says what uses it and who owns it.
- Keep tokens out of front-end code, public repositories and shared documents. Use your hosting platform’s secret storage or environment variables instead.
- Never put a management token in browser-side code. Only read-only delivery tokens are designed to be used with public sites.
- Delete personal access tokens when the person who created them leaves, since they act with that person’s permissions.
- Audit your list of tokens regularly and revoke anything nobody can explain.
Webhooks and installed apps are part of the same picture. A webhook sends your content events to another URL, so confirm every endpoint is one you control. Apps from the Contentful Marketplace can run inside your editing interface, so install only what you need, check who publishes it, and uninstall apps you no longer use. The front end that renders your content is hosted and patched by you, so a compromise there can expose any secret it holds.
On shared computers, sign out when you finish. Do not leave an admin session open in a browser that other people use.
What to do if credentials leak
Move quickly and in a sensible order. Speed matters more than a perfect investigation.
- Change the password on the affected account from a trusted device, and change it anywhere else it was reused.
- Sign out other sessions and confirm two-factor authentication is still tied to a device you control. Re-enrol it if there is any doubt.
- Revoke and replace tokens. Delete the leaked token, create a new one, and update the systems that use it. If you cannot tell which tokens were exposed, rotate all of them.
- Check the space for changes. Look at recent edits, published entries, new webhooks, newly installed apps and any new users or role changes.
- Undo anything unexpected, then check the live site, since malicious content may already have been published.
- Tell Contentful support through the vendor’s help channels if you suspect an intrusion beyond a single account, and inform your own security contact.
- Find the cause so the same gap does not reopen, whether that was a reused password, a token in a repository or an unremoved contractor.
The vendor’s help centre and developer documentation list the current options for each step, since menus and plan features change.
Frequently asked questions
Does Contentful offer two-factor authentication?
Yes. Contentful supports two-factor authentication for user accounts. Enable it for every user, especially administrators. Some plans also add SSO, and whether you can enforce either option for everyone depends on your plan, so check your organisation settings.
How many people should be administrators?
As few as can run the organisation without delays. Most teams need only a small group to handle billing, users and security. Everyone else can work with narrower space roles that cover their actual tasks.
Is the Content Delivery API token a security risk if it is visible in my front end?
Delivery tokens are designed to read published content, so they can appear in a public front end. Management tokens are different. Never expose them in browser code, and keep preview tokens away from public pages, since they can read unpublished content. The Contentful developer documentation explains each token type, and the OWASP Top Ten covers the wider access-control and authentication risks. For account and plan settings, the Contentful help centre is the place to check.