mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 15:41:15 +02:00
* add make test_keylock_s3 for local develop and debug * fix typos * add condition oidc:azp * docker: reuse test/s3/iam realm and iam config for keycloak dev compose Point the keycloak dev compose at the existing test/s3/iam configs instead of a parallel realm/port/key/role set. Adds one declarative realm import (seaweedfs-test-realm.json) as the single realm source and drops the duplicated iam.json/s3.json. --------- Co-authored-by: Chris Lu <chris.lu@gmail.com>
108 lines
2.9 KiB
JSON
108 lines
2.9 KiB
JSON
{
|
|
"realm": "seaweedfs-test",
|
|
"enabled": true,
|
|
"roles": {
|
|
"realm": [
|
|
{ "name": "s3-admin" },
|
|
{ "name": "s3-read-only" },
|
|
{ "name": "s3-write-only" },
|
|
{ "name": "s3-read-write" }
|
|
]
|
|
},
|
|
"clients": [
|
|
{
|
|
"clientId": "seaweedfs-s3",
|
|
"enabled": true,
|
|
"secret": "seaweedfs-s3-secret",
|
|
"publicClient": false,
|
|
"serviceAccountsEnabled": true,
|
|
"standardFlowEnabled": true,
|
|
"directAccessGrantsEnabled": true,
|
|
"fullScopeAllowed": true,
|
|
"redirectUris": ["*"],
|
|
"webOrigins": ["*"],
|
|
"protocol": "openid-connect",
|
|
"protocolMappers": [
|
|
{
|
|
"name": "realm-roles",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-usermodel-realm-role-mapper",
|
|
"config": {
|
|
"claim.name": "roles",
|
|
"jsonType.label": "String",
|
|
"multivalued": "true",
|
|
"usermodel.realmRoleMapping.rolePrefix": "",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "true",
|
|
"userinfo.token.claim": "true"
|
|
}
|
|
},
|
|
{
|
|
"name": "audience-mapper",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-audience-mapper",
|
|
"config": {
|
|
"included.client.audience": "seaweedfs-s3",
|
|
"id.token.claim": "false",
|
|
"access.token.claim": "true"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"username": "admin-user",
|
|
"enabled": true,
|
|
"email": "admin-user@test.com",
|
|
"firstName": "Test",
|
|
"lastName": "User",
|
|
"emailVerified": true,
|
|
"requiredActions": [],
|
|
"realmRoles": ["s3-admin"],
|
|
"credentials": [
|
|
{ "type": "password", "value": "adminuser123", "temporary": false }
|
|
]
|
|
},
|
|
{
|
|
"username": "read-user",
|
|
"enabled": true,
|
|
"email": "read-user@test.com",
|
|
"firstName": "Test",
|
|
"lastName": "User",
|
|
"emailVerified": true,
|
|
"requiredActions": [],
|
|
"realmRoles": ["s3-read-only"],
|
|
"credentials": [
|
|
{ "type": "password", "value": "readuser123", "temporary": false }
|
|
]
|
|
},
|
|
{
|
|
"username": "write-user",
|
|
"enabled": true,
|
|
"email": "write-user@test.com",
|
|
"firstName": "Test",
|
|
"lastName": "User",
|
|
"emailVerified": true,
|
|
"requiredActions": [],
|
|
"realmRoles": ["s3-read-write"],
|
|
"credentials": [
|
|
{ "type": "password", "value": "writeuser123", "temporary": false }
|
|
]
|
|
},
|
|
{
|
|
"username": "write-only-user",
|
|
"enabled": true,
|
|
"email": "write-only-user@test.com",
|
|
"firstName": "Test",
|
|
"lastName": "User",
|
|
"emailVerified": true,
|
|
"requiredActions": [],
|
|
"realmRoles": ["s3-write-only"],
|
|
"credentials": [
|
|
{ "type": "password", "value": "writeonlyuser123", "temporary": false }
|
|
]
|
|
}
|
|
]
|
|
}
|