Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Container base images and buildpacks are a large part of your security exposure. How would you set long-term ownership and patching for images across hundreds of services?

I would make one platform team the owner of a small set of approved base images or buildpack builders, and make patching automatic: when a base image is patched, every service that uses it is rebuilt, tested and redeployed by a pipeline, not by a ticket. Images are scanned in CI and at admission, and deploys with critical vulnerabilities are blocked under an agreed exception process; images are kept small to reduce what can be vulnerable; and the age of running images is tracked as a metric, because an image that has not been rebuilt in 90 days is a risk no matter how clean it was when built.

Why this question is asked

Across hundreds of services, most vulnerabilities reported by scanners are not in our code but in the operating system packages, the JRE and the libraries baked into images. Each service team sees a long list of findings it did not cause and cannot easily fix, so findings pile up. Interviewers ask this leadership question because the solution is about ownership and automation over years, not a scanning tool. In this answer, we will see why image security fails without clear ownership, set up ownership, make rebuilds automatic, scan and gate deploys, reduce the attack surface, and measure image age.

1Why Image Security Fails Without Ownership

A container image has three parts with different owners in practice: the base OS and JRE, the application's dependencies, and the application code. When a CVE (a published vulnerability) appears in glibc or OpenSSL, it affects every image built on that base. If every team owns its own base image, the fix requires hundreds of teams to notice, edit, rebuild, test and deploy. Some do it in a day, many in a month, and some never, because the service is stable and nobody touches it.

So the scanner reports grow, teams learn to ignore them, and the organisation has no clear answer to "how many of our running containers are exposed to this CVE, and when will it be zero?" The fix is to separate responsibilities: the platform owns what is shared, teams own what is theirs, and automation connects the two.

2A Platform Team Owns the Approved Bases

The platform team publishes a small catalogue: for example one JRE base image per supported Java LTS version, or one buildpack builder, plus a minimal base for native images. Each has a named owner, a published patch policy (critical fixes within 48 hours, others weekly), and a version scheme. Service teams must build on one of these, which the admission controller enforces once adoption is high.

Keeping the catalogue small is the point. Three bases are easy to patch, test and explain; fifteen are not. Teams that need something special, such as extra native libraries, ask for an addition or an approved variant rather than building their own from a random public image. The service team still owns its application dependencies, such as an outdated Jackson or Netty, with Renovate or Dependabot opening upgrade pull requests and the same scanning applied.

Who owns which part of an image
Part of the imageOwnerHow it is patched
OS packages, CA certificatesplatform teamnew base or run image, fleet rebuild or rebase
JREplatform teamnew base or builder version, fleet rebuild
Application dependenciesservice teamRenovate pull requests, normal release
Application codeservice teamnormal release
Scanning and admission policysecurity with platformpolicy as code, reviewed quarterly

3Rebuild and Redeploy Automatically

Patching a base image helps nobody until services are rebuilt on it and redeployed. So when the platform publishes a patched base, a pipeline finds every service built on the previous version, triggers its build, runs its normal test suite, and deploys it through the normal rollout with health checks and automatic rollback. With buildpacks, OS-level fixes can often use rebase instead of a full rebuild, which is faster still. Teams are informed, not asked, and only failures need their attention.

This requires that every service can be rebuilt and deployed without a human, which is a healthy requirement in itself. Services that cannot, because their tests are flaky or their pipeline is broken, show up immediately, and fixing them becomes part of the programme. Without this step, the platform team's patch is just one more image nobody uses.

Step throughFrom a new CVE to patched production
  1. CVE published in OS or JRE
  2. Platform patches the approved basewithin 48 hours for critical
  3. Pipeline finds services on the old basefrom image metadata
  4. Rebuild or rebase, run each service's tests
  5. Tests pass?
    YesRoll out with health checksNoTicket to the owning team
  6. Track images still on the old baseuntil zero

6 steps in order. Play them, or step through them one at a time.

4Scan Images and Gate Deploys

We scan images twice: in CI when they are built, and continuously in the registry, because new CVEs are published every day against images that were clean when they were built. At deploy time, an admission policy blocks images with critical vulnerabilities that have a fix available, images not built on an approved base, and unsigned images.

A gate needs a release valve, or teams will find a way around it. We agree a short, time-limited exception process: the team records why the finding does not apply or cannot be fixed yet, security approves, and the exception expires after, say, 30 days. We also tune the gate to what is actionable. Blocking on every medium finding, or on findings without a fix, stops deploys without making anything safer, and blocked deploys include the ones that carry fixes.

5Keep Images Small and Measure Image Age

Every package in an image is something that can have a CVE. A JRE image without a shell, package manager or compilers, a distroless or minimal base, or a jlink runtime with only the modules the application uses, can have far fewer components than a general-purpose OS image. Fewer components mean fewer findings, faster scans and a smaller attack surface, at the cost of harder debugging, which we solve with ephemeral debug containers rather than shells in production images.

Finally, we measure what we want to improve. The most useful single metric is the age of running images: for each running container, how long ago was its image built, or which base version does it use. A dashboard showing that 95 percent of production containers run images under 30 days old, and listing the services above 90 days, tells us more about real exposure than any count of findings. We add mean time to patch a critical CVE across the fleet and report both to leadership quarterly.

6Follow-up questions

What if a service team's tests fail on the automatic rebuild?

The rollout stops for that service and a ticket goes to the owning team, with the failing build attached. Most failures are real regressions or flaky tests, both worth fixing. The team gets a deadline that matches the CVE's severity, and the platform tracks it, so one broken pipeline cannot hold the fleet back but also cannot hide.

Should we block deploys for every critical vulnerability?

For critical findings with a fix available, yes, with a time-limited exception path. Blocking on findings without a fix only stops all deploys, including ones that carry other fixes. We also consider reachability where tooling allows, since a critical CVE in a library function the service never calls is lower risk.

How do we handle images for services nobody actively maintains?

Those are the highest risk, because nobody will rebuild them. The automatic rebuild pipeline covers them as long as they still build and their tests pass; if not, the age metric exposes them and an owner must be assigned or the service retired. Every running service needs a named owning team in the service catalogue.

7Conclusion

In this answer, we set long-term ownership for image security across hundreds of services. A platform team owns a small catalogue of approved base images or builders with a published patch policy, a pipeline automatically rebuilds, tests and redeploys services when a base is patched, images are scanned in CI and continuously and deploys with critical fixable vulnerabilities are blocked under a time-limited exception process, images are kept small to reduce exposure, and the age of running images is tracked as the key metric.

What to say in the interviewAbout 90 seconds aloud

Open with

I would split ownership clearly. A platform team owns a small catalogue of approved base images or buildpack builders, one per supported Java LTS, with a published patch policy such as critical fixes within forty-eight hours.

Then, if they want more

Service teams must build on those, which we enforce at admission once adoption is high, and they own their own dependencies, helped by Renovate.

The key is that patching a base is useless until services are rebuilt, so I would automate it: when a base is patched, a pipeline finds every service on the old version, rebuilds it, or rebases it with buildpacks, runs its tests and rolls it out with health checks, and only failures go to the team as tickets.

Images get scanned in CI and continuously in the registry, because new CVEs appear against old images, and admission blocks images with critical vulnerabilities that have a fix, unsigned images and unapproved bases, with a time-limited exception process so the gate does not get bypassed.

I would push for small images, minimal or distroless bases, so there is less to be vulnerable. And I would measure the age of running images: what share of production containers are under thirty days old, which are over ninety, and the mean time to patch a critical CVE fleet-wide, reported every quarter.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Boot reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Container base images and buildpacks are a large part of your security exposure. How...": https://scrivio-interview-library.netlify.app/spring-boot/packaging-and-deployment/6b8a62f88b/