Why Kafka security hardening is harder than enabling a listener
Most Kafka clusters that work in production were not hardened on purpose. They were stood up with a plaintext listener, clients connected, and security was deferred. The reader's task is to close that gap without breaking the producers, consumers and tools that already depend on the cluster. The first thing to understand is that Kafka security is optional by default. Clients, brokers and tools can talk over unencrypted, unauthenticated listeners, and a single cluster can expose secured and unsecured listeners side by side. Hardening is therefore not one switch to flip. It is a set of decisions about each listener, how each client authenticates, what each principal may do, who holds super user rights, and how Connect, the admin tools and the audit trail are protected.
The difficulty comes from several trust boundaries that do not share one configuration. Client-to-broker traffic, broker-to-broker replication, controller communication in KRaft mode, Kafka Connect workers and their REST API, and command-line admin tools each need their own listener, certificate and credential handling. Authorization adds a second layer. In KRaft clusters the StandardAuthorizer stores ACLs in the cluster metadata log, so access rules replicate through the same mechanism as cluster state and must be reviewed as part of that state. Unless allow.everyone.if.no.acl.found is set to true, resources without an ACL are limited to super users, which means that enabling authorization before mapping every existing client can cause outages. Confirm the current default and behavior for your release in the Kafka authorization documentation before changing it.
Before changing anything, inventory every listener, every principal currently connecting, every consumer group and every tool that touches the cluster. Plan the order: enable TLS and authentication on listeners in a staged way, grant ACLs for each known principal, validate with the clients you already run, and only then deny by default. Expect the super user list and the Connect and admin tool credentials to need the most attention, since they are easy to overlook and carry the most privilege. Agree in advance who owns ACL changes, how they are reviewed, and how audit logs will be retained and read. Those ownership and evidence questions, more than the configuration syntax, are what make hardening succeed.
How clients, brokers, controllers, Connect and admin tools trust each other
The diagram starts with external clients and admin tools, which reach brokers only over TLS with a SASL mechanism. Brokers and KRaft controllers talk on separate listeners that should also be encrypted and authenticated, so a client credential never grants controller access. Kafka Connect workers sit inside the boundary, and their REST API needs its own TLS and authentication. Each hand-off ends at the StandardAuthorizer ACL check, and the audit log sink receives the authorization and admin events. When reviewing the setup, confirm that every listener is secured and that the audit sink is outside the cluster's write path.
Trust controls on each hand-off between clients, cluster components and the audit sink.
Which settings and components carry the security controls
Kafka security rests on a small set of settings that interact: listeners decide which protocol each port uses, keystores and truststores carry the certificates, SASL establishes identity, and the authorizer decides what each identity may do. Review these together, because a secure listener with a permissive authorizer still leaves the cluster open.
Listeners and security protocols
Each listener in Kafka has its own security protocol, so one broker can expose a TLS listener for clients and a separate listener for inter-broker or controller traffic. Kafka security is optional, which means a cluster can run unsecured listeners next to secured ones. Audit every listener your brokers advertise and confirm that no plaintext listener is reachable from networks where clients or tools connect. Confirm the exact listener and protocol property names against the 4.3 security documentation.
Security overviewSSL keystores and truststores
Brokers present a certificate from a keystore, and clients or peers are checked against a truststore. Together they set the TLS identity of every listener and decide which certificate authorities are trusted. Plan for certificate issuance, storage of key material, rotation and expiry alerts before go-live, since an expired broker certificate stops clients from connecting. Confirm the keystore and truststore property names and supported formats for 4.3 before writing configuration.
SASL mechanisms for authentication
Kafka supports GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER for SASL authentication. PLAIN sends credentials that must be protected by TLS, so it should only run over encrypted listeners. SCRAM stores salted credentials in the cluster, which makes it a common choice for service accounts, while OAUTHBEARER fits clusters that already trust an identity provider. Choose one mechanism per listener and document who owns each credential.
Security overviewStandardAuthorizer and metadata-log ACLs
In KRaft clusters, the StandardAuthorizer stores ACLs in the cluster metadata log, so ACL changes replicate with the rest of cluster metadata. Map every client principal to explicit topic, group and cluster permissions rather than granting broad access for convenience. Review ACLs as part of change control, because a single wildcard grant can override the rest of the access model. Confirm the authorizer class name and its configuration for 4.3 in the authorization documentation.
Authorization and ACLsSuper users and the no-ACL default
The super.users setting names principals that bypass ACL checks, so keep the list short and limited to administrative identities. Without a matching ACL, resources are restricted to super users unless allow.everyone.if.no.acl.found is set to true. Leave that flag at its restrictive default for a deny-by-default posture, and test that an unlisted principal is actually refused. Confirm both property names and their default values in the 4.3 documentation.
Pluggable authorizer interface
Kafka authorization is pluggable and can integrate with external authorization services. If your organization already manages access in a central policy engine, an external authorizer can replace the built-in ACL model, but it becomes a dependency for every authorization decision. Any custom authorizer must be tested against upgrades, since it runs inside the broker. Ask whether the chosen approach has been tested on your target Kafka release before committing to it.
Choosing authentication and authorization options
Mutual TLS uses client certificates as the identity for each client, broker and tool, so the TLS handshake both encrypts traffic and authenticates the caller. It fits teams that already run a internal certificate authority, have a small number of services with stable identities, and want no separate password store. The main cost is certificate lifecycle work: issuing, distributing, renewing and revoking certificates for every client, and restarting or reloading them when they change.
- Identity lives in the certificate: the distinguished name or SAN you configure becomes the principal that ACLs match, so naming conventions must be settled before rollout.
- Rotation is certificate rotation: every client needs a renewal process, and an expired certificate causes an outage rather than a failed login prompt.
- Revocation depends on your PKI: confirm how your CA publishes revocation information and how quickly brokers pick up changes.
- Fewer moving parts: no external directory or token service must be available for a client to connect.
- Harder for many short-lived clients: container workloads that scale up and down need automated certificate issuance.
Before you commit, confirm the mTLS settings for your Kafka version and check that your CA can issue and renew certificates on the schedule your services need.
SCRAM-SHA-256 and SCRAM-SHA-512 authenticate clients with a salted challenge-response, so the password itself never crosses the wire. It fits teams that want a self-contained credential store inside Kafka without running a directory service, and it suits many applications with their own service accounts. Credentials are stored in cluster metadata, which makes them manageable with Kafka's admin tooling, but every credential change is an operational task that someone owns.
- Credentials live in Kafka: users and their SCRAM credentials are created and changed through the admin tooling, so access changes are tied to cluster administration.
- Rotation is manual or scripted: each application needs a new password and a rollout plan, and old and new credentials may need to coexist during the change.
- No external dependency: clients authenticate even when your identity provider is down, which helps for air-gapped or tightly scoped environments.
- Secret distribution is your problem: passwords must be stored in your secrets manager and kept out of configuration files and images.
- Choose the hash deliberately: confirm which SCRAM variant your clients and libraries support before standardizing on one.
Before you commit, confirm how credential creation is audited and who is allowed to change credentials.
Kafka supports Kerberos through the GSSAPI mechanism, which fits organizations that already run Active Directory or an MIT Kerberos realm and want Kafka principals to follow the same accounts as the rest of their infrastructure. Authentication depends on a Key Distribution Center (KDC) being reachable, and clients need keytabs or ticket caches. The operational weight sits mostly in keytab management and in keeping time synchronized across hosts.
- KDC dependency: if the KDC or its network path fails, new connections fail, so plan KDC redundancy and monitor it as part of the Kafka service.
- Keytab handling: keytabs are long-lived secrets, so restrict their file permissions and define a rotation process for service principals.
- Clock skew matters: Kerberos rejects tickets when hosts drift apart, so confirm time synchronization on every broker and client.
- Client tooling varies: check that each client language and library in your estate supports GSSAPI in the configuration you need.
- Principal naming: map Kerberos principals to ACL principals in one consistent pattern.
Before you commit, ask your directory team who owns the service principals and how keytab rotation is scheduled.
OAUTHBEARER lets Kafka accept bearer tokens issued by an identity provider, which fits organizations that want one place to manage user and service identity, short-lived credentials and centralized deprovisioning. Brokers must validate tokens, which means configuring trusted issuers, key discovery and token checks. The work is in building and maintaining that validation path and in making sure clients can obtain and refresh tokens. Details of the identity integration are covered on the sibling SSO page.
- Short-lived credentials: tokens expire, which reduces the value of a leaked credential compared with a static password.
- Token validation is a dependency: brokers need the identity provider's signing keys and metadata, so plan for how keys are refreshed and what happens during an identity outage.
- Client refresh logic: long-running applications must renew tokens before they expire, and this must be tested under load.
- Authorization stays in Kafka: the identity provider authenticates, but ACLs still decide what each principal can do, so map token claims to principals deliberately.
- Version and plugin checks: confirm which OAUTHBEARER callback and validation options your Kafka version supports.
See the sibling SSO and identity integration page for the configuration steps. Before you commit, confirm which claim becomes the principal name.
The PLAIN mechanism sends a username and password to the broker, so it must run over TLS, and the broker checks the credentials against a configured store. It fits small, short-lived or low-risk setups, test environments and transitional periods where a more capable mechanism is not yet ready. Because the password is sent in a form the broker verifies directly, it offers less protection than challenge-response mechanisms if the TLS layer is misconfigured, and it is usually the weakest choice for long-term production use.
- TLS is mandatory: every listener using PLAIN must be encrypted, or credentials are exposed on the network.
- Password store is your responsibility: the users and passwords are held in the broker configuration, so changes require careful handling of config files and restarts.
- Rotation touches configuration: changing a password means updating the broker and every client at a coordinated time.
- Limited upside over SCRAM: SCRAM offers stronger protection with similar operational effort, so PLAIN rarely wins on merit alone.
- Audit exposure: secrets in config files are a common finding in security reviews, so confirm how they are stored and who can read them.
Before you choose PLAIN, confirm with your security team whether a SCRAM or OAUTHBEARER option is feasible on your timeline, and document the reason if it is not.
How to harden a cluster step by step
This sequence moves a Kafka cluster from open access to encrypted, authenticated and deny-by-default operation, with a concrete check at each stage so you can show the controls work before clients depend on them. Work it in order, because each step relies on the one before it.
Inventory every listener and client path
Before changing anything, list every listener on every broker and controller, every client application, Kafka Connect worker, Streams application, admin script and monitoring agent that connects, and the protocol and port each one uses. Record which clients run in which network zone and which ones can be changed quickly. The output is a written inventory that becomes your cutover checklist. You know this step is done when every connection path in the cluster configuration appears on the list and the owning team has confirmed it.
Enable TLS on every listener
Add SSL listeners for client, inter-broker and controller traffic, and set the security protocol for each listener in the broker configuration. Issue certificates from your internal certificate authority, configure keystores and truststores, and enable hostname verification. Keep the plaintext listeners running during rollout so clients can move at their own pace. The check is an SSL client handshake that succeeds against each new listener, plus a failed handshake when a client presents a certificate from an untrusted authority. Confirm the controller listener too, since it is easy to miss.
Add SASL authentication
Choose the SASL mechanisms your identity estate supports. The documented options are GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. Enable them on the SASL listeners, and set the inter-broker listener to use its own authenticated identity. Use SCRAM credentials stored in the cluster metadata for service accounts where Kerberos or OIDC is not yet in place, and confirm with your identity team how credentials will be rotated. The check is an unauthenticated client being refused on the SASL listener and an authenticated client connecting successfully. Keep the old plaintext listener open only until the inventory shows no remaining users.
Create service principals for each workload
Give each application, Connect worker, Streams application and tool its own principal instead of sharing one account. Name principals so that an audit entry identifies the workload and owning team. Store credentials in your secrets manager and confirm that no credential appears in version control or shell history. The check is that each principal authenticates on its own and that revoking one principal in a test environment blocks only the workload that uses it. Ask the security team to confirm the naming convention and rotation owner before service accounts are created.
Set super users minimally
Define the
super.userslist in the broker configuration with the smallest set of principals that must bypass ACL checks, typically the cluster administration identities used for break-glass work and automation. Do not put application principals in this list, because a super user is not limited by any ACL. Record who holds each super user credential and how access is granted and revoked. The check is that a non-super principal without an ACL is denied a cluster operation, while a super user can still perform it. Review this list whenever a team changes ownership of automation.Switch to StandardAuthorizer with deny-by-default
Configure the StandardAuthorizer on the brokers. In KRaft clusters it stores ACLs in the cluster metadata log. Leave
allow.everyone.if.no.acl.foundset to false, so that resources without ACLs are restricted to super users. Add the ACLs for every principal from step four before you restart brokers with the authorizer enabled, covering topics, consumer groups, transactional IDs and cluster operations as each workload needs. Then run a planned test: each service principal should perform its normal operations, and an unlisted principal should be denied. Treat any denied legitimate operation as a missing ACL, not a reason to open the default. This is the highest-risk step, so schedule it with the application owners present.Secure Kafka Connect and the admin tools
Apply the same controls to Kafka Connect: TLS and SASL on the connection to the cluster, a dedicated principal per worker group, and authentication and TLS on the Connect REST API, since connector configuration can expose secrets and change data flows. Restrict who can create, modify or delete connectors. For command-line admin tools, use client configuration files with the same TLS and SASL settings, store them with restricted file permissions, and stop using anonymous access from jump hosts. The check is a request to the Connect REST API without credentials being refused, and an admin command run with an unauthorized principal failing with an authorization error.
Enable and review audit logging
Turn on authorization logging so that denied and allowed operations are written to the broker logs, and forward those logs to your central log platform with retention that matches your policy. Include authentication failures and super user actions in the review. Assign an owner to review denied operations on a set schedule and to investigate unfamiliar principals. Confirm the log format with your logging team before building alerts. The check is a deliberately denied test operation appearing in the central log with the principal, resource and timestamp, which proves the audit trail works end to end.
How deny-by-default ACLs change cutover and rollback
In a KRaft cluster, turning on authorization without a complete ACL map will stop traffic. Resources that have no ACL are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so every producer, consumer and consumer group that is not yet mapped will be refused the moment the StandardAuthorizer starts enforcing. Treat the authorizer switch as the cutover event, not the configuration change that precedes it. Before that event, confirm with your platform team exactly which value of allow.everyone.if.no.acl.found is set in each environment, and do not assume the default is what you expect.
Build the ACL inventory from evidence, not from application owners' memories. Enable authorizer and broker request logging in a non-production cluster, run the full set of business workflows, and export the principals, operations and topics or groups that appear. Repeat the exercise across batch jobs, month-end runs and failover drills, because a consumer group that only runs quarterly will not show up in a two-day sample. Stage the ACLs in a lower environment, then in production with the permissive setting still in place, and check denied-request logs before removing it. Your rollback plan should state how you return to the permissive setting, who can make that change, and how long the team will watch logs after cutover.
ACLs are stored in the cluster metadata log, so they are cluster state, not a file you can diff casually in a repository. Review them as you would firewall rules or IAM policies: export them on a schedule, record who changed them, and compare each export with the approved inventory. Confirm with your Kafka vendor documentation and your own tooling how ACL changes are audited and how a bad change is reverted, since the procedure is the part you will need under pressure. The Kafka authorization documentation is the right reference to check against your chosen release before you write the runbook.
What drives hardening effort and how to keep it down
This table lists the factors that most change the work of hardening a Kafka cluster, from client count to compliance evidence, and suggests how to shrink each one. Read it before scoping, because the first two or three drivers usually set the size of the ACL and listener work. Each reduction works best when it is decided once for the whole cluster rather than case by case.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of clients and teams needing ACLs | Each producer, consumer and Streams application needs its own principal and explicit grants, and every new team adds review and testing work. | Adopt a standard principal naming scheme, group clients by team, and grant access to prefixed topic and group patterns instead of individual topics. |
| Number of listeners and environments | Each listener needs its own TLS and authentication settings, and each environment such as development, test and production repeats the setup and checks. | Reuse one listener pattern per trust zone, generate configuration from templates, and keep environments identical except for certificates and credentials. |
| Identity system integration | Tying SASL mechanisms to a directory, an OIDC provider or Kerberos adds configuration, mapping of identities to principals, and failure testing for token or ticket expiry. | Pick one authentication mechanism per client type early, document the principal mapping rules, and test expiry and renewal once in a shared test environment. |
| Connect connector count and REST exposure | Each connector runs with its own credentials and topic access, and the Connect REST API needs its own authentication and network restriction. | Use one Connect worker group per trust domain, give connectors dedicated service principals with narrow grants, and limit REST access to administrative networks. |
| Custom authorizer or authentication plugins | Custom plugins must be written, tested and rebuilt for every Kafka upgrade, and they are a common source of failure during rolling upgrades. | Prefer built-in StandardAuthorizer and supported SASL mechanisms where they meet the need, and keep any plugin small, versioned and covered by upgrade tests. |
| Compliance evidence requirements | Assessors often ask for proof of access control settings, audit log retention and change history, which requires collecting and labeling evidence over time. | Agree the evidence list before build, export ACL and configuration state from the cluster on a schedule, and confirm retention requirements with your assessor. |
| Change windows and deployment constraints | Enabling TLS and SASL on a running cluster needs rolling restarts, client coordination and fallback plans, and narrow change windows stretch the schedule. | Enable listeners in stages with dual listeners during migration, batch client changes by team, and confirm allowed windows with the change board before scoping. |
How hardening differs across deployment models
A single-node cluster is useful for building and testing client code, but it hides the operational work that security depends on. Kafka security is optional, so a test broker can run with plaintext listeners and no authorization, and that setup tends to be copied into later environments. Use the test cluster to prove the configuration you will reuse, not to shortcut it. Keep TLS on the broker listener, even with a self-signed or private test authority, so client configuration is identical to production.
- Certificate authority: A throwaway private CA is acceptable here, but keep its root key out of the repository and record how it was generated.
- Certificate rotation: Test a renewal before the first expiry, because a single-node setup rarely exercises rotation at all.
- Secret distribution: Store SASL credentials and keystore passwords in a local secrets file with restricted permissions, not in shell history or sample configs.
- SASL settings: Enable one SASL mechanism, such as SCRAM-SHA-512, and create the test users explicitly so the authorizer rules are exercised.
- Authorization: Set
allow.everyone.if.no.acl.foundtofalse(the default) so tests fail closed the way production will.
Before promoting any file from this environment, confirm with your security team which settings must be rebuilt rather than copied.
A multi-broker cluster is where most hardening decisions carry operational weight. Every broker and every controller needs a certificate that clients and peers trust, and a rolling restart is needed to change listener settings without losing availability. Plan the certificate authority and rotation schedule before the first broker starts, because changing them later means touching every node. The controller quorum and inter-broker listener must be secured as well as the client listeners.
- Certificate authority: Use an internal CA your organization already operates, with intermediate signing for Kafka, so roots stay offline.
- Certificate rotation: Plan rolling replacement one broker at a time, checking under-replicated partitions after each restart.
- Secret distribution: Use a configuration management or secrets platform to push keystores and truststores, and keep SCRAM credentials managed through the admin path rather than in files.
- TLS and SASL: Secure the inter-broker listener and controller listener separately from client listeners, and confirm which mechanism brokers use to reach each other.
- Authorizer: Define ACLs for brokers, controllers and replication before enabling deny-by-default, since missing rules block replication.
Confirm the rolling restart procedure and the replication health thresholds in your own environment before scheduling the first rotation.
In Kubernetes, the operator or deployment tooling often generates listeners, certificates and secrets, which changes who owns each setting. Hardening still applies, but you must decide whether the operator or your platform team controls certificate issuance, and whether pods can receive rotated secrets without a restart. Confirm operator support for each feature before designing around it. This document does not assume any specific operator's capabilities.
- Certificate authority: Decide whether certificates come from a cluster issuer tied to your enterprise CA or from a cluster-local CA, and document which one clients trust.
- Certificate rotation: Check whether rotation triggers a rolling restart of brokers and whether that restart respects replication safety.
- Secret distribution: Keep SASL passwords and keystore material in your cluster's secret store, and limit which service accounts can read them.
- TLS and SASL settings: Map each listener to a Kubernetes service and confirm advertised listeners resolve correctly for both in-cluster and external clients.
- Operator support: Ask the operator maintainer whether it supports SASL mechanisms, listener TLS and custom authorizers for your Kafka version.
Verify that the operator version supports your target Kafka release before you finalize the design.
An air-gapped network removes external certificate authorities, package mirrors and online revocation checks, so the trust chain and update process must be built inside the network. Kafka itself is Apache-2.0 licensed and can be obtained as release artifacts and mirrored internally, but every dependency, plugin and container image must be brought in through an approved transfer process. Certificate revocation and rotation need a procedure that does not depend on external services.
- Certificate authority: Use an internal offline root with an online intermediate, and publish the trust bundle to every client and broker group.
- Certificate rotation: Set rotation intervals that account for the time needed to move signed material across the boundary.
- Secret distribution: Use an internal secrets system with audit logging, and avoid moving credentials on removable media without a recorded chain of custody.
- TLS and SASL settings: Prefer SASL mechanisms that need no external identity provider, such as SCRAM, unless an internal Kerberos or OIDC service is available.
- Audit trail: Keep authorizer and broker logs inside the enclave and confirm how they reach your review tools.
Confirm with your accreditation or security authority which transfer and key-management procedures apply to your network.
Securing the admin tools, Connect and secrets around Kafka
A Kafka cluster is only as locked down as the tools and services that talk to it. Admin scripts, Connect workers, service accounts and the secrets that hold them together often sit outside the broker's own controls, so each needs its own boundary. The cards below cover the places where access tends to leak around a Kafka deployment.
Restrict admin tools to authenticated configs
Command-line tools such as the topic, ACL and configuration utilities connect to the cluster with the same security settings as any client. Each operator or automation job should run with a client config that sets the security protocol and SASL mechanism, rather than an unauthenticated default. Confirm that tool access is limited to named admin principals, that those principals are the only ones permitted to change ACLs or broker configs, and that the tool hosts are themselves controlled. Brokers and tools need Java 17 since Kafka 4.0, so check that the admin hosts run a supported runtime.
Security overviewProtect the Connect REST API
The Kafka Connect REST interface can create, pause, reconfigure and delete connectors, and connector configs often contain database and cloud credentials. Put the REST listener behind TLS, require authentication, and bind it only to the networks that need it. Confirm which principal each connector uses on the broker side and that connector config changes are logged and reviewed. Connect workers are also Kafka clients, so they need the same ACL scoping as any application.
Secure worker-to-broker credentials
Connect workers and other clients authenticate to brokers with SASL credentials or client certificates. Give each worker or connector its own principal rather than sharing one account across a fleet, so that revoking one credential does not break everything. Check which ACLs each principal holds, limit them to the topics and consumer groups that component needs, and plan a rotation procedure that can be run without a full restart of the cluster.
Keep keystore passwords and SCRAM secrets out of configs
Keystore and truststore passwords, SCRAM credentials and SASL passwords should not sit in plain properties files checked into source control or copied across hosts. Use a secrets manager or the platform's secret mechanism to inject them at start-up, restrict file permissions on any config that must remain on disk, and avoid echoing secrets into shell history or logs. Ask the team to confirm how secrets are rotated, who can read them, and whether the broker and Connect logs ever print config values.
Segment the controller network
KRaft controllers hold the cluster metadata, including ACLs and principal definitions, so they should be reachable only from brokers and the controller peers that need them. Place controllers on a dedicated network segment, restrict inbound ports to the controller listener, and keep client traffic off that path. Verify that the controller listener uses TLS and that administrative access to controller hosts goes through a bastion or equivalent, not general user networks.
Apply least privilege to service accounts
Service accounts for Connect, monitoring, backup and application workloads should each have only the permissions their job requires. Review accounts that hold cluster-wide operations or broad topic access, remove unused principals, and separate read-only monitoring identities from write-capable ones. Confirm with the team who approves new principals and how quickly accounts are removed when a system is retired.
What audit logging should capture and where it goes
The events that matter most for review are authentication failures, authorization denials, ACL changes, super user activity and configuration changes to brokers, controllers and Connect workers. Authentication failures show credential guessing, expired SCRAM or OAUTHBEARER tokens and misconfigured clients. Authorization denials show principals reaching for topics or groups they were never granted, which is the signal that a deny-by-default posture is working and where the ACL model needs review. ACL changes and super user use should be logged with the acting principal, the time and the resource affected, because those are the events that can widen access silently.
Kafka writes authorizer decisions through its normal logging framework, and the exact logger categories and message formats depend on the release you run. Confirm with your own test cluster which authorizer and authentication categories your release emits at the level you chose, and confirm that denials are logged at a level that is not suppressed in production. Also confirm whether configuration changes made through the admin API, dynamic broker configs and the Connect REST API produce a record you can attribute to a principal, since some of these may only appear in broker or application logs. Verify this with a deliberate test change, not from documentation alone.
Route these logs off the brokers to a central store that the security team administers, not the Kafka operations team alone, so that an administrator who changes the cluster cannot also edit its history. Decide retention with your legal, compliance and incident response owners, and document it per log category, since authentication and denial logs can be far higher volume than ACL changes. Check that the store preserves ordering and timestamps across brokers and that access to the log store is itself restricted and recorded. The Apache Kafka security overview is the starting point for the security model these events describe.
What to monitor, rotate, upgrade and document after hardening
This table lists the recurring items that keep a hardened Kafka cluster secure after go-live, with what each item involves and the evidence an assessor will expect. Read each row as a standing task with an owner and a review cadence, and confirm the cadence your own policies require. The main takeaway is that hardening decays without routine checks, so the configuration baseline should be kept current with every change.
| Ongoing item | What it involves | Evidence to keep |
|---|---|---|
| Certificate expiry tracking | Track expiry dates for broker, controller, client and Connect REST listener certificates, and plan renewal before the earliest one lapses. | Certificate inventory with issuer, subject, SANs and expiry dates, plus renewal tickets |
| SCRAM or Kerberos credential rotation | Rotate SCRAM user credentials or Kerberos keytabs on a set schedule, and retire credentials for service accounts no longer in use. | Rotation log showing who rotated what and when, and a list of disabled principals |
| ACL review cadence | Compare the ACLs stored in the cluster metadata against the approved access matrix, removing grants that no longer match a current owner or workload. | Signed review records and before and after ACL listings |
| Super user list review | Confirm that the super.users setting still lists only the accounts that need it, since those accounts bypass ACL checks. | Current super.users value in the baseline, with approver and change record |
| Audit log review | Review authorization denials, admin operations and authentication failures in the logs your audit pipeline collects, and confirm the logs are retained for the period your policy sets. | Sample review records, alert rules and log retention settings |
| Staying on a supported release | Check the downloads page against your running version, and plan upgrades so the cluster stays on 4.3.1, 4.2.2 or 4.1.2 or a later supported release. Rolling upgrades are supported from the last three releases to the latest. | Version inventory per broker and Connect worker, and dated upgrade plans |
| Configuration baseline document | Maintain a written baseline of listener protocols, SASL mechanisms, authorizer settings, allow.everyone.if.no.acl.found, TLS versions and logging, updated with each approved change. | Versioned baseline with change history, reviewed and approved by the security owner |
Questions teams ask before hardening Kafka
How much effort does hardening a Kafka cluster take?
Effort depends mostly on how many listeners, clients, Connect workers and tools need to change, and on how many topics and consumer groups already have no ACLs. A cluster with a few clients and one listener is a small job. A cluster with many teams, external clients and Connect pipelines is a larger one, because each client needs a principal, a credential or certificate, and ACLs that match what it really reads and writes. Ask any partner to break the quote into inventory and discovery, TLS and SASL rollout, ACL design and migration, Connect and admin tool changes, audit logging, and testing. Those components are one-time work. Certificate rotation, credential rotation and ACL reviews recur, and your own team will carry them after handover unless you buy a support agreement.
Can our internal team harden Kafka without a partner?
Yes, if the team has someone who understands Kafka listeners, the StandardAuthorizer and the operational impact of a rolling configuration change. The Kafka security overview documents that security is optional and that clusters can mix secured and unsecured listeners, which makes a staged rollout possible. The risk for an internal team is usually not the configuration itself but the inventory: finding every client, tool and Connect worker that depends on an unsecured path before the default changes. Teams that lack Kafka operations depth, or that must show evidence to a security review, often bring in an outside partner for the design, the test plan and the cutover support while keeping day-to-day ownership in house.
How long does a cutover window need to be?
The window depends on your cluster size, how many clients must be restarted or reconfigured, and whether you can roll brokers one at a time. Kafka is designed for rolling changes, and the time-based release plan states that rolling upgrades are supported from the last three releases to the latest version, which shows how routine rolling operations are for the project. Plan separate windows for enabling TLS listeners, switching clients to SASL, and tightening ACLs, since each one can break a consumer or producer. Ask your partner to define the window per phase, the rollback step for each phase and the client sign-off needed before each change. Confirm these figures with your own environment rather than relying on a general estimate.
Can plaintext listeners stay on during migration?
Yes, during a staged migration plaintext listeners can run alongside secured ones, because Kafka supports clusters that mix secured and unsecured listeners. Keep them only as long as you need them to move clients over, and track which clients still connect in plaintext before you remove them. Once every producer, consumer, Connect worker and admin tool uses a TLS listener with SASL or mTLS, disable the plaintext listener and confirm that no connection attempts fail in logs. Leaving a plaintext listener open after the migration is a common finding in security reviews, so set a removal date in the change plan.
What does the work need from our side?
Hardening needs decisions and access from several groups. Your identity team must provide the SASL mechanism or certificate authority, service accounts and any OIDC or Kerberos integration. Platform engineering must allow change windows, provide admin access to brokers and controllers, and approve configuration changes. Each service owner must confirm which principals their applications use, which topics they read and write, and when they can restart. Your security team should agree on the audit logging destination and retention. Ask the partner to list these inputs in the scope document so that delays are visible before work starts.
What does DeployOpen not do for Kafka hardening?
DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, such as configuration records, ACL exports, test results and change logs, and independent auditors or certification bodies make the determination. DeployOpen also does not operate your Kafka cluster as a managed service unless you buy a retainer, and it does not change Kafka's licensing: Kafka is Apache-2.0 licensed with no paid edition from the project itself. Confirm the exact deliverables and any retest included in the written scope before work begins.
Does hardening mean Kafka will be fully secure?
Hardening reduces exposure, but no configuration makes a system secure on its own. What you can ask for is a written configuration baseline, verified listeners, a deny-by-default ACL model with documented exceptions, audit logs routed to a system your team monitors, and a test that confirms unauthorized access is refused. Treat these as evidence of work done, not as a guarantee, and schedule periodic reviews after handover.
How DeployOpen scopes, hardens and hands over Kafka security
DeployOpen approaches Apache Kafka security hardening as a fixed-scope engagement inside your own infrastructure, covering TLS, SASL, ACLs, Connect, admin tools and audit logging. Scope, deliverables and timelines are agreed in writing before work starts, and the client keeps ownership of the cluster, its data and its configuration.
How we scope
- Inventory every listener, client type, Connect worker and admin tool that reaches the brokers today.
- Confirm which KRaft release and Java runtime the cluster runs, since security settings depend on the version in use.
- Agree in writing which listeners, mechanisms, authorizer rules and logging outputs are in scope for the engagement.
How we build
- Enable TLS on every listener, including controller and inter-broker traffic, and document certificate issuance and rotation.
- Configure SASL authentication, define ACLs in the StandardAuthorizer with deny-by-default, and restrict super user accounts.
- Test each client, Connect worker and admin tool against the new rules before cutover, and record the results.
How we hand over
- Deliver configuration files, ACL definitions and a runbook for adding principals, rotating credentials and reviewing access.
- Provide a findings report with fixes and a retest, so the security and compliance teams can review the evidence.
- Walk operations staff through audit log review and document which controls remain the client's responsibility.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
- Re-check hardening settings when moving to a new supported Kafka release, since defaults and features can change.
- Prepare evidence for compliance assessments. DeployOpen does not issue audit reports, attestations or certifications.

