Skip to content
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

Use a more fine-grained SAR for Authorino #260

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions controllers/resources/authconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ func (s *staticTemplateLoader) Load(ctx context.Context, authType AuthType, key
}

templateData := map[string]interface{}{
"Namespace": key.Namespace,
"Audiences": getAuthAudience(),
"AuthorinoLabel": authKey + ": " + authVal,
"Namespace": key.Namespace,
"Audiences": getAuthAudience(),
"AuthorinoLabel": authKey + ": " + authVal,
"InferenceServiceName": key.Name,
}
template := authConfigTemplateAnonymous
if authType == UserDefined {
Expand Down
6 changes: 3 additions & 3 deletions controllers/resources/template/authconfig_userdefined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ spec:
verb:
value: get
group:
value: ""
value: "serving.kserve.io"
resource:
value: services
value: inferenceservices
namespace:
value: {{ .Namespace }}
subresource:
value: ""
name:
value: ""
value: "{{ .InferenceServiceName }}"
user:
selector: auth.identity.user.username