Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› How should teams separate public and protected API…
Authentication, Authorisation & Trust

How should teams separate public and protected API access?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 6, 2026 Domain: Authentication, Authorisation & Trust

Teams should keep public procedures and protected procedures distinct, then enforce the protected boundary with request-time authentication and authorization logic. That approach preserves developer speed while making access decisions explicit, testable, and easier to audit. The goal is not to make every endpoint private, but to make sensitive ones conditional on identity state.

Why separate public and protected API access at all?

Keeping public and protected procedures distinct prevents teams from blurring unauthenticated entry points with sensitive operations. Public endpoints can stay simple and broadly usable, while protected endpoints can carry the extra checks needed for access control, auditing, and stronger failure handling. That separation also makes review easier because each procedure has a clearer trust boundary and test surface.

It is usually better to treat "public" as a deliberate design choice, not the default state for every route. If an endpoint can safely be open, keep it open. If it can expose data, change state, or trigger privileged actions, move it behind a protected path that is explicitly guarded.

That design is closely related to API security guidance on broken authorisation and access control. OWASP's API Security Top 10 is useful here because it frames the boundary as a policy problem, not just a routing problem.

What should the protected boundary actually enforce?

A protected boundary should enforce request-time authentication and authorization before the request reaches sensitive business logic. Authentication answers who or what is calling, while authorization answers what that caller may do on this specific resource or action. The check needs to happen at the boundary itself, not only in a shared library or client-side code, because the service must be able to reject unsafe requests even when upstream callers are misconfigured.

Practically, that means the protected path should verify identity state, validate the relevant token or credential, and then apply a permission decision that is specific to the operation. For machine-to-machine access, this often means tightly scoped OAuth flows, audience restriction, or certificate-bound tokens. For human users, it means the same principle with user identity and session state.

For teams standardising the control set, NIST SP 800-53 Rev 5 Security and Privacy Controls gives the clearest control lens for access control, identification and authentication, and auditing. Teams that want a more implementation-oriented application view can also use OWASP ASVS to check that authentication and authorization are verified at the service boundary.

How do teams keep the split secure without slowing delivery?

The useful pattern is to keep the public surface narrow and boring, then make the protected surface explicit and testable. Public procedures should avoid carrying side effects that require trust. Protected procedures should centralise the authorization rule so the team can reason about it, test it, and audit it as a distinct concern. That usually means route naming, middleware placement, and logging conventions should make the boundary obvious to engineers and reviewers.

Where APIs are consumed by other services, the same split helps limit blast radius. A caller should receive only the access needed for the specific protected procedure, not broad reuse of the same credential across unrelated functions. If the service must accept third-party or partner traffic, the boundary should also make rate limits, audience checks, and scoped access visible in design reviews.

For cloud and operations teams, CIS Controls v8 is a useful companion because it ties the design to account management, access control, and audit logging. In regulated environments, ISO/IEC 27001:2022 Information Security Management reinforces the same separation through access control, authentication, and privileged access controls.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack surface, NIST SP 800-53 Rev 5 and OWASP ASVS set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationPublic and protected API access depends on correct caller authentication at the boundary.
API5 — Broken Function Level AuthorizationProtected procedures need per-action authorization, not just route separation.
Recommendation — Require authenticated access before executing protected API operations. Enforce function-level authorization on every protected API action.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementThe question centers on enforcing different access rules for public versus protected procedures.
IA-2 — Identification and Authentication (Organizational Users)Protected API access requires verifying caller identity before granting access.
Recommendation — Apply access enforcement at the service boundary for sensitive API routes. Authenticate callers before allowing access to protected procedures.
OWASP ASVSV8 — AuthorizationAPI separation is only safe when protected actions are authorized per request.
Recommendation — Verify authorization controls for every protected endpoint and action.
ISO/IEC 27001:2022A.5.15 — Access controlSeparating public and protected access is an access-control design decision.
Recommendation — Define and enforce access rules that distinguish public from protected API functions.

Practitioner Guidance

What to prioritise: Start by inventorying which procedures are genuinely public and which ones are only "public for convenience." The most common mistake is letting read-only examples, health checks, or onboarding flows become a template for operations that should have been gated from the start.

What to verify: Verify that the authorization decision happens on the server side at request time, after identity is established and before any sensitive business action executes. If a protected endpoint can be reached without that sequence, the split is only architectural on paper.

Common mistake: Do not rely on obscurity, client-side hiding, or a shared gateway rule as the only protection. The service that owns the data or action should still enforce the boundary itself, because that is the control that survives misrouting, reuse, and integration drift.

Practitioner takeaway: The goal is not to make every route private, but to make every sensitive route independently defensible, with a boundary that is explicit enough to review and strict enough to enforce.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 6, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org