Platform engineering and self-service
Treat the platform as an internal product
Platform engineering provides reusable, supported capabilities that help application teams deliver software safely with less repeated infrastructure work. A golden path is a recommended, versioned way to accomplish a common task, such as deploying a private HTTP service. It combines templates, documentation, tests, ownership and operational support. It is not a mandatory one-size-fits-all tool chain.
A developer portal is one interface to the platform. A service catalog records available capabilities and the ownership and lifecycle of services. A catalog entry might link to documentation, repository, runtime location, SLO, support contact and change history. The portal may invoke automation, but neither a form nor a catalog entry is a permission check. CNCF platform guidance describes platform interfaces including APIs, portals and templates; choose an interface appropriate for users, including accessible CLI or API alternatives.
Northwind's Checkout team requests a production private service. Its developer should be able to supply a service name, owner, environment, data classification and recovery targets without writing organization-level policies. The platform supplies defaults and guardrails. The team owns its application code, deployments, on-call and business behavior.
Define a versioned vending contract
The following JSON is a static fictional request, not a provider payload or credentials.
{ "requestId": "req-101", "team": "checkout", "service": "order-api", "environment": "production", "template": "private-http@2", "dataClass": "internal", "region": "approved-region-a", "owner": "checkout-oncall", "budgetUsdMonthly": 120, "recoveryMinutes": 60}A trusted service validates the authenticated caller's team membership, schema, owner, region and data classification, existing resource ownership, quota and policy. A registered template version declares identity roles, network attachments, logging, budget owner, health probes and support boundaries. The region name above is symbolic; real allowlists use actual approved identifiers. budgetUsdMonthly is a planning amount, not a provider hard cap. The request ID is a durable idempotency key scoped to the requester; reuse with different content must conflict rather than silently overwrite the previous request.
Request -> authenticated intake -> schema and policy validation -> review when required -> preview -> authorized provisioning -> post-provision evidence -> handoff -> monitored lifecycle | failure -> reconcile -> retry or reviewed cleanupRecord the actor, normalized input digest, policy revision, template version, preview and change identifier. Provisioning uses a separately scoped automation identity, not the developer's browser session. Keep a durable state record and resource inventory. If a timeout occurs after partial creation, reconcile actual state before retrying. Do not delete resources merely because a request failed; verify ownership, retention and dependencies.
Balance guardrails with autonomy
Guardrails are requirements that constrain allowed changes or detect violations. Prevention, detection and remediation have distinct consequences; automatic remediation must be scoped and reviewed. Use centrally managed requirements for protected audit retention, approved locations, production isolation and least privilege. Let teams choose supported runtime sizes, deploy frequently and adjust scaling inside those limits. A team needing an unusual database or network path should have a documented exception route with owner, risk, approval, expiry and review. A golden path should be easy to adopt, not an excuse to bypass security for unsupported workloads.
Separate approval of new privilege from routine deployments. An ordinary sandbox request with synthetic data may follow automated checks; production resource creation in Northwind requires an independent review. An exception cannot override an absolute deny, such as an unapproved region in this teaching policy. In real systems evaluate applicable law and business policy separately. Do not put secret values in templates, logs or catalog entries; reference a managed secret and assign its narrowly scoped consumer identity.
Model a request review gate locally
This deterministic Python example checks simplified, pre-verified inputs. It does not authenticate anyone, provision a resource, enforce cloud policy or store request IDs durably. The caller must supply evidence flags from trusted systems in a real implementation. An approved result means ready for human or automated preview review, not permission to deploy.
REQUIRED = {"owner", "audit", "network", "budget"}TEAMS = {"checkout", "catalog"}
def review_request(team, environment, template, region, data_class, independent_review, evidence): if environment not in {"sandbox", "production"}: raise ValueError("unknown environment") if type(independent_review) is not bool: raise ValueError("review must be boolean") if team not in TEAMS: return "blocked: team" if region != "approved-region-a": return "blocked: region" if template != "private-http@2": return "blocked: template" if data_class not in {"synthetic", "internal"}: return "blocked: data class" if environment == "sandbox" and data_class != "synthetic": return "blocked: sandbox data" if not REQUIRED.issubset(evidence): return "blocked: missing evidence" if environment == "production" and not independent_review: return "pending: independent review" return "ready-for-preview"
print(review_request("checkout", "sandbox", "private-http@2", "approved-region-a", "synthetic", False, REQUIRED))print(review_request("checkout", "production", "private-http@2", "approved-region-a", "internal", False, REQUIRED))print(review_request("catalog", "production", "private-http@2", "approved-region-a", "internal", True, REQUIRED))print(review_request("catalog", "sandbox", "private-http@2", "approved-region-a", "internal", True, REQUIRED))Expected output:
ready-for-previewpending: independent reviewready-for-previewblocked: sandbox dataThe first request passes the sandbox rules. The second requires review even with all evidence. The third is ready for preview, but has not provisioned anything. The last is blocked despite review because the sandbox accepts synthetic data only. Try missing audit evidence and an unknown region. In a real implementation, compare authenticated subject to team, verify independent approver identity, evaluate actual policies, and fail closed on missing evidence. The function intentionally does not implement exceptions, identity or idempotency.
Manage the service after vending
A provisioned resource is not complete until its owner confirms handoff: expected identity, network and negative tests, audit delivery, budget assignment, recovery contact and inventory entry. Store the template version and upgrade policy. For version 3 of the golden path, test against a small opted-in cohort, publish migration notes and verify rollback compatibility. Do not force a breaking change on all services at once. Track drift between expected and observed state, assign an owner to repair it, and verify remediation. Retire a service only after checking dependencies, data retention and legal holds, backup recoverability, credentials, DNS, budget and final inventory. Removing a catalog entry does not remove a cloud resource.
Measure platform outcomes, not portal visits alone. Suppose 18 of 24 eligible new requests finish through a supported golden path: adoption is 75%. Of 20 submitted requests, 17 finish within a 60-minute target: 85% of submitted requests meet the target, assuming the cohort is closed and remaining requests missed it. Measure the lead time from accepted request to verified handoff, track p50 and p95 with a defined percentile method, and count blocked and failed requests separately. Review developer feedback, reliability, exception age and support load. Adoption does not prove security or productivity; investigate causes and avoid incentives that encourage unsafe bypasses.
Practice: specify a second golden path
Design a catalog entry for a scheduled report worker. Specify the versioned input contract, workload identity, queue access, approved environment, owner, resource limits, expected telemetry and handoff tests. Require evidence that duplicate events do not produce duplicate reports. Test requests for unknown teams, missing logging, unapproved locations and production without independent review. Describe how a retry is reconciled using a durable request record and how template upgrades are rolled out. Explain who owns the worker's business behavior versus the underlying shared platform.
Recap: the landing zone establishes boundaries, the platform makes approved actions repeatable, and workload teams retain operational accountability. Review cloud-concept-platform-engineering-and-self-service. Next: Migration and modernization engineering.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Platform engineering and self-service — knowledge check
Choose the best answer for each offline scenario.
What is a golden path?
A production request has required evidence but no independent review. What does the local model return?
Why use a durable scoped request ID?
18 of 24 eligible new requests use the golden path. What is adoption?
What should occur before decommissioning a service?