
As DevOps environments grow, one challenge becomes increasingly clear: developers should not need to understand every Jenkins job, Kubernetes command, cluster credential or deployment script just to release an application safely.
After working with CI/CD, Terraform, Kubernetes, GitOps and automation, I started thinking about how those capabilities could be presented to developers through a simpler and more controlled workflow.
This is where my interest in self service deployment and platform engineering started becoming stronger.
In this article, I will design a simple deployment workflow where a developer chooses an application, version and environment, while the platform handles validation, permissions, approvals and deployment behind the scenes.
Self Service Deployment Flow
Developer
↓
Select Application + Version + Environment
↓
Platform Validation
↓
Permission and Policy Checks
↓
Approval if Required
↓
GitOps Update
↓
Argo CD
↓
Kubernetes Deployment
↓
Deployment Status Returned to Developer
Why Self Service Deployment Matters
In many environments, deployment knowledge gradually becomes concentrated within a small DevOps or infrastructure team.
A developer may need to ask:
Which Jenkins pipeline should I run?
Which parameters should I use?
Which Kubernetes namespace contains my application?
Which configuration belongs to test?
Do I have permission to deploy?
Who approves a production release?
Individually these questions may seem small, but across many teams they can create repeated operational work.
Developer
↓
Ask DevOps Team
↓
DevOps Finds Pipeline
↓
Validate Parameters
↓
Trigger Deployment
↓
Send Result Back
A platform can remove some of this repetitive coordination without removing the controls required for safe deployments.
Self Service Does Not Mean Uncontrolled Access
One of the most important lessons for me is that self service does not mean giving every developer direct administrator access to Kubernetes.
I prefer this model:
Developer Request
↓
Platform Validates Request
↓
Platform Applies Policies
↓
Approved Automation Executes
↓
Infrastructure Remains Protected
Developers receive a simpler experience while the platform team retains control over how infrastructure changes are executed.
Defining a Deployment Request
The first step is defining what information the platform actually needs.
A deployment request can be kept simple:
{
"application": "cloud-native-api",
"version": "1.6.2",
"environment": "test",
"requested_by": "[email protected]"
}The developer does not need to provide:
Kubernetes credentials
Cluster server addresses
Namespace credentials
Argo CD credentials
Registry credentials
Those remain controlled by the platform.
Creating a Small Deployment API
To demonstrate the idea, I can create a small API using Python and FastAPI.
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class DeploymentRequest(BaseModel):
application: str
version: str
environment: str
requested_by: str
@app.post("/deployments")
def create_deployment(
request: DeploymentRequest
):
return {
"status": "RECEIVED",
"application": request.application,
"version": request.version,
"environment": request.environment
}At this stage, the API does not deploy anything.
It simply provides a controlled entry point for deployment requests.
Validating Supported Applications
The platform should not accept arbitrary application names.
I can define a small application catalogue:
APPLICATIONS = {
"cloud-native-api": {
"repository": "cloud-native-api-gitops",
"namespace": "cloud-native-api"
},
"orders-api": {
"repository": "orders-api-gitops",
"namespace": "orders"
}
}The validation function can then check the request:
def validate_application(
application
):
if application not in APPLICATIONS:
raise ValueError(
"Application is not registered "
"with the deployment platform."
)
return APPLICATIONS[application]Validating Environments
The same principle applies to environments.
SUPPORTED_ENVIRONMENTS = {
"dev",
"test",
"prod"
}
def validate_environment(
environment
):
if environment not in SUPPORTED_ENVIRONMENTS:
raise ValueError(
"Unsupported deployment environment."
)This prevents accidental deployment requests to unexpected or incorrectly named environments.
Adding Permission Checks
A self service platform should understand who is allowed to deploy where.
A simplified permission model could look like:
USER_PERMISSIONS = {
"[email protected]": {
"dev",
"test"
},
"[email protected]": {
"dev",
"test",
"prod"
}
}We can then validate the request:
def check_permission(
user,
environment
):
allowed_environments = USER_PERMISSIONS.get(
user,
set()
)
if environment not in allowed_environments:
raise PermissionError(
"User is not authorised "
"for this environment."
)Production consideration: A real platform should integrate with the organisation's identity provider and role based access controls rather than maintaining user permissions directly inside application code.
Different Environments Need Different Controls
One of the design decisions I prefer is making lower environments easy to use while keeping stronger controls around production.
Development
Validate request and deploy automatically.
Test
Validate request, run checks and deploy automatically.
Production
Validate request, verify permissions, require approval and then deploy.
Defining Deployment Policies
Policies can determine which controls are required.
ENVIRONMENT_POLICIES = {
"dev": {
"approval_required": False
},
"test": {
"approval_required": False
},
"prod": {
"approval_required": True
}
}
def requires_approval(
environment
):
return ENVIRONMENT_POLICIES[
environment
]["approval_required"]Now approval behaviour is defined by policy rather than scattered across the deployment code.
Validating the Application Version
Another important control is verifying that the requested container version actually exists.
The platform should ideally check the container registry before accepting the deployment.

Join the conversation! Your thoughts help the community grow.