You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "hpvd (via GitHub)" <gi...@apache.org> on 2023/06/26 13:36:30 UTC
[GitHub] [pulsar] hpvd created a discussion: Example for Pulsar secured by Cilium
GitHub user hpvd created a discussion: Example for Pulsar secured by Cilium
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the ability to filter on individual application protocol requests:
e.g. for Kafka:
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a comment on the discussion: Secure Pulsar by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a comment on the discussion: Secure Pulsar by Cilium
Example how its done:
Restrict Kafka Topic Access to the Following Pods
Typically, we’re forced to write networking policies like: "Allow any application with the label kafka-consumer" to speak to Kafka. This casts a rather wide net, when with L7 policies we can limit the access to individual topics depending on the labels.
As such, we can **say that only the `beer-brewer` can publish to the `hops` topic:**
```
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: beer-brewers
spec:
ingress:
- fromEndpoints:
- matchLabels:
role: beer-brewer
toPorts:
- ports:
- port: 9092
protocol: TCP
rules:
kafka:
- role: produce
topic: hops
```
https://deploy.equinix.com/developers/guides/choosing-a-cni-for-kubernetes
GitHub link: https://github.com/apache/pulsar/discussions/20650#discussioncomment-6283548
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a discussion: Secure Pulsar by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a discussion: Secure Pulsar by Cilium
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the ability to filter on individual application protocol requests:
e.g. for Kafka:
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
**=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?**
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper for enterprises...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a discussion: Secure Pulsar by Cilium (eBPF)
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a discussion: Secure Pulsar by Cilium (eBPF)
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the ability to filter on individual application protocol requests:
e.g. for Kafka:
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
**=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?**
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper for enterprises...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a discussion: Example for Pulsar secured by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a discussion: Example for Pulsar secured by Cilium
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the ability to filter on individual application protocol requests:
e.g. for Kafka:
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
**=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?**
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper for enterprises...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd added a comment to the discussion: Secure Pulsar by Cilium (eBPF)
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd added a comment to the discussion: Secure Pulsar by Cilium (eBPF)
looks like the topic `Pulsar and eBPF` is a complete white sheet of paper, today.
There are also further possibilities/chances related to this, see https://github.com/apache/pulsar/discussions/20653
GitHub link: https://github.com/apache/pulsar/discussions/20650#discussioncomment-6290383
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a comment on the discussion: Example for Pulsar secured by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a comment on the discussion: Example for Pulsar secured by Cilium
Example how its done:
Restrict Kafka Topic Access to the Following Pods
Typically, we’re forced to write networking policies like: "Allow any application with the label kafka-consumer" to speak to Kafka. This casts a rather wide net, when with L7 policies we can limit the access to individual topics depending on the labels. As such, we can say that only the `beer-brewer` can publish to the `hops` topic.
this is how code looks:
```
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: beer-brewers
spec:
ingress:
- fromEndpoints:
- matchLabels:
role: beer-brewer
toPorts:
- ports:
- port: 9092
protocol: TCP
rules:
kafka:
- role: produce
topic: hops
```
https://deploy.equinix.com/developers/guides/choosing-a-cni-for-kubernetes
GitHub link: https://github.com/apache/pulsar/discussions/20650#discussioncomment-6283548
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd added a comment to the discussion: Example for Pulsar secured by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd added a comment to the discussion: Example for Pulsar secured by Cilium
Example how its done:
Restrict Kafka Topic Access to the Following Pods
Typically, we’re forced to write networking policies like: "Allow any application with the label kafka-consumer" to speak to Kafka. This casts a rather wide net, when with L7 policies we can limit the access to individual topics depending on the labels. As such, we can say that only the "beer-brewer" can publish to the hops topic.
this is how code looks:
```
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: beer-brewers
spec:
ingress:
- fromEndpoints:
- matchLabels:
role: beer-brewer
toPorts:
- ports:
- port: 9092
protocol: TCP
rules:
kafka:
- role: produce
topic: hops
```
https://deploy.equinix.com/developers/guides/choosing-a-cni-for-kubernetes
GitHub link: https://github.com/apache/pulsar/discussions/20650#discussioncomment-6283548
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a comment on the discussion: Secure Pulsar by Cilium (eBPF)
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a comment on the discussion: Secure Pulsar by Cilium (eBPF)
looks like the topic `Pulsar and eBPF` is a complete white sheet of paper, today.
There are also further possibilities/chances related to this, see Monitor/Analyse Pulsar without external instrumentation (eBPF) https://github.com/apache/pulsar/discussions/20653
GitHub link: https://github.com/apache/pulsar/discussions/20650#discussioncomment-6290383
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a discussion: Secure Pulsar by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a discussion: Secure Pulsar by Cilium
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the ability to filter on individual application protocol requests:
e.g. for Kafka:
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
**=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?**
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper for enterprises...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a discussion: Example for Pulsar secured by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a discussion: Example for Pulsar secured by Cilium
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the ability to filter on individual application protocol requests:
e.g. for Kafka:
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper for enterprises...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] hpvd edited a discussion: Secure Pulsar by Cilium
Posted by "hpvd (via GitHub)" <gi...@apache.org>.
GitHub user hpvd edited a discussion: Secure Pulsar by Cilium
For Kafka it's easy to level up security by using Cilium.
Cilium is a networking, observability, and security solution with an eBPF-based dataplane.
How it works to secure Kafka with Cilium:
Traditional firewalls operate at Layer 3 and 4. A protocol running on a particular port is either completely trusted or blocked entirely. Cilium provides the **ability to filter on individual application protocol requests:
e.g. for Kafka:**
**Allow service1 to produce on Kafka topic topic1 and service2 to consume on topic1. Reject all other Kafka messages.**
from readme
https://github.com/cilium/cilium
Details in Doc:
https://docs.cilium.io/en/stable/security/kafka/
**=> Are there already any ideas/efforts/POCs know to bring these possibilities to the combination of Pulsar and Cilium?**
Cilium seems to become the standard replacement for kube proxy plus IP tables these days,
so missing Pulsar support should not be the gatekeeper for enterprises...
GitHub link: https://github.com/apache/pulsar/discussions/20650
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org