Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
feat: Improve unallowed URLs of webhook-service (#7147)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-kreuzberger-dtx authored Mar 15, 2022
1 parent 6805da2 commit d5c1d3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webhook-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ func main() {
&lib.OSCmdExecutor{},
lib.WithUnAllowedURLs(
[]string{
// Block access to Kubernetes API
kubeAPIHostIP,
kubeAPIHostIP + ":" + kubeAPIPort,
"kubernetes",
"kubernetes" + ":" + kubeAPIPort,
"kubernetes.default",
"kubernetes.default" + ":" + kubeAPIPort,
"kubernetes.default.svc",
"kubernetes.default.svc" + ":" + kubeAPIPort,
"kubernetes.default.svc.cluster.local",
"kubernetes.default.svc.cluster.local" + ":" + kubeAPIPort,
// Block access to localhost
"localhost",
"127.0.0.1",
"::1",
Expand Down

0 comments on commit d5c1d3c

Please sign in to comment.