Skip to content

Commit

Permalink
Secure access to KFAM (#6077)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidspek committed Jan 20, 2022
1 parent 5ed0f5f commit 0a79697
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/centraldashboard/manifests/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
labels:
app: centraldashboard
annotations:
sidecar.istio.io/inject: "false"
sidecar.istio.io/inject: "true"
spec:
containers:
- name: centraldashboard
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: central-dashboard
spec:
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account
selector:
matchLabels:
app: centraldashboard
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- ../../base
- virtual-service.yaml
- authorizationpolicy.yaml

namespace: kubeflow

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: profiles-kfam
spec:
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/kubeflow/sa/centraldashboard
selector:
matchLabels:
kustomize.component: profiles
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
- ../../base
- service.yaml
- virtual-service.yaml
- authorizationpolicy.yaml

commonLabels:
kustomize.component: profiles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: deployment
spec:
template:
metadata:
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- command:
Expand Down

0 comments on commit 0a79697

Please sign in to comment.