DevSecOps9 November 20269 min read

Regulating a Digital Gambling Economy — Part 7 of 20

Identity is the new regulatory perimeter

A regulator's officials, licensees, contractors and background processes all reach the same evidence, and each must be able to do only what its role allows. Part 7 of Regulating a Digital Gambling Economy maps human and machine identities to permitted actions, and shows how separation of duties, privileged access and access reviews protect the integrity of regulatory decisions.

#Public Sector#Zero Trust Security#Identity and Access#DevSecOps#Gambling Regulation
Streams of luminous particles flow across a dark plane past a large lens on a stand in front of a columned civic building; the lens highlights one stream in amber.

During a routine access review at the Tankwa Gambling and Betting Board, the fictional provincial regulator in this series, the security lead found three surprises. A compliance officer who had moved to the licensing team a year earlier could still edit inspection findings. A contractor who had built a reporting tool still had an active account, eight months after the contract ended. And the service account that imported licensees' monthly returns had been given broad rights during testing, which meant it could, in principle, change the status of an enforcement case.

Nobody had misused any of this access. That was luck, not control. For a regulator, the risk is not only a data breach. It is that someone could alter the evidence a decision rests on, or take an action they had no authority to take, and the record would not show it clearly.

Part 6 set out who owns which decisions. This article covers how the systems enforce it. When officials work from licensees' premises and from home, licensees log in from their own offices and background processes move data between zones, the network boundary cannot protect the evidence. Identity has to. As in the rest of the series, legal references are general information, not legal advice.

Why identity, and why now

The idea is not new. NIST's Zero Trust Architecture (SP 800-207), published in August 2020, describes moving protection away from network perimeters to users, assets and resources, and granting no implicit trust because of network location. Zero trust security: a practical starting point covers the general approach, and Zero trust, segmentation and service networking covers the network side. This article applies the identity side to a regulator.

What makes a regulator different is the kind of harm that weak identity causes.

  • Integrity of evidence. An inspector who can quietly edit a finding after the licensee has seen it undermines every decision based on that finding.
  • Authority to act. Suspending a licence, issuing a compliance notice or referring a matter for prosecution each requires a delegation. If the system lets anyone press the button, the delegation exists only on paper.
  • Confidentiality across licensees. Licensees compete with each other. A licensee user who can see another licensee's returns is a serious breach of trust.
  • Restricted information. Investigation files and information related to the Financial Intelligence Centre Act carry their own disclosure limits, as Part 4 described.

POPIA's security safeguards condition, in section 19, requires a responsible party to take appropriate, reasonable technical and organisational measures to protect the integrity and confidentiality of personal information. For a regulator, identity and access controls are among the most important of those measures.

Five kinds of identity

The Tankwa board's identity model starts with five populations, each managed differently.

IdentityWhere it livesHow it authenticatesWho manages it
OfficialsThe board's directoryPhishing-resistant multifactor authentication on a managed deviceHuman resources triggers, ICT administers
Licensee usersExternal identity, linked to the licensee's recordMultifactor authentication, with a licensee administratorThe licensee's administrator, accountable to the board
ContractorsThe board's directory, as guests or time-bound accountsAs officials, with access that expires automaticallyThe engaging manager
Public usersOptional light identity, or anonymousEmail or phone verification where neededThe user
Workloads and service accountsManaged identities in the landing zonePlatform-issued credentials, no stored passwordsThe platform owner

The last row is the one most often neglected. A modern regulator has more machine identities than people: the import job for returns, the integration with the front door, the reporting pipeline and, in future, AI tools and agents. Each needs an owner, a stated purpose and the smallest set of rights that purpose requires. Least-privilege as code shows how to make that enforceable for deployment pipelines.

Map identities to actions, not to systems

The common mistake is to grant access by system: "the licensing team has access to the licensing application". That says nothing about what a person may do inside it. The board's model grants access by action instead.

Identities mapped to actions, not systemsIDENTITYALLOWED ACTIONSNOT ALLOWEDOFFICIALComplianceofficerView evidence, addfindings and requestsEdit what thelicensee submittedLICENSEELicenseeuserSubmit and view forits own licencesSee any otherlicensee's dataWORKLOADReturnsimport jobWrite returns,create casesChange a case statusor approve actionOFFICIALDelegateddecision-makerDecide, with reasons,within delegationDecide a case theyprepared themselvesPRIVILEGEDPlatformadministratorElevate for a task,time-bound, loggedDelete or alterthe audit logsAuthorisation is checked on every request, not only at sign-in
The Tankwa board grants access by action. A compliance officer can add findings but cannot edit what a licensee submitted. A licensee user reaches only its own licences. The job that imports monthly returns can create cases but has no rights on case decisions, so a compromise of that job cannot change an enforcement outcome. Separation of duties stops a decision-maker deciding a case they prepared, and administrators cannot alter the logs. Illustrative model.

Three examples from the board's model show the difference.

  • A compliance officer may view an operator's submitted evidence but cannot alter it. Submitted evidence is stored as received. The officer can add findings, comments and requests, which are recorded as new entries linked to the evidence, never as edits to it.
  • A licensee user may submit only for its own licences. Authorisation checks the link between the user, the licensee and the licence on every request, not only at sign-in. This is the most common weakness in portals and APIs, and it is the first item in the OWASP API Security Top 10 (2023), broken object level authorisation.
  • A background process may import transactions but cannot approve enforcement action. The import job writes to the returns store and creates cases. It has no rights on case decisions. If it is compromised, the damage is limited to what it was allowed to do.

The same principle will apply to AI. Identity before intelligence explains why every call to a model needs a known caller acting on someone's authority. When agents arrive, Agentic landing zones: from governed intelligence to governed action describes agent identity and credential brokering. For a regulator, an agent's identity never carries a decision-making delegation.

Separation of duties

Some combinations of rights are dangerous even when each right is reasonable on its own. The board lists them and prevents them by design.

Should not be held by the same person for the same caseWhy
Recording an inspection finding and approving its closureThe person who found the problem should not certify that it is fixed
Calculating a tax assessment and approving a write-off or refundA classic fraud risk in any revenue function
Preparing a licence recommendation and making the licence decisionKeeps an independent decision-maker, where the delegation requires one
Administering the case platform and approving cases in itAn administrator could change the record of their own decisions
Changing a validation or risk rule and deploying it to productionRule changes need review, as Part 6 described

These rules are configuration, not policy statements. The case system checks them when an action is taken, and records any approved exception with its reason.

Privileged access

Privileged accounts can change the system itself: administer the directory, alter log settings, read every case or restore a database. At the Tankwa board they are treated as the highest risk in the estate.

  • No standing privilege. Administrators use normal accounts day to day and request elevation for a specific task, for a limited time, with a recorded reason.
  • Separate privileged accounts and devices for the supervisory intelligence zone, held by named people and reviewed at least quarterly, as Part 4 set out.
  • Two people for the most sensitive actions, such as changing log retention or deleting a backup.
  • Every privileged session is logged to the protected log store that zone administrators cannot alter.

Conditional access and the inspector in the field

Inspectors work at casinos, betting shops and limited payout machine sites, often on mobile networks. Conditional access lets the board decide access by context, not only by credential.

  • A managed, compliant device with phishing-resistant authentication can reach case records and capture findings.
  • An unmanaged device can reach only the public services and email, never the intelligence zone.
  • Sign-in from an unusual location or at an unusual time for a privileged role triggers re-authentication and an alert.

Field work also needs a fallback. If connectivity fails at a site, the inspector captures findings on the managed device, and they are uploaded and time-stamped when the device reconnects. Part 9 returns to working when systems are degraded.

The access lifecycle

Most access problems, including all three at the Tankwa board, are lifecycle failures: access that was right once and was never removed.

The access lifecycleJOINER, MOVER, LEAVERSOURCEHR record orcontract datesJOINERAccess from role,not copiedMOVEROld access removed,new access addedLEAVERAccess ends on therecorded dateMACHINESService accounts,platform ownerREVIEWQuarterly for sensitive roles, yearly for the rest;removals reported to the steering forumMost access failures are lifecycle failures: right once, never removed
All three access problems found at the Tankwa board were lifecycle failures: a mover who kept old edit rights, a contractor whose account outlived the contract and a service account that kept rights granted for testing. Access now follows the human resources record or the contract dates, a move removes old access as well as adding new, and owners review access on a schedule. Service accounts are reviewed by the platform owner with the same discipline. Illustrative model.
  1. Joiner. Access is granted from the role, based on a record from human resources, not on a copy of a colleague's access.
  2. Mover. A change of role removes the old access as well as adding the new. This is where the compliance officer's edit rights should have ended.
  3. Leaver and contract end. Access ends on the date in the record, automatically. Contractor accounts are created with an end date.
  4. Review. Service and data owners review who holds access to their services each quarter for sensitive roles and at least yearly for the rest. A review that is approved without changes every time is a warning sign.
  5. Machine identities are reviewed by the platform owner with the same discipline, including rights granted temporarily during testing.

From pilot access to durable entitlement describes the same problem for AI tools, where access granted for a pilot quietly becomes permanent.

What this does not mean

  • It does not mean one product solves it. A directory, a multifactor service and a privileged-access tool are necessary. Without the action map, separation of duties and lifecycle, they protect the wrong things.
  • It does not mean the network no longer matters. Network segmentation still limits the damage when an identity is compromised. Identity is the primary control, not the only one.
  • It does not mean distrusting staff. Clear limits protect officials too. An inspector who cannot alter a finding after the fact cannot be accused of doing so.
  • It does not mean the licensee's security becomes the regulator's job. The board sets the conditions for licensee access to its services. Each licensee remains responsible for its own users and administrator.

An identity readiness checklist

CheckReady when
All five identity populations are listed with an ownerIncluding every service account and integration
Access is granted by action, not by systemThe action map exists for each regulatory service
Submitted evidence is immutableOfficials add records, and cannot edit what was received
Object-level authorisation is testedPenetration tests check that licensee A cannot reach licensee B's data
Separation-of-duties rules are enforced in the systemExceptions are recorded with reasons
No standing privileged accessElevation is time-bound, reasoned and logged
Joiner, mover and leaver are automatedContractor accounts expire on the contract end date
Access reviews produce changesEach review's removals are reported to the steering forum

Executive readiness questions

  1. How many people could change an inspection finding today after the licensee has seen it?
  2. Can any background process in our estate change the status of a licence or an enforcement case?
  3. How long after a contract ends does a contractor's access actually stop?
  4. Have we tested whether one licensee's users can reach another licensee's data through our portal or API?
  5. Who reviews our service accounts, and when did they last remove one?

Key points

  • For a regulator, weak identity threatens the integrity of evidence and the authority to act, as well as confidentiality.
  • Manage five populations: officials, licensee users, contractors, public users and workloads. Machine identities usually outnumber people and need owners too.
  • Grant access by action, not by system. Submitted evidence is immutable, licensees reach only their own licences and import jobs cannot approve anything.
  • Enforce separation of duties and remove standing privilege. Log every privileged session to a store administrators cannot alter.
  • Most failures are lifecycle failures. Automate joiner, mover and leaver, and make access reviews remove access.

This is part 7 of Regulating a Digital Gambling Economy. Previous: The digital regulator's operating model. Next: Records are evidence, not administrative clutter.

For logging what staff do with AI tools, see What must be logged when staff use AI.

Background reading: NIST SP 800-207, Zero Trust Architecture (August 2020); NIST SP 800-63-4, Digital Identity Guidelines (July 2025); OWASP API Security Top 10 (2023); Protection of Personal Information Act 4 of 2013. Checked on 7 November 2026. This article is general information, not legal advice.

How CloudNala can help

CloudNala helps regulators build identity models that protect evidence and enforce delegations. We list every human and machine identity in your estate with its owner, build an action map for your highest-risk services, define separation-of-duties rules your case system can enforce, and design privileged access without standing rights. We then automate the joiner, mover and leaver process, test object-level authorisation in your portal and APIs, and set up access reviews that report what they removed.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book a Regulatory Technology Review or write to us at consult@cloudnala.co.za

Found this useful?

Share