Quick revision
The short answer
I would combine three sources. Build info and git info tell us which version and commit each running instance is on. An SBOM, a software bill of materials listing every library in the artifact, is generated in every build and, in Spring Boot 3.3 and later, can be served by the sbom actuator endpoint (check your version). A central service catalog collects both from every service, links SBOMs to vulnerability scanning, and answers 'which services run library X version Y' in minutes. The platform starter and build templates make all of it mandatory, so nobody has to remember.
What to remember
In this answer, we combined three sources to describe what runs in each service. Build info and git info identify each running instance, an SBOM generated in every build lists every library, and recent Spring Boot versions can serve it through the sbom endpoint. A central catalog and vulnerability analyser join SBOMs with deployment history, so we can find affected services within the hour, and the platform starter and build templates make all of it the default for every team.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would combine three sources. Build info and git info tell us which version and commit each running instance is on. An SBOM, a software bill of materials listing every library in the artifact, is generated in every build and, in Spring Boot 3.3 and later, can be served by the sbom actuator endpoint (check your version). A central service catalog collects both from every service, links SBOMs to vulnerability scanning, and answers 'which services run library X version Y' in minutes. The platform starter and build templates make all of it mandatory, so nobody has to remember.
Why this question is asked
Audit and supply-chain rules now ask questions that used to be hard: which exact software runs in each service, which services include a vulnerable library, and can we prove it. The Log4Shell incident in December 2021 showed the cost of not knowing: many companies spent days just finding where Log4j 2 was running. Interviewers ask this at the most senior level because the answer combines tooling knowledge with a company-wide design and the authority to make it mandatory. In this answer, we will recap what each data source tells us, connect them into a pipeline, see how the catalog answers the questions auditors and security teams ask, and make the whole thing a default rather than a request.
1A Quick Recap of the Data Sources
Spring Boot already gives us two pieces of identity. The build-info goal of the spring-boot-maven-plugin (or buildInfo() in Gradle) writes META-INF/build-info.properties with the artifact, version and build time, and a git commit id plugin writes git.properties with the branch and commit. Boot's info contributors expose both in /actuator/info. That tells us which build of our own code a running instance is.
It does not tell us what is inside the build. A typical Spring Boot jar contains 100 to 200 third-party libraries. An SBOM lists them all, with names, versions, licences and hashes, in a standard format such as CycloneDX or SPDX. Spring Boot 3.3 added support for SBOMs: the build generates a CycloneDX file with the official CycloneDX plugin, and an sbom actuator endpoint can serve it from the running application. Check your Boot version for how the plugin is configured and where the file is expected, since this area is still evolving.
Notice the purl field, a package URL that identifies each library in a standard way. Vulnerability databases use the same identifiers, which is what makes automatic matching possible. The versions shown are only examples.
2Why an Endpoint Alone Is Not Enough
It is tempting to say: every service exposes /actuator/sbom, so we can always ask. At company scale that does not hold. Asking 600 services, each with many pods, during an incident is slow and fragile, the actuator endpoints should not be widely reachable anyway, and a service that is down cannot answer. Auditors also want history: what was running last March, not only what runs now.
So the endpoint is useful for verification, proving that a running instance carries the SBOM we expect, but the system of record must be central. The SBOM is generated in the build, stored with the artifact, and registered in a catalog before the artifact can be deployed.
3Connecting the Pieces Into a Pipeline
The design links four steps. The build produces the jar, build info, git info and the SBOM together, and signs them, so the SBOM is tied to that exact artifact. The CI pipeline publishes the image and uploads the SBOM to an SBOM store with a vulnerability analyser, such as OWASP Dependency-Track, keyed by service and version. The deployment system records which version went to which environment and cluster. The service catalog, for example Backstage or an internal equivalent, joins these: for each service it knows the owner, the versions running in each environment, and through the SBOM, every library in each version.
- Build creates jar, build info, git info and SBOMin the same run, signed together
- CI uploads SBOM to the analyserkeyed by service and version
- Deploy records version per environmentcatalog knows what runs where
- New CVE published for a library
- Analyser matches the CVE to SBOM componentsby package URL and version range
- Is an affected version running in production?YesAlert owning teams with service listNoTrack for next release
6 steps in order. Play them, or step through them one at a time.
4Answering the Real Questions
With this in place, the questions auditors and security teams ask become queries. Which services contain jackson-databind older than a fixed version, and are any of them in production? The analyser finds the SBOMs that match, and the catalog filters them to versions currently deployed. What exact software ran in the payments service on 1 March? The deployment history gives the version, and the stored SBOM for that version gives every component. Is the running instance really the build we think? We compare the commit from /actuator/info, or the image digest from the cluster, with the catalog record.
The difference this makes is large. Without it, finding every affected service after a critical vulnerability takes days of searching repositories and asking teams, and the answer is still uncertain. With it, the first list is ready within the hour, sorted by owner and environment, and the remaining time goes into patching.
| Question | Answered by |
|---|---|
| Which build runs on this pod? | /actuator/info, image digest |
| Which libraries are in that build? | SBOM stored for that version |
| Which services run library X at version Y? | Analyser query joined with catalog |
| What ran in production on a past date? | Deployment history plus stored SBOM |
| Who must fix it? | Catalog owner field |
5Making It Mandatory Without Making It Painful
None of this works if half the services skip it. So the requirements go into the defaults. The shared build templates and parent POM or Gradle convention plugin turn on build-info, the git plugin and SBOM generation for every service. The platform starter exposes info and sbom on the management port to authorised callers. The CI template uploads the SBOM and refuses to publish an image when it is missing, and the deployment pipeline refuses to deploy a version the catalog does not know.
The reasoning a senior engineer uses here is that compliance work should cost teams nothing beyond upgrading the shared templates. Teams that build their own pipelines are allowed to, but they must meet the same checks, and the fleet report shows who is missing data. I would also name an owner for the catalog and the analyser, usually the platform or security engineering group, so the data stays accurate as the company changes.
6Follow-up questions
Should the SBOM be generated from the source or from the final image?
Both have a place. The build-time SBOM from the CycloneDX plugin is exact for the Java dependencies and links to our source. An image scan adds the operating system packages and the JDK in the base image. I would generate both and store them together, because a vulnerability can be in either layer.
How do you handle libraries shaded into other jars?
Shaded or repackaged libraries can hide from dependency-based SBOMs because they are not declared dependencies. Image and binary scanners that look inside jars catch many of these, which is another reason to scan the final artifact as well as the build graph.
Is exposing /actuator/sbom a security risk?
It reveals exactly which library versions we run, which helps an attacker choose an exploit. It should be available only on the management port to authenticated operators and automation, never on the public listener.
7Conclusion
In this answer, we combined three sources to describe what runs in each service. Build info and git info identify each running instance, an SBOM generated in every build lists every library, and recent Spring Boot versions can serve it through the sbom endpoint. A central catalog and vulnerability analyser join SBOMs with deployment history, so we can find affected services within the hour, and the platform starter and build templates make all of it the default for every team.
Open with
I would answer it with three sources joined centrally. First, identity per instance: build info and git info, generated in the build and exposed in /actuator/info, tell me which version and commit each pod runs, and the image digest confirms it.
Then, if they want more
Second, contents: every build generates an SBOM, a CycloneDX list of all libraries with package URLs, and recent Spring Boot versions, from 3.3, can serve it through the sbom actuator endpoint, though I would check the exact setup for our version. Third, the central view: I would not rely on asking hundreds of services at runtime.
CI uploads each SBOM to a vulnerability analyser like Dependency-Track, the deployment system records which version runs where, and a service catalog joins them with owners.
Then when a new CVE appears, the analyser matches it to components by package URL and the catalog filters to what is deployed, so we have the list of affected services and owners within the hour instead of days, and auditors get history for any date.
To make it company-wide, I would build it into the parent build templates, the platform starter and the CI and deploy pipelines, so missing SBOMs block a release, and name an owner for the catalog.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Spring Boot 3.3
- 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, Actuator
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 "Supply-chain and audit requirements now ask what exact software runs in each service....": https://scrivio-interview-library.netlify.app/spring-boot/actuator/ae384edd01/