Project-based Authentication
Prerequisites
Policies Setup
apiVersion: v1
kind: ConfigMap
metadata:
name: seldon-deploy-policies
namespace: seldon-system
data:
data: |-
{
"role_grants": {
"data-scientist": [
{
"action": "read",
"resource": "namespace/*"
},
{
"action": "write",
"resource": "namespace/*"
}
],
"system-admin": [
{
"resource": "system/iam",
"action": "write"
},
{
"resource": "system/iam",
"action": "read"
}
]
},
"user_grants": {
"*": [
{
"action": "read",
"resource": "project/default"
},
{
"action": "write",
"resource": "project/default"
}
],
"service-account-sd-api": [
{
"resource": "namespace/*",
"action": "write"
},
{
"resource": "namespace/*",
"action": "read"
},
{
"action": "read",
"resource": "project/*"
},
{
"action": "write",
"resource": "project/*"
}
],
"alice": [
{
"action": "read",
"resource": "project/iris"
},
{
"action": "write",
"resource": "project/iris"
},
{
"action": "read",
"resource": "project/income"
},
{
"action": "write",
"resource": "project/income"
}
],
"bob": [
{
"action": "read",
"resource": "project/income"
}
],
"admin": [
{
"action": "read",
"resource": "project/*"
},
{
"action": "write",
"resource": "project/*"
},
{
"resource": "namespace/*",
"action": "write"
},
{
"resource": "namespace/*",
"action": "read"
},
{
"resource": "system/iam",
"action": "write"
},
{
"resource": "system/iam",
"action": "read"
}
]
}
}Confirm Policies Are Working
- NameURIProjectArtifact type

Model Catalog page showing all three newly created models 
Overview page showing all three newly created Seldon Deployments 
Overview page showing only the deployments using models in the default and income projects 
Model Catalog page showing only the models in the default and income projects 
Bob cannot delete the model that is part of the income project due to lack of permissions 
Bob cannot modify the model that is part of the income project due to lack of permissions

Last updated
Was this helpful?