-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CWNP: Default Deny Not Working #95
Comments
With this fix (and without apiVersion: metal-stack.io/v1
kind: ClusterwideNetworkPolicy
metadata:
name: projectida-1745ffbb74a84103bc47
namespace: firewall
spec:
ingress:
- from:
- cidr: ""
ports:
- port: 5432
protocol: TCP And behaves like that: $ psql --host 212.34.X.Y --port 32000 --username=postgres
psql: error: could not connect to server: Die Wartezeit für die Verbindung ist abgelaufen
Is the server running on host "212.34.X.Y" and accepting
TCP/IP connections on port 32000? Note the additional, empty |
It would be better if the user can see the empty |
If he specifies nothing, the cloudctl defaults to "0.0.0.0/0" |
Is that sufficient for you @LimKianAn ? We have one default value in the |
I will also add a default in the cloud-api as well if someone uses the rest api of the the cloud-api without the defaulting of cloudctl. |
Since at the moment cloud-api is the only upstream of postgreslet and the default value are dealt with nicely there. The concern of not showing an empty slice |
When creating a new database, a corresponding
ClusterWideNetworkPolicy
is created as well.However, access is still possible. I assume this is becaus the source list is not present at all rather then empty:
netcat
can connect on the service port:psql
as well:However, an unused port times out:
We probably need to add an empty
IPBlock
to that CWNP.The text was updated successfully, but these errors were encountered: