Kubernetes Discovery
Kubernetes cryptographic discovery is the structured identification and correlation of cryptographic assets and their use across a Kubernetes environment—not merely a scan of container images. It combines cluster and workload metadata with image provenance, configuration references, certificate and issuer relationships, ingress and service-mesh controls, node and control-plane boundaries, and external key-management dependencies. The objective is an inventory that explains where cryptography is configured, which service or image uses it, what scope and lifetime it has, and which evidence can be collected without exposing secret material. This approach supports risk assessment, certificate and key lifecycle work, and future migration planning.1234
- Kubernetes discovery must correlate cluster objects, workloads, images, services, configuration, and cryptographic dependencies rather than treating image scanning as a complete answer.
- Discovery should preserve namespace and cluster scope, distinguish metadata from keying material, and use RBAC-limited collection appropriate to the evidence required.
- Ingress, service meshes, mutual TLS, certificate issuers, policy-as-code, and generated proxy configuration can place cryptographic behavior outside application containers.
- A useful inventory records ownership, algorithm or protocol, certificate and key status, service relationships, image provenance, lifecycle signals, and collection limitations.
- Discovery findings are evidence for risk assessment and migration planning; they do not by themselves prove that a cryptographic object is vulnerable or that a control is effective.
What Kubernetes cryptographic discovery means
Kubernetes cryptographic discovery is the process of identifying cryptographic assets, protocols, configuration, and dependencies that protect communications, authenticate identities, establish keys, sign software, or protect stored information across a Kubernetes environment. The unit of analysis is broader than a container image: it includes the objects that schedule workloads, the services that connect them, the proxies and gateways that enforce communication policy, the certificates and issuers that establish identity, and the systems outside the cluster that manage keys or certificates. The result should be a correlated inventory, not an isolated list of strings found in files.12
This boundary matters because an orchestrator determines where containers run, pulls images from registries, monitors resource consumption and machine health, and may restart workloads on other hosts. Orchestrators may also provide cross-host networking and service discovery. A discovery process that records only the image therefore misses placement, service relationships, generated runtime configuration, and the possibility that cryptography is cited by infrastructure rather than application code.2
Scope: cluster, namespace, workload, and boundary
A Kubernetes discovery plan should state whether it covers one namespace, selected namespaces, or the entire cluster. Namespace scope is useful for assigning application ownership and reducing collection privileges; cluster scope is necessary for control-plane configuration, cluster-wide policy, node placement, shared ingress, service-mesh control planes, and other dependencies that can affect many namespaces. The inventory should preserve the scope of every observation rather than flattening all findings into a single environment-wide list.
The plan should also separate logical and physical boundaries. At the logical layer, record namespaces, workloads, services, ingress routes, policies, Secrets references, service accounts, and image identities. At the infrastructure layer, relate workloads to nodes and distinguish worker-node, control-plane, cluster-service, and external-system dependencies where the evidence permits. The cited evidence establishes that service-mesh control-plane components can run in separate pods, nodes, and associated clusters, while data-plane proxies can run as containers in the same pod as application containers. That distinction is directly relevant to ownership, collection location, and risk interpretation.
Short-lived workloads require temporal as well as spatial scope. A pod or proxy may disappear, restart on another host, or be replaced by a new replica. Consequently, a snapshot should retain observation time, workload identity, namespace, owning controller where available, image reference or digest where available, node association, and the configuration source that produced the observed state. A historical inventory can then distinguish an object that was absent from one that was never in scope.
A practical discovery sequence
Begin by defining the questions the inventory must answer. Examples include: which services terminate or initiate TLS; which workloads reference certificates or Secrets; which images contain cryptographic libraries or signing material; which issuer or authority is responsible for a certificate; which mesh policy establishes mutual TLS; and which external system supplies, wraps, rotates, or stores keys. The questions determine the least-privileged collection path and prevent broad extraction of data that is not needed.
- Establish cluster, namespace, time, and workload scope; record collection identity and authorization context.
- Collect object metadata and relationships: workload owners, images, services, ingress, policy objects, service accounts, Secrets references, certificate references, and node placement.
- Correlate image identity and provenance with the workload and service that actually deploys or invokes the image. Where available, retain release or build identifiers and SBOM context rather than treating a registry name as proof of contents.
- Map communication paths, including ingress and egress gateways, sidecar or other proxies, service-to-service connections, and external endpoints.
- Identify certificates, issuers, trust relationships, key-management integrations, and lifecycle signals such as validity, rotation, revocation, or replacement.
- Inspect generated configuration and runtime observations only when authorized, then reconcile them with declarative configuration and report discrepancies.
- Normalize findings into an inventory with evidence timestamps, scope, owners, relationships, and explicit unknowns; assess risk separately from collection.
Image analysis is one input, not the definition of Kubernetes discovery. Container security guidance describes images and runtimes as part of a broader technology stack, while SBOM guidance distinguishes pre-build, build-time, and post-build or analyzed SBOMs. Those distinctions support correlation: an image digest and SBOM can explain what contributed to an artifact, but Kubernetes metadata explains where the artifact was deployed, which service exposed it, which configuration it received, and which infrastructure cited cryptographic behavior.9
What the inventory should map
At the workload and image layer, record deployments, jobs, daemonized workloads, pods, containers, init containers, sidecars, image references, image digests, registries, and available SBOM or release-integrity evidence. The useful relationship is not simply “image contains library.” It is “image or generated artifact is deployed by this workload, in this namespace, behind this service or route, with these configuration references, and participates in this observed communication path.” Software-release integrity guidance recommends mechanisms that let acquirers verify legitimacy and detect tampering, including published cryptographic hashes and code-signing processes that address certificate renewal, rotation, revocation, and protection.8
At the configuration layer, inspect references rather than automatically reading values. Relevant references can include environment-variable sources, mounted configuration, certificate paths, trust-bundle references, issuer names, key-provider identifiers, and policy selectors. A reference is evidence of a dependency; it is not proof that the referenced object contains a private key, that the key is currently used, or that the configured policy is effective. Those distinctions should be represented as separate status fields.
At the ingress and service layer, map external entry points, internal services, egress paths, and termination or pass-through behavior. TLS 1.3 describes an authenticated key exchange whose completion produces session keys, cryptographic parameters, and communicating-party identities; its record layer is intended to provide confidentiality, integrity, order protection, and length concealment under stated assumptions. Discovery should therefore capture the endpoint role, negotiated or configured protocol evidence when available, certificate identity, trust or authentication mode, and the observation source, without claiming that a configuration alone proves negotiated behavior.6
At the service-mesh layer, map both planes. The control plane can provide service discovery and proxy configuration, automated key and certificate management, policy-definition APIs, telemetry collection, configuration ingestion, and inbound and outbound gateway management. Proxies can carry policies for session establishment, routing, authentication, and authorization, while the control plane can generate and maintain authentication certificates, update proxy policies, and monitor configuration as new proxies are generated or obsolete proxies are deleted. These generated and short-lived elements are central discovery targets because they may not appear in application source or a static image.5
For mutual TLS, record the identity model, certificate references, issuer or trust source, proxy or gateway location, policy selector, rotation evidence, and the services covered. Do not infer mutual authentication merely because a mesh is installed. TLS 1.3 supports both server-only and mutually authenticated operation, and the security properties depend on the handshake mode and assumptions. A finding should therefore distinguish “mTLS policy configured,” “certificate material referenced,” and “mutually authenticated exchange observed or otherwise evidenced.”65
At the certificate and issuer layer, inventory subject or service identity, issuer, validity period, algorithm and key type when exposed as metadata, trust relationship, renewal status, revocation status, and dependent services. Certificate assurance is affected by the freshness and availability of revocation information; certificates can also become invalid before natural expiration if the binding between subject and public key is negated. Discovery should flag missing, stale, or unavailable lifecycle evidence rather than treating an unexpired certificate as automatically trustworthy.7
At the storage and control-plane layer, map protection for data at rest, data in transit, and data in use where the authorized evidence supports it. Include etcd protection and control-plane boundaries as explicit discovery questions, but do not assert a protection mechanism unless the cited source set provides evidence of that mechanism in the environment. Likewise, external KMS, PKI, HSM, or certificate-management integrations should be recorded as dependencies with provider identity, interface or reference, key purpose, ownership, and lifecycle evidence when available. The inventory concept is consistent with key-management guidance that tracks owners, sponsors, status, and reporting without requiring disclosure of the key itself.
| Discovery layer | Examples to correlate | Useful evidence | Important limitation |
|---|---|---|---|
| Workloads and images | Pods, controllers, containers, init containers, image references, digests, SBOMs | Deployment metadata, image identity, artifact or SBOM context | Image contents do not prove runtime use |
| Configuration and policy | Secret references, certificate paths, trust bundles, selectors, policy-as-code | Object metadata, references, policy definitions, generated configuration | A reference does not prove that secret material is exposed or used |
| Ingress and services | Ingress and egress gateways, routes, services, TLS endpoints | Endpoint role, certificate identity, protocol or policy evidence | Configured TLS does not by itself prove negotiated behavior |
| Service mesh | Control plane, sidecars, proxies, mTLS policy, certificate automation | Proxy placement, policy, certificate references, observed connections | Mesh presence does not prove mutual authentication |
| Certificates and issuers | Subjects, issuers, validity, renewal, revocation, trust domains | Public certificate metadata and lifecycle status | Unexpired certificates may still have weakened assurance |
| External key management | KMS, PKI, HSM, certificate-management integrations | Provider or system reference, purpose, owner, lifecycle evidence | External authoritative state may not be visible through the cluster API |
RBAC-safe collection and interpretation
RBAC-safe collection means matching each discovery question to the narrowest authorized data source. Prefer object metadata, references, status fields, certificate public information, image identifiers, policy definitions, and audited runtime or network observations when those are sufficient. Avoid collecting Secret values or private key material merely to prove that a reference exists. If a control requires access to sensitive material, make that a separately approved operation with a documented purpose, access identity, retention rule, and review path.3
The distinction between metadata and material is not cosmetic. NIST key-management guidance states that key information requires protection and that additional protection is needed when such information exists outside a validated cryptographic module, including access control or encryption and integrity protection in an external database. A discovery system should therefore protect its own inventory, minimize replicated sensitive data, and clearly label whether a record contains metadata, public material, a reference, an observation, or secret keying material.
Use confidence and evidence states to avoid overclaiming. “Declared” can mean present in a manifest or policy; “referenced” can mean an object points to a resource; “observed” can mean runtime or network evidence showed behavior; “validated” can mean an authorized check confirmed a relationship or lifecycle state. Unknown, inaccessible, stale, and contradictory should be first-class outcomes. This is especially important for generated configuration, replicas that change over time, certificate rotation, and external KMS calls that may not be visible from the Kubernetes API alone.
Correlation, risk, and migration use
The inventory becomes useful when it connects cryptographic objects to business and technical dependencies: certificate to issuer, issuer to trust domain, trust domain to service, service to ingress or mesh route, route to workload, workload to image, image to build or SBOM evidence, and key reference to external management system. Ownership, application, algorithm, expiration, and status are the kinds of metadata used for key and certificate inventory management. Correlation also makes duplicate certificates, orphaned references, unowned trust stores, and cryptography outside the expected boundary visible.3
Risk assessment should remain separate from discovery. A cryptographic inventory identifies reliance and exposure; it does not by itself establish exploitability, policy failure, compromise, or migration priority. For quantum-readiness work, the cited guidance urges organizations to create roadmaps, conduct inventories and risk assessments, and engage vendors because migration takes time. It also notes that public-key systems such as RSA, ECDH, and ECDSA may need updating, replacement, or significant alteration, while the cited preliminary draft narrows one demonstration’s vulnerable-algorithm scope to public-key signature and key-establishment schemes and does not treat symmetric primitives and hash functions as comparably affected in that project.41
Record protocol and algorithm evidence at the level actually observed. A TLS policy, certificate algorithm, library string, or image component can be a useful indicator, but these are not interchangeable facts. Crypto-agility guidance concerns operational mechanisms for changing algorithms, applications, protocols, hardware, firmware, and infrastructure while preserving security and ongoing operations. Kubernetes discovery should consequently preserve configuration provenance, deployment relationships, rotation capability, and dependencies that would make a change safe or difficult.10
Limitations and reporting requirements
No single Kubernetes API view can be assumed to reveal every cryptographic operation. Application libraries may construct keys dynamically; sidecars and gateways may terminate or originate channels; generated proxy configuration may change with workload churn; external KMS or PKI systems may hold the authoritative lifecycle state; and an image or SBOM may describe components without proving runtime use. These are limitations of the evidence path, not reasons to silently fill gaps with assumptions.295
Every record should therefore retain source type, observation time, namespace or cluster scope, workload and service identifiers, configuration provenance, collection authorization context, and an explanation of what was not accessible. Reports should distinguish absence of evidence from evidence of absence. They should also preserve document and source status when external guidance is used: for example, the cited NIST SP 1800-38B material is identified as a preliminary draft, whereas the cited TLS, key-management, container-security, service-mesh, and SBOM materials have different publication statuses and versions. Such status matters when findings are used to set policy or migration commitments.
Conclusion
Kubernetes cryptographic discovery is a scope-aware, relationship-based inventory practice. It connects cluster and namespace metadata to workloads, images, generated configuration, ingress, service meshes, certificates, policies, nodes, control-plane boundaries, and external key-management systems. The safest implementation collects the least sensitive evidence that answers the question, preserves uncertainty and time, and separates declared configuration from observed behavior. Used this way, discovery provides a defensible foundation for certificate and key lifecycle management, cryptographic risk assessment, and migration planning without confusing generic container scanning with an environment-wide view.123
Frequently asked questions
How is Kubernetes discovery different from generic container scanning?
Generic container scanning primarily analyzes an image, its packages, or its build artifacts. Kubernetes cryptographic discovery adds deployment and runtime context: namespace and cluster scope, workload and service relationships, image placement, configuration references, ingress, service-mesh proxies, generated policy, certificates, issuers, and external key-management dependencies. An image finding does not prove that a component performs cryptographic work in the deployed environment, and Kubernetes metadata does not replace image or SBOM analysis.
Should discovery read Kubernetes Secret values?
Not by default. A reference to a Secret can establish a dependency without exposing its value. Key inventory guidance supports recording metadata such as owner, type, algorithm, application, and expiration rather than the key itself. Access to secret material should be separately authorized, minimized, protected, and retained only for a documented purpose.3
Does a service mesh prove that mutual TLS is enabled?
No. A service mesh can provide certificate management, proxy configuration, policy APIs, gateways, and telemetry, but TLS 1.3 supports both server-only and mutually authenticated modes. Discovery should identify the configured policy, certificate and trust references, proxy or gateway location, and any evidence of observed mutual authentication instead of inferring it from mesh presence alone.56
What should be recorded for a certificate?
Record the identity or subject, issuer, validity and renewal information, algorithm and key type when available as metadata, trust relationship, dependent service or route, and revocation evidence. An unexpired certificate is not automatically sufficient: revocation information can be stale or unavailable, and a certificate can lose assurance before natural expiration if its subject-to-public-key binding is negated.7
Sources
- 1Migration to Post-Quantum Cryptography: Quantum Readiness: Cryptographic Discovery
National Institute of Standards and Technology · preliminary draft · NIST SP 1800-38B Preliminary Draft
Accessed July 24, 2026 - 2Application Container Security Guide
National Institute of Standards and Technology · final · NIST SP 800-190
Accessed July 24, 2026 - 3Recommendation for Key Management: Part 1 – General
National Institute of Standards and Technology · final · NIST SP 800-57 Part 1 Rev. 5
Accessed July 24, 2026 - 4Quantum-Readiness: Migration to Post-Quantum Cryptography
CISA, NSA, and NIST · final · Joint Quantum-Readiness Fact Sheet
Accessed July 24, 2026 - 5Implementation of DevSecOps for a Microservices-based Application with Service Mesh
National Institute of Standards and Technology · final · NIST SP 800-204C
Accessed July 24, 2026 - 6The Transport Layer Security (TLS) Protocol Version 1.3
Internet Engineering Task Force · proposed standard · RFC 8446
Accessed July 24, 2026 - 7Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile
Internet Engineering Task Force · proposed standard · RFC 5280
Accessed July 24, 2026 - 8Secure Software Development Framework (SSDF) Version 1.1
National Institute of Standards and Technology · final · NIST SP 800-218
Accessed July 24, 2026 - 9Minimum Elements for a Software Bill of Materials (SBOM)
Cybersecurity and Infrastructure Security Agency · final · CISA SBOM Minimum Elements 2025
Accessed July 24, 2026 - 10Considerations for Achieving Crypto Agility: Strategies and Practices
National Institute of Standards and Technology · final · NIST CSWP 39 Update 1
Accessed July 24, 2026