Photo of author

Written by Alan Parker, certified Lead Auditor

Published 10 April 2025 · Last reviewed 25 November 2026

Annex A Controls Explained

ISO 27001 Control 8.31: Separation of Development, Test and Production Environments

Last Updated: 25 November 2026

Alan Parker, ISO 27001 Consultant & Internal Auditor,
Helping UK SMEs hit ISO 27001 in 90 days.
B.Sc (Hons) Information Systems · Certified ISO 27001 Lead Auditor · CISMP · ITIL Expert · 30+ years in IT governance and security.
Read full bio →

ISO 27001 Control 8.31: Separation of Development, Test and Production Environments
Development, testing and production environments shall be separated and secured.

https://www.iso.org/standard/27001

Key Takeaways

  • Control 8.31 requires development, test and production to be separated and secured.
  • Startups rarely have truly separate environments.
  • One client had test and production mixed and partners with admin over every customer.
  • Put production in its own cloud account and deploy through the pipeline.
  • Keep real personal data out of test unless masked.

ISO 27001 Control 8.31: Separation of Development, Test and Production Environments

In short: ISO 27001 control 8.31, separation of development, test and production environments, requires environments to be kept apart and secured. For a small software business that means production in its own cloud account, changes through the pipeline, separate credentials, masked data in test and narrow access for partners.

Control 8.31 asks you to keep development, test and production environments separate and secure, so that untested code cannot reach customers, developers cannot casually change live systems, and test activity cannot affect real data.

Larger and more mature organisations do this out of necessity. Startups rarely have truly separate environments. I have seen a client whose production and test environments were effectively mixed together, and whose channel sales partners had what amounted to admin access to every customer. Nobody had designed it that way; it had grown.

This page covers what separation means for a small software business, and the minimum worth putting in place.


What control 8.31 actually asks for

The control requires development, testing and production environments to be separated and secured. In practice:

  • Separate environments, ideally in separate cloud accounts or subscriptions.
  • Restricted access to production, with changes deployed through a controlled route.
  • No real personal data in development or test unless it is masked.
  • Different credentials for each environment.
  • Clear labelling, so nobody mistakes production for test.

In the 2013 edition this was covered by A.12.1.4 and A.14.2.6 (secure development environment).


The minimum

  • Production in its own cloud account or subscription, as AWS recommends.
  • Developers deploy to production through the pipeline, not by logging in.
  • Separate secrets and credentials per environment, so a test key cannot touch production.
  • Masked or synthetic data outside production (see control 8.33 and control 8.11).
  • Third parties, including partners and resellers, given only the access they need, to the customers they serve.

Why it matters

Mixed environments create two kinds of risk. Untested changes can reach customers, and people who should only be testing end up with power over live data. In the case above, the sales partners’ broad access was arguably the more serious problem: one compromised partner account could have reached every customer at once.

Secure Development Checklist Download
For this control, the Environments tab records each environment, who can reach and deploy to it, what data it holds and whether it is truly separate from production.


What auditors will look for

For environments, I ask who could change production right now, without going through the pipeline.

  1. Separation. Are development, test and production separate?
  2. Access. Who can reach production directly?
  3. Data. What data is in test and development?
  4. Third parties. What access do partners and suppliers have?

Common issues

  • Test and production in the same account or database.
  • Developers with standing admin access to production.
  • Shared credentials across environments.
  • Partners or resellers with broad access to all customers.

The self-check

List everyone who could change production today.

  • Is production in a separate cloud account from development and test?
  • Who could change production without the pipeline?
  • Is any real customer data in test?
  • What can your partners or resellers see and change?

A recent example

That client showed a pattern I see in startups that grow quickly: environments and access arranged for whatever was needed at the time, and never revisited as customers and partners arrived. Mature organisations separate environments because they have been burned. Startups can do it before they are, and it is far cheaper early.


Frequently asked questions

Do small teams really need separate environments?

Yes. At minimum, production should be separate from development and test, and changes should reach it through a controlled route.

Can developers have access to production?

Some may need it for support, but it should be limited, logged and ideally time-bound, with normal changes deployed through the pipeline.

Is a staging environment required?

Not by the standard, but a test environment that resembles production makes testing more reliable.


Sources and further reading

Official guidance and standards referred to on this page.

Internal Audit Service

Get an independent view of your ISO 27001 ISMS before you go into an audit.

“Alan from Iseo Blue truly came to our rescue. His support ahead of our internal audit was outstanding, and he helped us get our ISMS 100% ready for the Phase 2 audit.“

– Quartile.

✓ Gain confidence
✓ Audit plan
✓ Independent view
✓ An ISO 27001 requirement

✓ Audit findings report
✓ Recommendations
✓ Review meeting
✓ Fixed price

£2,500

+ VAT where applicable

internal audit report screenshot