Key takeaway
- Apache Flink security for enterprise teams: the trust model, TLS and REST authentication defaults, deployment choices and CVEs to check on Flink 2.3.0.
Apache Flink does not secure itself by default. TLS, REST API authentication and SQL Gateway authentication are disabled out of the box, and the project treats anyone who can submit a job as fully trusted, because Flink runs submitted code without a sandbox. For a CISO or platform lead, the security work is therefore network isolation, authentication in front of the REST API, and strict control over who can submit jobs.
This guide sets out the Flink security model as the project states it, what to switch on before production, how deployment choices change the risk, and the recent advisories to check against. Current stable release is Apache Flink 2.3.0 (25 June 2026). For the engine itself, see our Apache Flink architecture and use cases guide.
What does Flink protect, and what does it leave to you?
The Flink project's own security page sets the boundary. The cluster operator is trusted, and cluster network interfaces are not meant to be public. Authenticated job submitters are fully trusted: jobs can start processes, open network connections and read local files. The threat Flink guards against is unauthenticated external access to the REST API, the SQL Gateway and the BLOB server.
| Question | Flink's stated position | What it means for your design |
|---|---|---|
| Is a submitted JAR or UDF sandboxed? | No. Remote code execution through a submitted JAR, DataStream program or UDF is out of scope by design. | Treat job submission as a privileged action and restrict it. |
| Are TLS and authentication on by default? | No. SSL/TLS, REST API authentication and SQL Gateway authentication are disabled by default. | Configure them before any production use. |
| Which authentication does the REST API support? | Mutual TLS. Other authentication should come from a proxy. | Put an authenticating proxy in front of the REST API and SQL Gateway. |
| What counts as an in-scope vulnerability? | Unauthenticated REST access, path traversal, SQL Gateway injection or authentication bypass, credential exposure and unsafe deserialisation are in scope. | Report privately to security@apache.org. |
Source: flink.apache.org security page, read 12 November 2026.
What should be switched on before production?
- Keep every Flink interface off public networks. The REST API, SQL Gateway and BLOB server are the surfaces the project expects attackers to reach if they are exposed.
- Enable TLS and mutual TLS for the REST API. This is the authentication method the project names for the REST API.
- Authenticate through a proxy where you need identity-based access. The project says other authentication should come from a proxy, so any identity-based access layer sits in front of Flink.
- Restrict who can submit jobs. Anyone who can submit code can act with the cluster's privileges.
- Apply patched releases. See the advisory table below.
The exact configuration keys for TLS and Kerberos change between releases. Flink 2.0 removed a number of SSL and Kerberos option constants, so check the stable documentation for your version before copying settings from older guides. For streaming context on what you are protecting, see our streaming analytics architecture guide and the real-time streaming application article.

What has changed in Flink 2.x that affects security and deployment?
| Change | Detail from the Flink 2.0 announcement | Why it matters |
|---|---|---|
| Java baseline | Java 8 support dropped. Minimum is Java 11, default and recommended is Java 17, and Java 21 is officially supported. | Newer runtimes mean newer TLS and cryptography defaults from the JDK. |
| Deployment mode | Per-job mode removed. Use Application mode. | Plan migrations for any pipeline still launched per job. |
| Configuration file | flink-conf.yaml no longer supported. Use config.yaml, with a migration tool provided. | Audit secrets and security settings when you migrate the file. |
| Security options | Several SecurityOptions and SSL constants removed. | Older hardening guides may reference keys that no longer exist. |
Source: Apache Flink 2.0.0 announcement, read 12 November 2026. The Apache page was truncated at the point read, so the removed-item lists may be incomplete.
Which deployment choice carries which risk?
| Deployment | When it fits | Security point to settle first |
|---|---|---|
| Standalone cluster | Small, fixed estates with an operations team that owns the hosts. | Network isolation and who can reach the REST API. |
| YARN | Estates already running Hadoop. | Align with your Hadoop security setup. See Apache Hadoop security with Kerberos and Ranger. |
| Kubernetes with the Flink Kubernetes Operator | Platform teams standardising on Kubernetes. | Kubernetes RBAC is the authentication layer. Anyone who can apply Flink custom resources is treated as trusted, so restrict that access and keep the operator's service account to least privilege. |
If AI agents act on the events your Flink jobs produce, governance sits above Flink. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, and Elixir Govern (formerly AgentGRC) keeps autonomous agent actions inside policy, with the audit trail risk teams need.
Which recent advisories should you check against?
| Advisory | Issue | Affected | Fixed in |
|---|---|---|---|
| CVE-2026-35194 | Remote code execution via SQL injection in code generation | 1.15.0 before 1.20.4, 2.0.2, 2.1.2 and 2.2.1 | 1.20.4, 2.0.2, 2.1.2, 2.2.1 |
| CVE-2026-40564 | SSRF and local file access in the Kubernetes Operator | Operator 1.3.0 before 1.15.0 | 1.15.0 |
| CVE-2020-17518 and CVE-2020-17519 | Directory traversal through the REST API (file write and file read) | 1.5.1 to 1.11.2 (write), 1.11.0 to 1.11.2 (read) | 1.11.3 or 1.12.0 |
Source: Apache security advisories for Flink, read 12 November 2026. The page says the list is experimental and may lag official CVE publications, and the project does not keep its own CVE list. Confirm your exact version against it. The 2020 entries show why the REST API must never be exposed without authentication.
When is Flink the wrong place to enforce a control?
- Tenant isolation between untrusted teams. Flink is not a sandbox, so run separate clusters or namespaces for teams that should not share a trust boundary.
- Identity-based access. The project points to a proxy for authentication beyond mutual TLS.
- Running third-party code. Arbitrary UDFs and JARs run with cluster privileges, so review before deployment.
What is a sensible adoption sequence?
- Inventory every Flink cluster, its version and who can reach its REST API.
- Upgrade to a release in a fixed line from the advisory table.
- Close public exposure, then enable TLS and mutual TLS.
- Put an authenticating proxy in front of the REST API and SQL Gateway.
- Restrict job submission and Kubernetes custom resource access.
- Plan migration off per-job mode and flink-conf.yaml if you are still on Flink 1.x.
To map one Flink-fed decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
Is Apache Flink secure by default?
No. SSL/TLS, REST API authentication and SQL Gateway authentication are disabled by default and must be configured for production.
Does Flink sandbox submitted jobs?
No. Authenticated job submitters are fully trusted, and code execution through a submitted JAR, DataStream program or UDF is outside the project's vulnerability scope.
How should the REST API be authenticated?
The REST API supports mutual TLS. For other authentication, the project says to use a proxy.
How is access controlled on Kubernetes?
Kubernetes RBAC is the authentication layer for the Flink Kubernetes Operator. Principals who can apply Flink custom resources are treated as trusted.
Which Flink version should we run?
Apache Flink 2.3.0, released 25 June 2026, is the current stable release. Release lines 2.2.x, 2.1.x and 1.20.x (marked LTS) are also listed. Check your line against the advisory table.
Where do we report a vulnerability?
Privately to security@apache.org, which the project prefers, or to the Flink PMC at private@flink.apache.org.
Next Steps
Learn how industries and departments utilize Agentic Workflows and Decision Intelligence to become more decision-centric. By harnessing AI to automate and optimize IT support and operations, businesses can enhance both efficiency and responsiveness, driving smarter, faster outcomes across their workflows. Let our experts help you integrate these advanced technologies to streamline decision-making processes and improve overall operational performance.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE