Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Extend Istio AuthorizationPolicy to allow access from notebook contro…
Browse files Browse the repository at this point in the history
…ller

port of kubeflow#5980
  • Loading branch information
alembiewski committed Aug 25, 2021
1 parent eb51869 commit b9fa8e5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/profile-controller/controllers/profile_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,24 @@ func (r *ProfileReconciler) getAuthorizationPolicy(profileIns *profilev1.Profile
},
},
},
{
// allow the notebook-controller in the kubeflow namespace to access the api/status endpoint of the notebook servers.
From: []*istioSecurity.Rule_From{
{
Source: &istioSecurity.Source{
Principals: []string{"cluster.local/ns/kubeflow/sa/notebook-controller-service-account"},
},
},
},
To: []*istioSecurity.Rule_To{
{
Operation: &istioSecurity.Operation{
Methods: []string{"GET"},
Paths: []string{"*/api/status"}, // wildcard for the name of the notebook server
},
},
},
},
},
}
}
Expand Down

0 comments on commit b9fa8e5

Please sign in to comment.