The Evaluating Self

How we deploy applications at [cB]

Abhinav Gautam · 11 November 2026

We started [cB] nine years ago as a small team. Back then there were fewer projects, and a small team could handle them by hand.

As the team grew, so did the number of projects and servers, and doing things by hand stopped working. A developer who needed a database, a changed secret or a new teammate added had to ask one of the few people who knew how, and wait. Automation, and one central place that knew what existed, became important.

Our needs are also different from most companies'. We cannot simply rely on one cloud provider. Our work runs on multiple servers, in multiple state data centres, on multiple operating systems, with multiple providers. No single vendor's console covers all of that.

In that situation, building our own platform made sense. We call it Engineering Fabric. It does not replace GitLab or Kubernetes or Vault. It sits between them, keeps one record of which application owns what, and makes the changes in each system that a person used to make by hand.

The rest of this post is how it works: what we host ourselves, what is managed for us, and how an application gets from a request to a running pod.

The view from above

Here is everything in one picture. It is dense, so here is how to read it.

  • The dotted outline is what we host ourselves. Everything outside it, above and below, is a managed service.
  • Teal arrows are Fabric doing something: creating a repository, writing a secret, committing a manifest, reading a status. The label says what.
  • The rust line is the deploy path, numbered in order. Flux sits on it between GitLab and the cluster: it sees a new image in the registry, commits the tag to the cluster repository, pulls that repository, and applies it. None of that touches Fabric.
Architecture: Engineering Fabric and the systems around itDevelopers, project owners and admins sign in through Microsoft Entra ID and are reached in Microsoft Teams. Engineering Fabric, in the centre, creates repositories and sets members in GitLab, creates SonarQube projects, writes secrets to Vault, creates databases, commits manifests to the cluster repository, watches rollouts in Kubernetes, and manages DNS, file storage and API keys at Cloudflare, an S3 service and Google Cloud. Deployments go from GitLab's registry through Flux to the cluster without passing through Fabric.ManagedPeopleDevelopers push code, set secrets, read logsProject owners ask for apps and servicesAdmins approve, and run the platformMicrosoft Entra IDwork accounts, groupsMicrosoft TeamsThe Fabric bot: ask, approveOne chat per applicationPipeline and deploy cardsApproval cards, daily remindersign inSelf-hostedGitLabContainer registryproduction: build-412-3f9a1c2staging: stage-build-97-b41d0e7Cluster repositorymanifests: a folder per app, per envRepositories, merge requestsShared pipelinecode owners, quality scan,image buildRunnersSonarQubeone project and gate per appVaultone path per app and environmentNetBird and HoppscotchVPN, API workspace per appDatabase serversPostgreSQL and MySQLRenovate and Trivydependency updates, image scansthe deploy path, never through FabricFluxthe only thing that changesthe cluster: it applies what Git saysEngineering Fabricthe record of who owns what, and the hands that act on itWhat it doesProjects and applicationsRequests and approvalsAccess rightsSecretsEnvironments and manifestsDomains and certificatesDatabasesFilesDeploy trackingTeams botVulnerability scansAudit logHow it behavesEvery change is recorded: who, what, when.Long jobs are Temporal workflows that resumewhere they stopped.Never reads a Kubernetes Secret.Changes the cluster only through Git.Deployed the same way as every other app.Kubernetes clusterApplication namespacesstaging and production, separateDeployments, Services, podsExternal Secretsgives each app its own secretsTraefikroutes traffic to each appcert-managerissues and renews certificatesMail and SMS gatewayapps send through itInternal toolsJira, Metabase, wiki, DB consolesPrometheus and GrafanaBackups and networkk8up, Cilium, Cloudflare Tunnel1 new image tag2 commits tag3 pulls repo4 applies itreconcile now, sync statuscommits manifestsrepos, memberspipeline eventsproject,permissionswrites secretsVPN access,workspacesdatabases,logins, grantsstarts scans,reads findingswatches rollouts,restarts, logssync statusroutes,middlewaresissuer,expiry watchsenderaccountswho getsinto whatManagedEmail and SMS providersdeliveryCloudflareDNS, public file CDNS3 serviceprivate file storageGoogle CloudMaps, reCAPTCHA, FirebaseCertificate authoritiesfree public certificatesDNS records, filesbuckets, keyskeys, projectsrequests certificatesmail and SMS out, from the gatewaypush, mergewho they are,their groupscards out,approvals and requests back
self-hostedmanagedFabric makes a change or reads a statusthe deploy path

Tap the diagram to enlarge itOpen the diagram full size

Figure 1. Engineering Fabric and everything it connects. Flux sits between Git and the cluster. The twelve tiles inside Fabric are its own modules; each one is covered below.

Two things in that picture were decisions, not accidents. The first is that Fabric has no arrow into the deploy path. A merge reaches production through GitLab, the registry and Flux, and none of those ask Fabric for anything. Fabric sets things up beforehand and reports afterwards. The second is that Fabric never creates anything in the cluster directly. It commits files to the cluster repository like a person would, and Flux applies them. What Fabric does directly in Kubernetes is read, plus a restart when someone asks for one.

Self-hosted and managed

The split follows one question: if this went away tomorrow, or someone outside could read it, how bad would that be? Our clients' source code, the images built from it and the secrets those images run with are the business. Those stay on machines we control. Things that need a worldwide network, or that are somebody else's identity system to begin with, we use as managed services.

Self-hosted

On our own servers and our own Kubernetes cluster.

GitLab, its runners and its registry
Code, merge requests, pipelines and every built image.
Kubernetes, with Flux
One cluster. Staging and production are separate namespaces. Flux applies whatever the cluster repository says.
Vault and External Secrets
Vault holds every secret. External Secrets makes each application's own secrets available to it inside the cluster.
Traefik and cert-manager
Routing into the cluster, and certificates that renew themselves.
SonarQube
The code quality gate on every pipeline.
PostgreSQL and MySQL servers
Databases and logins, created per application.
Prometheus and Grafana
Metrics and dashboards.
NetBird and Hoppscotch
The VPN in front of internal tools, and shared API collections.
A mail and SMS gateway
Applications send through it, so provider keys stay in one place.
Engineering Fabric
It runs in the same cluster and is deployed the same way as everything else.

Managed

Run by a provider. We are a customer.

Microsoft Entra ID
Everyone signs in with their work account. Groups come from here.
Microsoft Teams
Where approvals are asked for and deployments are announced.
Cloudflare
DNS for our domains, and the CDN for public files.
S3 service
Private file storage for applications.
Google Cloud
Maps and reCAPTCHA keys, Firebase projects.
Public certificate authorities
cert-manager asks them for free certificates. We also accept ones a client has bought.
Email and SMS providers
Delivery. Our gateway hands messages to them.

Figure 2. What we run, and what is run for us.

Hosting this much is work. What we get back is that when a client asks where their code and data sit, the answer is one sentence.

What Fabric keeps track of

Fabric's whole model is four words. A project is a client engagement and has an owner. A project has one or more applications. An application is any piece of software we build and run for that project, whatever it is. An application has environments: staging, production, and a "global" one for things that are not tied to either, such as the repository. An environment has services: Kubernetes, a database, a web address, file storage, an API workspace.

Every repository, namespace, database and bucket we have belongs to one of those. That sounds like bookkeeping, and it is, but nearly everything else in this post follows from it. Fabric can add a new teammate to the right GitLab project because it knows which project that is. It can tell you who is able to read production secrets because it knows which Vault path is production. It can delete an application cleanly because it knows everything the application ever got.

A project page in Engineering Fabric listing its applications.
Figure 3. A project and its applications. All screenshots in this post use made-up data.

A new application

The project owner asks for a new application from the project page. They give it a name and pick its type and technology stack. The stack decides which repository template it starts from, and the template already carries the shared pipeline, a Dockerfile and the project layout we expect.

The request form for a new application in Engineering Fabric.
Figure 4. Asking for a new application.

The request goes to the admins, in Fabric and as a card in Teams. Approving it is the one manual step, and the admin's real job there is to give the application its ID. That ID becomes the repository name, the namespace, the Vault path and the folder in the cluster repository, so it is worth ten seconds of thought.

The approval queue for new application requests in Engineering Fabric.
Figure 5. The admin's side: approving the request and giving the application its ID.

From there a workflow takes over.

Setting up a new applicationThe owner asks, an admin approves, and Fabric creates the repository, members, SonarQube project, manifests, Vault path and Teams chat in turn.Project ownerAdminFabricGitLabSonarQubeCluster repoVaultTeams1 asks for an application: name, type, stack2 approval card to the admins3 approves, gives it an ID4 repository from the stack template5 owner and team as members6 project, linked to the repo7 creates the staging environment8 namespace, Deployment, image automation9 a path for this app and environment10 a chat for the application11the application page shows each stepand which ones are still running
  1. Project owner → Fabric asks for an application: name, type, stack
  2. Fabric → Teams approval card to the admins
  3. Admin → Fabric approves, gives it an ID
  4. Fabric → GitLab repository from the stack template
  5. Fabric → GitLab owner and team as members
  6. Fabric → SonarQube project, linked to the repo
  7. Project owner → Fabric creates the staging environment
  8. Fabric → Cluster repo namespace, Deployment, image automation
  9. Fabric → Vault a path for this app and environment
  10. Fabric → Teams a chat for the application
  11. Fabric the application page shows each step and which ones are still running
Figure 6. Setting up a new application, from the request to a first environment.

The workflow matters more than the individual steps. GitLab might be slow, SonarQube might be restarting, a commit to the cluster repository might conflict with another one. Each step is recorded as it finishes, so a failure at step six is retried from step six. Before this, a half-created application was a small archaeology project: which of the ten things exist, and which do I still have to do?

The overview tab of an application in Engineering Fabric.
Figure 7. The application once it exists.

Environments and services

An application starts with almost nothing: a repository and a quality gate. Everything else is a service added to an environment, and the owner adds it from the application's page.

An application
Figure 8. An application's environments. Production has asked for a database.

Some services an owner can switch on themselves. Others go to an admin first. Which is which is a setting on the service, not something written into the code, so we can loosen it as we come to trust a setup. Either way the same code does the work, which means a self-service database and an admin-approved database are created identically.

The form for requesting a service on an environment in Engineering Fabric.
Figure 9. Asking for a service. The form changes with the service; a database asks whether to create a new one or link one that already exists.

A few examples of what "add a service" turns into:

  • Kubernetes. Fabric commits a folder for the app and environment to the cluster repository: namespace, Deployment, Service, the image automation that follows new builds, and the object that gives it its secrets. Flux applies it.
  • Database. Fabric creates the database and a login on the right server, grants the login only that database, and writes the connection details straight into the app's secrets. The developer never sees the password.
  • Web address. Fabric adds the route in Traefik, creates the DNS record at Cloudflare, and asks cert-manager for a certificate. The page shows the certificate's status until it is issued.
  • File storage. A folder on the public CDN, or a private bucket on an S3 service with its own key, again written into the app's secrets.

From merge to running

This is the part that happens many times a day, and the part where Fabric does the least. That is on purpose.

One deployment, from merge to runningA merge starts the shared pipeline, the image is pushed, Flux commits the new tag and applies it, Kubernetes rolls the pods, and Fabric reports the result in GitLab and Teams.DeveloperGitLabRegistryFluxKubernetesFabricTeams1 merges to main2pipeline: code owners, quality scan,then the image build3 pushes build-412-3f9a1c24 pipeline finished5 pipeline card6 a newer tag exists7commits the new tag to thecluster repository8 applies the commit9starts the new pod, thenstops the old one10 rollout status11 marks the commit as deployed12 deploy card: 2 of 2 pods ready13keeps watching the new podsfor ten more minutes
  1. Developer → GitLab merges to main
  2. GitLab pipeline: code owners, quality scan, then the image build
  3. GitLab → Registry pushes build-412-3f9a1c2
  4. GitLab → Fabric pipeline finished
  5. Fabric → Teams pipeline card
  6. Registry → Flux a newer tag exists
  7. Flux commits the new tag to the cluster repository
  8. Flux → Kubernetes applies the commit
  9. Kubernetes starts the new pod, then stops the old one
  10. Kubernetes → Fabric rollout status
  11. Fabric → GitLab marks the commit as deployed
  12. Fabric → Teams deploy card: 2 of 2 pods ready
  13. Fabric keeps watching the new pods for ten more minutes
Figure 10. One deployment. Rust is the deploy path, which never passes through Fabric. Teal is Fabric reporting what happened.

Every repository includes the same pipeline from one shared place, so a fix to the pipeline reaches every application at once. It checks code owners, runs the SonarQube scan, and builds the image. A merge to main produces a production image; a merge to the staging branch produces a staging image. The tag carries the build number and the commit, so anyone looking at a running pod can tell exactly which commit it is.

Nobody runs a deploy command. Flux notices the newer tag, writes it into the app's manifest in the cluster repository, and applies that commit. So the cluster repository is the only door into the cluster, and its history answers "what changed, and when?" for every application at once. Rolling back is reverting a commit.

The Kubernetes workloads page of an application in Engineering Fabric, showing its pods and the image they run.
Figure 11. What is running, as the developer sees it: pods, the image tag, logs and a restart button, without a cluster login.

Fabric's part starts when the rollout does. It watches the Deployment, marks the commit in GitLab once the new pods are ready, and posts a card in the application's Teams chat. A rollout that Kubernetes calls successful can still fall over two minutes later, so Fabric keeps watching the new pods for ten minutes. If one starts crash-looping or is killed for memory, the same card is updated with the reason and a link to that pod's logs. The developer who merged finds out in the chat they already have open.

The list of deployments across applications in Engineering Fabric.
Figure 12. Every deployment across the applications of a project.

Secrets

Fabric manages every application's secrets. Developers set them on the application's page, per environment. They never get a Vault login and never touch a Kubernetes Secret. Protected values, such as database passwords, can be replaced but not read back by anyone who is not an admin, and Fabric keeps a log of who touched which keys.

The Secrets tab of an application in Engineering Fabric, listing its keys with the values hidden.
Figure 13. An application's secrets. Values stay hidden, and protected ones cannot be revealed at all.

Fabric itself cannot read Kubernetes Secrets. We left that permission out deliberately, so that a bug in Fabric cannot leak a value it never had.

Domains and certificates

An application's addresses live on its Integrations tab, next to everything else it is connected to. Adding one creates the route, the DNS record and the certificate together, and removing one takes all three away. Certificates come from free public authorities through cert-manager and renew on their own. When a client has bought a certificate, an admin uploads it; Fabric stores it in Vault and serves it the same way.

The Integrations tab of an application in Engineering Fabric, showing its domains and their certificates.
Figure 14. An application's production integrations: its repository and last pipeline, its state in Kubernetes, its domain and certificate, its API workspace and its Teams chat.

Fabric keeps one dashboard of every certificate in the cluster with the days each has left, and sends a reminder well before a bought one expires, since those cannot renew themselves.

Files

Applications get two kinds of storage. Public files sit behind the CDN and get a stable link. Private files sit in a bucket on an S3 service that only that application's key can reach. Both show up on the application's Files tab, where the people with access can browse, upload and delete without being handed storage credentials. Deleted private files go to a trash folder for thirty days first.

The Files tab of an application in Engineering Fabric, showing public and private folders.
Figure 15. An application's files. Staging and production have separate private storage.

Email and SMS

Almost every application we build sends email or SMS: one-time passwords, receipts, alerts. The simple way is to give each application the provider's API key. That has two problems.

The first is that credentials leak. A provider key copied into ten applications sits in ten sets of secrets, on ten developers' laptops at some point, and in whatever a developer pasted while debugging. Rotating it means touching all ten. The second is that nobody can answer a simple question: who is sending how much? The provider's bill shows one number for everyone.

So applications do not talk to the providers. They send through a gateway we run, and only the gateway holds the provider credentials. Fabric gives each application its own sender account and token for an environment and writes the settings into that application's secrets, so a developer never handles a key. Our internal [cB] libraries already know how to talk to the gateway, which means that in an application's code sending a message is one call and no setup.

Because everything passes through one place, we also get a high-level audit log for free: which application sent what, when, through which sender, and whether it was delivered. It does not record what the messages say beyond the subject line. It is enough to see who is sending how much, to notice an application that suddenly sends ten times its usual volume, and to switch one application off without affecting the others.

Who can do what

Signing in is the same everywhere. Fabric and every tool around it use single sign-on through Azure, so a developer has one work account and never has to hunt around for a password to GitLab, SonarQube or anything else. What that account is allowed to do in each tool is what Fabric decides.

Access is asked for per application, per environment and per service: read on production logs, write on staging secrets, and so on. Nobody has standing access to an application they do not work on.

How access is grantedA request is approved by the project owner and then an admin, Fabric applies it in the system that enforces it, and removes it when it ends.Requestapp, environment,service, roleTeamscardFirst approvalthe projectownerTeamscardSecond approvalan adminFabricappliesAppliedGitLab, SonarQube,database, storageFabricremovesEndson its end date,or when revoked
How access is grantedA request is approved by the project owner and then an admin, Fabric applies it in the system that enforces it, and removes it when it ends.Requestapp, environment, service, roleTeams cardFirst approvalthe project ownerTeams cardSecond approvalan adminFabric appliesAppliedGitLab, SonarQube, database, storageFabric removesEndson its end date, or when revoked
Figure 16. An access request from start to finish.
The form for requesting access to an application in Engineering Fabric.
Figure 17. Asking for access.

The project owner approves first and an admin second, and both can do it from the card that arrives in Teams. Once approved, Fabric applies the access in the system that enforces it: a GitLab role, a SonarQube permission, a database grant, a storage permission. If the person has never signed in to GitLab or SonarQube, Fabric creates the account first, so access is waiting for them on day one. Access can carry an end date, and Fabric warns a week ahead and removes it on that date.

The approvals tab for access requests in Engineering Fabric.
Figure 18. The approver's queue.

The side effect we use most is one page that answers "who can touch this application's production?" without opening six admin consoles. When someone leaves a project, removing them is one action in one place.

What arrives in Teams

Most people meet Fabric in Teams before they ever open it. Each application has a chat, and Fabric posts there:

  • a card for each merge request pipeline, showing which job failed and why, down to the quality gate's numbers, with buttons to the pipeline, the merge request and the issues;
  • a card for each deployment, updated in place as pods come up or fall over;
  • a card when a merge request is assigned to you for review.
A Teams card from Engineering Fabric for a failed merge request pipeline: the code owners check passed, the SonarQube quality gate failed on five new issues, and the merge is blocked by unresolved threads. Names are blurred.A Teams card from Engineering Fabric listing two requests that have waited more than two days for approval. Names are blurred.
Figure 19. Two real cards, with names blurred. Left: a merge request pipeline that failed its quality gate, with the reason and the buttons to act on it. Right: the morning reminder to an approver.

Approvers get their requests as cards with Approve and Reject on them, and one reminder each morning listing anything that has waited more than two days. The bot also takes requests: a project owner can ask for a service or check on what they have asked for without leaving the chat. None of this needed a new habit. People were already in Teams all day.

Taking things down

Because Fabric knows everything an application was given, it can take all of it away. Deleting an application is a request like any other, approved by an admin who is shown exactly what will go: the namespaces, the routes, the database, the storage, the access. Decommissioning turns everything off but keeps the data, and for a while it can be restored. Only after that window does a purge remove it for good and free the ID for reuse.

Before Fabric, an application that ended left things behind: a DNS record, a database nobody dared drop, a few people with access to a repository that no longer mattered. Those are small, and they add up.

None of the parts are unusual. GitLab, Flux, Vault and Kubernetes are what many teams use. The part we had to build was the one that knows which application each thing belongs to, and once that existed, the rest was mostly a matter of teaching it one more system at a time.