<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>sso | Rohit Salecha</title>
    <link>https://www.rohitsalecha.com/tags/sso/</link>
      <atom:link href="https://www.rohitsalecha.com/tags/sso/index.xml" rel="self" type="application/rss+xml" />
    <description>sso</description>
    <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><copyright>Rohit Salecha &amp;#169; `2026` </copyright><lastBuildDate>Thu, 03 Dec 2026 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://www.rohitsalecha.com/images/icon_hu40c7ea214729181906829226e930351e_19106_512x512_fill_lanczos_center_2.png</url>
      <title>sso</title>
      <link>https://www.rohitsalecha.com/tags/sso/</link>
    </image>
    
    <item>
      <title>Blast Radius by Design: Service Bundles, ABAC and Supply-Chain Security</title>
      <link>https://www.rohitsalecha.com/post/blast-radius-by-design/</link>
      <pubDate>Thu, 03 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://www.rohitsalecha.com/post/blast-radius-by-design/</guid>
      <description>&lt;p&gt;I recently came across this question in a security community:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;As a security engineer, if you had to choose between team-based roles and dedicated per-repo roles for IaC deployment pipelines, which would you pick and why? Obviously, a lot depends on company culture and how things are currently set up.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Personally, I prefer dedicated roles because they keep the blast radius small in a supply chain attack or compromise. Team-based roles are better than standing admin privileges, sure, but the shared blast radius is still pretty high. The flip side is scale, when a company has thousands of repos, managing a dedicated role for every single one creates real operational overhead. How are you all handling this trade-off?&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The instinct in that question is right, and it&amp;rsquo;s a trade-off I know well. I worked at a large tech organisation, big enough that this was an everyday problem, not a whiteboard debate. They solved it, and the answer was neither option.&lt;/p&gt;
&lt;p&gt;The moment it clicked for me was a routine one. I needed to review a service, which meant read-only access to its git repo, its cloud accounts and the rest. I went looking for the admin who could grant it, assuming the access would come from a central team. It didn&amp;rsquo;t. The team that owned the service granted it themselves, across all of it, and once my review was done they revoked it just as smoothly.&lt;/p&gt;
&lt;p&gt;That small moment is why I&amp;rsquo;m writing this down. Access was decided by the people who understood the service, not by a queue in front of a central team.&lt;/p&gt;
&lt;h2 id=&#34;the-short-answer&#34;&gt;The short answer&lt;/h2&gt;
&lt;p&gt;The approach where I worked was an &lt;strong&gt;ABAC + resource-bundling&lt;/strong&gt; model. Instead of scoping roles to a whole team or a single repo, the organisation bundled everything one service needs (app repos, infrastructure-as-code repo, secrets, cloud accounts and deployment targets) into one logical container. I&amp;rsquo;ll call it a &lt;strong&gt;service bundle&lt;/strong&gt;. A microservice that spans three repos shares one bundle. A team with ten unrelated services gets ten. Where I worked, each bundle had its own cloud account. A shared account can work too, with labels doing the separation, but I&amp;rsquo;ll describe what I saw.&lt;/p&gt;
&lt;p&gt;Permissions are enforced dynamically through attributes such as &lt;code&gt;bundle_id&lt;/code&gt; and &lt;code&gt;owner_team&lt;/code&gt;. If Service A in Bundle A is compromised, it can reach only what&amp;rsquo;s inside Bundle A, not even other services its team owns. Day-to-day access inside a bundle belongs to the owning team. Central security enforces only a few automated guardrails at the edge, such as keeping personal bundles out of production.&lt;/p&gt;
&lt;p&gt;None of this depends on a particular cloud or vendor. It needs four generic ingredients: an identity provider that carries attributes, labels on resources, federated identity for CI/CD pipelines, and an organisation-level policy layer.&lt;/p&gt;
&lt;h2 id=&#34;why-both-options-hurt&#34;&gt;Why both options hurt&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Team-based roles&lt;/strong&gt; draw the boundary around &lt;em&gt;people&lt;/em&gt;. Everything the team owns sits behind one role, so a compromised dependency in the least important internal tool can reach the payments database.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Per-repo roles&lt;/strong&gt; draw it around &lt;em&gt;code&lt;/em&gt;. The blast radius is small, but role count grows with repo count. At a couple of thousand repos, nobody reviews the trust policies, they drift into near-copies with slightly different wildcards, and a repo usually isn&amp;rsquo;t the real unit anyway. A service is often an app repo, a worker repo and an infrastructure repo that all need the same access.&lt;/p&gt;
&lt;p&gt;Both options share a deeper problem: &lt;strong&gt;somebody central has to manage them.&lt;/strong&gt; Team roles need a platform team to carve them up. Per-repo roles need a ticket for every new repo. The workload of the centre, meaning the platform and central security teams, grows with the organisation, and the centre becomes the bottleneck.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;diagram-options.png&#34; alt=&#34;Three ways to draw the boundary: one role per team, one role per repo, one logical container per service&#34;&gt;&lt;/p&gt;
&lt;p&gt;The unit that matters is the &lt;strong&gt;service&lt;/strong&gt;, and the people who understand a service best are the team that owns it. That points to a different operating model, which I&amp;rsquo;ll come back to after the mechanics.&lt;/p&gt;
&lt;h2 id=&#34;the-service-bundle&#34;&gt;The service bundle&lt;/h2&gt;
&lt;p&gt;&lt;img src=&#34;diagram-bundle.png&#34; alt=&#34;A service bundle: attributes, repos, pipelines, secrets and cloud resources inside one logical container&#34;&gt;&lt;/p&gt;
&lt;p&gt;Four rules make it work:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;One service, one bundle.&lt;/strong&gt; Don&amp;rsquo;t group by team.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Everything inside inherits the bundle&amp;rsquo;s identity.&lt;/strong&gt; Resources carry the bundle&amp;rsquo;s attributes, and pipelines run as the bundle. Nothing is configured resource by resource.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Open inside, closed across.&lt;/strong&gt; Resources inside a bundle can reach each other. Access across bundles is denied by default, and opens only for the bundles its manifest allows to call it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Owners run the inside; the centre governs the edge.&lt;/strong&gt; The owning team manages access within the bundle. Central security owns a small set of guardrails at the edge.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A bundle is described once, in a manifest that lives with the owning team. It records the repos that belong to the bundle, the team that owns it, what it depends on and which other bundles may call it. For example, the &lt;code&gt;checkout-auth&lt;/code&gt; bundle depends on &lt;code&gt;gateway-client&lt;/code&gt;, a library published by the &lt;code&gt;payments-gateway&lt;/code&gt; bundle. The registry records every manifest and is the inventory of every bundle.&lt;/p&gt;
&lt;h2 id=&#34;abac-one-policy-instead-of-thousands&#34;&gt;ABAC: one policy instead of thousands&lt;/h2&gt;
&lt;p&gt;A bundle is only a logical container until something enforces it. If roles enforce it, you&amp;rsquo;ve rebuilt Option B under a new name. &lt;strong&gt;Attribute-based access control (ABAC)&lt;/strong&gt; enforces it instead, by comparing attributes on the caller with attributes on the resource.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Lives on&lt;/th&gt;
&lt;th&gt;Set by&lt;/th&gt;
&lt;th&gt;Used for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;team&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A person&amp;rsquo;s session&lt;/td&gt;
&lt;td&gt;Identity provider&lt;/td&gt;
&lt;td&gt;Day-to-day access to their team&amp;rsquo;s bundles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;bundle_id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A pipeline&amp;rsquo;s session &lt;strong&gt;and&lt;/strong&gt; every resource&lt;/td&gt;
&lt;td&gt;Pipeline identity (see below) / provisioning templates&lt;/td&gt;
&lt;td&gt;Single-bundle isolation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;bundle_type&lt;/code&gt; (&lt;code&gt;team&lt;/code&gt; or &lt;code&gt;personal&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Pipeline session and resources&lt;/td&gt;
&lt;td&gt;Registry&lt;/td&gt;
&lt;td&gt;Keeping personal bundles out of production&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;owner_team&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Resources&lt;/td&gt;
&lt;td&gt;Provisioning templates&lt;/td&gt;
&lt;td&gt;Linking resources to people&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;compliance_class&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Resources&lt;/td&gt;
&lt;td&gt;Registry&lt;/td&gt;
&lt;td&gt;Extra rules for regulated services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;snapshot_id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Pipeline session&lt;/td&gt;
&lt;td&gt;Pipeline identity (see below)&lt;/td&gt;
&lt;td&gt;Audit: which release made this change?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;em&gt;You may act on a resource only if you belong to its bundle.&lt;/em&gt; Going from 50 bundles to 5,000 adds manifests. It doesn&amp;rsquo;t add policies.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One check, two questions.&lt;/strong&gt; Every request goes through a separate authorization service, which I&amp;rsquo;ll call &lt;code&gt;bundle-checker&lt;/code&gt;. First it checks scope: does the caller belong to the resource&amp;rsquo;s bundle? A caller can qualify in different ways. A pipeline qualifies through its &lt;code&gt;bundle_id&lt;/code&gt;, an engineer through a &lt;code&gt;team&lt;/code&gt; that matches the bundle&amp;rsquo;s &lt;code&gt;owner_team&lt;/code&gt;, and anyone else through an explicit grant from the owning team. That decides &lt;em&gt;which resources&lt;/em&gt; the caller can reach. Then it checks the resource&amp;rsquo;s Unix-style &lt;code&gt;rwx&lt;/code&gt; permissions to decide &lt;em&gt;which actions&lt;/em&gt; the caller can take on it. That&amp;rsquo;s how a security reviewer gets read-only access to a repo while the developers on the same repo have write. It&amp;rsquo;s also how I got access for my review: the owning team granted me read, and nothing more. Keep the action lists tight: a deployer can update a service, but it has no business editing access policies.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;diagram-layers.png&#34; alt=&#34;bundle-checker validates every request: the caller&amp;rsquo;s bundle must match the resource&amp;rsquo;s, then the action must be allowed by the resource&amp;rsquo;s read and write permissions&#34;&gt;&lt;/p&gt;
&lt;p&gt;Two cautions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Attribute-condition support varies by platform and by resource type.&lt;/strong&gt; Resources that can&amp;rsquo;t be conditioned on attributes need another control.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unlabelled means unowned.&lt;/strong&gt; An unlabelled resource should match nobody. Track label coverage as a metric.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;identity-people-and-pipelines&#34;&gt;Identity: people and pipelines&lt;/h2&gt;
&lt;p&gt;The principle is that &lt;strong&gt;entitlements are derived, not granted.&lt;/strong&gt; Attributes arrive with a person&amp;rsquo;s login or a pipeline&amp;rsquo;s token, and a few shared policies compare them against resource attributes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;People.&lt;/strong&gt; Engineers sign in through single sign-on, and attributes such as &lt;code&gt;team&lt;/code&gt; ride along on the session. Team membership alone would recreate Option A for people, with one engineer reaching every bundle their team owns. Two things narrow it: &lt;code&gt;bundle-checker&lt;/code&gt;&amp;rsquo;s &lt;code&gt;rwx&lt;/code&gt; permissions decide what each person can do on each resource, and changes reach production through each bundle&amp;rsquo;s pipeline rather than by hand.&lt;/p&gt;
&lt;p&gt;When someone changes teams, their directory group changes and the next session carries the new &lt;code&gt;team&lt;/code&gt;. No ticket revokes the old access or grants the new. This also stops authorisation creep. Every grant tied to the old team stops matching, so access doesn&amp;rsquo;t quietly pile up across moves, and nobody has to remember what to unwind.&lt;/p&gt;
&lt;p&gt;Grants to individuals sit outside that. My read-only review access was one, and the owning team revoked it themselves when the review ended. An expiry on individual grants makes that automatic, so revocation doesn&amp;rsquo;t depend on someone remembering. Production sessions should also be short-lived, with a way to revoke older ones, because an issued session stays valid until it expires. Without that, &amp;ldquo;instant offboarding&amp;rdquo; is just a slogan.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pipelines.&lt;/strong&gt; The isolation rule is simple: a pipeline can act only on resources in its own bundle. The subtle part is where the pipeline&amp;rsquo;s &lt;code&gt;bundle_id&lt;/code&gt; comes from, because a pipeline must never be able to vouch for itself. The obvious approach puts a &lt;code&gt;bundle_id&lt;/code&gt; claim in the CI identity token and lets the cloud trust it. But if the repo or workflow file can assert its own bundle, a compromised repo can claim to be any bundle. The fix is a small &lt;strong&gt;token broker&lt;/strong&gt; between CI and the cloud:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;diagram-broker.png&#34; alt=&#34;Token broker: the CI identity is checked against the registry and signing rules, then short-lived credentials carrying the bundle attributes are issued&#34;&gt;&lt;/p&gt;
&lt;p&gt;The attributes are decided by the &lt;strong&gt;registry&lt;/strong&gt;, never by the caller. The rule that each repo maps to exactly one bundle is what the broker trusts. Putting &lt;code&gt;snapshot_id&lt;/code&gt; in the session (snapshots are covered in the supply-chain section below) means every API call in your audit logs carries the snapshot that made it, so &amp;ldquo;what deployed this?&amp;rdquo; has a direct answer.&lt;/p&gt;
&lt;p&gt;That makes the registry and the token broker the most sensitive systems in the design. Whoever can change them can move a repo into another bundle or mint any bundle&amp;rsquo;s credentials. Where I worked, they were treated as super-admin systems, and only a small set of people had access to them.&lt;/p&gt;
&lt;p&gt;If you can&amp;rsquo;t build a broker yet, generate one role or machine identity per bundle from the registry, all from one template, and make each one trust only that bundle&amp;rsquo;s repos. You still get an identity per bundle, a machine writes it instead of a person, and a compromised repo can&amp;rsquo;t borrow another bundle&amp;rsquo;s identity.&lt;/p&gt;
&lt;h2 id=&#34;distributed-by-design&#34;&gt;Distributed by design&lt;/h2&gt;
&lt;p&gt;The attributes and permissions are the mechanism. The point is the &lt;strong&gt;operating model&lt;/strong&gt;: management is distributed, not centralised. The centre sets a few rules that hold everywhere, and the owning teams make every other decision.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Decision&lt;/th&gt;
&lt;th&gt;Who makes it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What services exist, and which bundle each belongs to&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Owning team&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who gets which permissions inside the bundle, including outside reviewers&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Owning team&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When to take a dependency update or ship a release&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Owning team&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which other bundles may call this one&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Owning team&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The attribute vocabulary, manifest schema, registry and templates&lt;/td&gt;
&lt;td&gt;Platform team&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The guardrails every bundle must satisfy&lt;/td&gt;
&lt;td&gt;Central security&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quarterly review of each bundle&amp;rsquo;s permissions and policies&lt;/td&gt;
&lt;td&gt;Audit team&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Four practices make this work:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Self-service creation.&lt;/strong&gt; Teams create their own bundles. Nobody files a ticket with a central team to get one, and the automated guardrails are what a new bundle has to pass.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Policy as code.&lt;/strong&gt; The centre writes checks, such as &amp;ldquo;every repo belongs to exactly one bundle&amp;rdquo; and &amp;ldquo;production bundles must declare a compliance class&amp;rdquo;, and a machine applies them to every manifest. People review the rules, and the machine checks every manifest against them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Visibility without control.&lt;/strong&gt; The registry gives the centre a complete inventory of what exists, who owns it and what depends on what. It sees everything and manages almost nothing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Quarterly audit.&lt;/strong&gt; Every quarter, the audit team reviews the permissions and policies of each bundle. Distributed ownership still needs an independent check, and this is that check on a fixed cycle.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Central rule-writing scales with the number of &lt;strong&gt;rules&lt;/strong&gt;, which stays roughly constant, not with the number of &lt;strong&gt;services&lt;/strong&gt;, which keeps growing. The quarterly audit is the one central task that touches every bundle, and it&amp;rsquo;s a scheduled review, not a ticket queue in front of every change.&lt;/p&gt;
&lt;h2 id=&#34;the-supply-chain-half-deploy-snapshots-not-branches&#34;&gt;The supply-chain half: deploy snapshots, not branches&lt;/h2&gt;
&lt;p&gt;Bundles answer &lt;em&gt;what can this code touch?&lt;/em&gt; They don&amp;rsquo;t answer &lt;em&gt;what code is this, exactly?&lt;/em&gt; For that, the organisation used an idea I think is under-appreciated: the &lt;strong&gt;dependency snapshot&lt;/strong&gt;. It&amp;rsquo;s an immutable, fully resolved record of everything a service is built from: its own source revision, every third-party package (direct and transitive) at an exact version, base images by digest, build tooling, and the published artifacts of &lt;strong&gt;other bundles&lt;/strong&gt; it depends on.&lt;/p&gt;
&lt;p&gt;A snapshot never changes. &lt;strong&gt;Any change to any input creates a new snapshot.&lt;/strong&gt; It isn&amp;rsquo;t &amp;ldquo;the lockfile, updated&amp;rdquo;. It&amp;rsquo;s a new, numbered, permanent object, and that object is the unit your pipeline deploys.&lt;/p&gt;
&lt;p&gt;None of the parts are new. A snapshot brings together lockfiles for each package ecosystem, container images pinned by digest, a software bill of materials (SBOM) listing every component, and build provenance that records how the artifact was produced, as described by 
&lt;a href=&#34;https://slsa.dev&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;SLSA&lt;/a&gt;. What&amp;rsquo;s new is treating that whole set as one registered, immutable release.&lt;/p&gt;
&lt;p&gt;When a bundle depends on another bundle&amp;rsquo;s service, that dependency is pinned in the snapshot like any other package. Changes ripple, but only as new snapshots, each going through its own pipeline:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;diagram-ripple.png&#34; alt=&#34;Ripple: one upstream release creates new snapshots in downstream bundles, each through its own pipeline&#34;&gt;&lt;/p&gt;
&lt;p&gt;Two things follow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Upstream releases never silently change your production.&lt;/strong&gt; Your running snapshot still says &lt;code&gt;1.4.1&lt;/code&gt; until a new snapshot with &lt;code&gt;1.4.2&lt;/code&gt; goes through your pipeline. Dependencies move as published artifacts, so no bundle needs credentials into another&amp;rsquo;s.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Impact analysis becomes a query.&lt;/strong&gt; The day a critical library vulnerability is announced, &amp;ldquo;which production services contain it, at which version, and who owns them?&amp;rdquo; becomes a registry query instead of a scramble. Rollback means redeploying the previous snapshot, which already passed the pipeline.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Two more controls sit on top of snapshots. The first is a promotion gate. A new snapshot is always created, but it reaches production only after tests, a policy or human approval, and a cooldown for brand-new third-party releases. Many public package ecosystems pull malicious releases shortly after they&amp;rsquo;re found, so a short wait buys detection time. Security patches use the same pipeline with a shorter gate and no bypass.&lt;/p&gt;
&lt;p&gt;The second is raising privilege stage by stage, according to how much you trust the code running:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;diagram-pipeline.png&#34; alt=&#34;Pipeline: build and test get no cloud credentials, attest holds the signing key, staging and prod get scoped deploy credentials&#34;&gt;&lt;/p&gt;
&lt;p&gt;Installing and testing third-party packages is where a malicious dependency would execute, so those stages get no cloud or deploy credentials. They get only what they need to run: read access to the package and image registries they pull from. The attest stage records the build&amp;rsquo;s provenance and signs it, with tools such as 
&lt;a href=&#34;https://www.sigstore.dev&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Sigstore&lt;/a&gt; or 
&lt;a href=&#34;https://in-toto.io&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;in-toto&lt;/a&gt;. Stages that do have credentials handle only output whose signature and provenance have been verified.&lt;/p&gt;
&lt;h2 id=&#34;guardrails-the-rules-owners-cant-override&#34;&gt;Guardrails: the rules owners can&amp;rsquo;t override&lt;/h2&gt;
&lt;p&gt;Owners are free inside their bundle. A few organisation-level deny policies sit above that and can&amp;rsquo;t be changed from inside it. They&amp;rsquo;re the only part the centre enforces directly. One example shows the idea.&lt;/p&gt;
&lt;p&gt;Any employee can create a &lt;strong&gt;personal bundle&lt;/strong&gt; for themselves, to experiment, learn or prototype. Whatever its owner configures, nothing in a personal bundle may deploy to production:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-plaintext&#34; data-lang=&#34;plaintext&#34;&gt;DENY  any action in production
  WHEN caller is a pipeline AND caller.bundle_type != &amp;#34;team&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The rule says &amp;ldquo;not &lt;code&gt;team&lt;/code&gt;&amp;rdquo; rather than &amp;ldquo;is &lt;code&gt;personal&lt;/code&gt;&amp;rdquo;, so a pipeline with a missing or misspelled attribute is blocked instead of slipping through. &lt;strong&gt;Allow-list the value you want, and don&amp;rsquo;t deny-list the value you fear.&lt;/strong&gt; It also targets &lt;em&gt;pipelines&lt;/em&gt;, not every caller. Human sessions carry &lt;code&gt;team&lt;/code&gt; rather than &lt;code&gt;bundle_type&lt;/code&gt;, and a rule written too broadly would lock out the engineers who need to read production.&lt;/p&gt;
&lt;h2 id=&#34;what-a-compromise-looks-like&#34;&gt;What a compromise looks like&lt;/h2&gt;
&lt;p&gt;Suppose &lt;code&gt;gateway-client 1.4.2&lt;/code&gt; turns out to be malicious.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;At build time,&lt;/strong&gt; it ran without cloud or deploy credentials. It could read from the package registries, but it couldn&amp;rsquo;t change anything outside the build.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;At runtime,&lt;/strong&gt; it runs as the &lt;code&gt;checkout-auth&lt;/code&gt; service. It can read that bundle&amp;rsquo;s own secrets, and that&amp;rsquo;s the residual risk. It can&amp;rsquo;t read &lt;code&gt;refunds&lt;/code&gt;, reach another bundle&amp;rsquo;s data, relabel itself into another bundle, or carry a personal bundle&amp;rsquo;s credentials into production.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;For the response,&lt;/strong&gt; a registry query lists every other snapshot containing &lt;code&gt;gateway-client 1.4.2&lt;/code&gt; within minutes. Audit logs show what each snapshot touched. The owning teams roll back by redeploying the previous snapshot, without waiting for the centre.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It can still hurt one service. The difference is that you lose one service rather than everything the team owns, and you can find the rest quickly.&lt;/p&gt;
&lt;h2 id=&#34;why-this-still-matters&#34;&gt;Why this still matters&lt;/h2&gt;
&lt;p&gt;The attacks this model limits keep making the news:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Build systems are targets.&lt;/strong&gt; In the SolarWinds compromise (2020), attackers broke into the vendor&amp;rsquo;s build process and shipped a backdoor inside a signed product update. Signing didn&amp;rsquo;t help, because the malicious code was signed too. The product also ran with broad access inside customer networks, so the backdoor inherited that reach. Both halves matter: protect the build, and limit what any one service can touch.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One library can hide everywhere.&lt;/strong&gt; The xz-utils backdoor (
&lt;a href=&#34;https://nvd.nist.gov/vuln/detail/CVE-2024-3094&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CVE-2024-3094&lt;/a&gt;) was planted in a widely used compression library and caught by chance before it reached most stable Linux distributions. Every team&amp;rsquo;s first question was &amp;ldquo;are we running it, and where?&amp;rdquo; With snapshots, that&amp;rsquo;s a query.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CI jobs run other people&amp;rsquo;s code next to your secrets.&lt;/strong&gt; In March 2025 the widely used CI action &lt;code&gt;tj-actions/changed-files&lt;/code&gt; was compromised (
&lt;a href=&#34;https://nvd.nist.gov/vuln/detail/CVE-2025-30066&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CVE-2025-30066&lt;/a&gt;). Its version tags were repointed to malicious code that printed CI secrets into build logs. Pinning to an immutable version would have avoided the swap, and per-bundle credentials would have capped what a leaked secret could reach.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of these is fixed by choosing a role model. Each is smaller when credentials are scoped to one service and every deploy is a known, immutable set of inputs. None of it needs a large company&amp;rsquo;s internal tooling either. Scoped identities, pinned dependencies and a record of who owns what are things a team can start on at any size.&lt;/p&gt;
&lt;h2 id=&#34;back-to-the-question&#34;&gt;Back to the question&lt;/h2&gt;
&lt;p&gt;Team roles or per-repo roles? Neither. Put everything a &lt;strong&gt;service&lt;/strong&gt; needs into one logical container and describe it once in a manifest. Enforce it with &lt;strong&gt;attributes&lt;/strong&gt; from sources the caller can&amp;rsquo;t forge, and with per-resource permissions on top. Deploy &lt;strong&gt;snapshots&lt;/strong&gt;, so you know what&amp;rsquo;s running and can find every affected service when something goes wrong. Let &lt;strong&gt;owners run everything inside&lt;/strong&gt; their bundle, keep the centre to a few guardrails nobody inside can undo, and audit each bundle on a fixed cycle.&lt;/p&gt;
&lt;p&gt;You get the blast radius of per-repo roles and the operating cost of team roles. The centre stops being a bottleneck because it writes and enforces a handful of rules, instead of hand-managing access for thousands of services.&lt;/p&gt;
&lt;p&gt;The thing that stayed with me is that security scaled by setting a few shared rules and letting every owning team operate freely within them, rather than putting people and process in front of every change. If you&amp;rsquo;re facing the same trade-off, start there: not &amp;ldquo;which role model?&amp;rdquo;, but &amp;ldquo;who should be making each of these decisions?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;d like to hear how you&amp;rsquo;re handling it. If you&amp;rsquo;ve found a different answer to the original question, I&amp;rsquo;m interested.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
