Q&A-2Define the boundary between an IDP and developer portal.
Answer
The boundary is ownership of state and enforcement. The IDP owns the source of truth: catalog records, policy decisions, provisioning execution, secrets, and the audit log. The portal owns presentation and initiation: it renders what the platform exposes, collects input, and calls the platform's API. If a capability cannot be driven from CLI, API, or Git, it is not in the platform yet: it is a portal feature, and that is a debt you should name.
Assumptions: more than one interface exists or will exist in six months, and there is a platform team separate from the teams consuming it. If you are ten people with one interface, the boundary is academic; pick one and move.
Why it matters: interfaces multiply. If the portal owns the "create service" workflow, then the CLI team reimplements it, the GitOps team reimplements it, and the three drift. Authorization is the sharpest case. A portal that checks "is this user an admin?" in React and then calls a platform API that trusts the caller has moved the decision to the least auditable place. Put the policy in the platform service (OPA, Cedar, whatever you run) and let the portal hide buttons as a UX nicety only.
Trade-off: the credible alternative is letting the portal own the workflow. Backstage's scaffolder with custom actions that call cloud APIs directly is a real pattern, and it ships faster because you skip the platform API layer. It is the right call when the portal is the only interface and will stay that way. The deciding question: will a non-portal consumer need this capability in the next two quarters? If yes, platform. If no, portal is acceptable, but write it down as debt, because the second interface is when it breaks. Read-only aggregation is different: joining Datadog SLOs with catalog ownership in the portal is fine, because there is no state to diverge.
Failure modes, with detection and cost:
Portal-only path. A team needs a service account and the portal has no button, so they file a ticket. Detection: query the ticket system for requests that have no matching platform API call in the audit log. Cost: each request waits on a human; if portal-only provisioning takes two days of lead time and you get forty service requests a quarter, that is eighty engineer-days of waiting. (Hypothetical figures.)
Hidden state. The portal stores a "deployed" flag in its own database. Detection: a nightly job compares the portal's status field to Argo CD's sync status and alerts on mismatch. Cost: a false green during an incident sends the on-call down the wrong path.
Duplicated authorization. Detection: run the same action through the portal and the CLI as a user with a restricted role. If the portal succeeds and the CLI fails, you have a privilege escalation bug. Cost: security incident.
Deep link rot. Detection: a CI link checker over the portal's catalog URLs. Cost: MTTR climbs when runbooks 404.
Worked trace: a developer clicks "Create service" in the portal.
- Portal collects name, owner, tier; calls POST /api/v1/services on the platform.
- Platform authenticates the user, calls OPA with the user's groups and requested tier. Policy denies tier-1 for non-SRE.
- On allow, platform writes the service to the catalog DB, runs the scaffolder template, creates the repo, registers it in Argo CD, returns 201 with the service URL.
- Portal renders the response. If the platform is down, the portal shows an error; it does not queue the request locally.
Boundary table:
| Capability | IDP owns | Portal owns |
|---|---|---|
| Service creation | Template execution, repo creation, catalog write | Form, required-field validation |
| Authorization | Policy evaluation (OPA) | Hiding buttons (UX only) |
| Deployment status | Argo CD sync status API | Rendering it |
| Ownership | Catalog of record | Display, link to team page |
| Secrets | Vault / secret manager | Never |
What would change my decision: if the portal is the only interface and the platform team is one person, letting the portal own the workflow is a reasonable trade. Revisit when a second interface appears, or when the first non-portal consumer asks for the same capability.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.