ocis_keycloak: Move to role assignment via oidc claim (#5882)

Use the new PROXY_ROLE_ASSIGNMENT_DRIVER "oidc". This also means we can
now run with OCIS_ADMIN_USER_ID being empty. So that no admin user will
be created on startup and no default role assignment will happen.

By setting GRAPH_ASSIGN_DEFAULT_USER_ROLE to "false", we make sure to
not create the default "user" role assignment when auto provisioning a
user.
This commit is contained in:
Ralf Haferkamp committed 2023-03-20 20:07:54 +00:00
1 parent e2cbdfba6a
commit ba95d8b50b
1 file changed
+19 -19
+19 -19
View File
@@ -41,7 +41,7 @@ a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++uid=reva,ou=sysusers,o=libregraph-idm ++
++uid=libregraph,ou=sysusers,o=libregraph-idm ++
a| [subs=-attributes]
LDAP DN to use for simple bind authentication with the target LDAP server.
@@ -109,10 +109,10 @@ a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++none ++
++attribute ++
a| [subs=-attributes]
An option to control the behavior for disabling users. Valid options are 'none', 'attribute' and 'group'. If set to 'group', disabling a user via API will add the user to the configured group for disabled users, if set to 'attribute' this will be done in the ldap user entry, if set to 'none' the disable request is not processed.
An option to control the behavior for disabling users. Supported options are 'none', 'attribute' and 'group'. If set to 'group', disabling a user via API will add the user to the configured group for disabled users, if set to 'attribute' this will be done in the ldap user entry, if set to 'none' the disable request is not processed. Default is 'attribute'.
a| `LDAP_GROUP_BASE_DN`
@@ -163,7 +163,7 @@ a| [subs=-attributes]
++groupOfNames ++
a| [subs=-attributes]
The object class to use for groups in the default group search filter like 'groupOfNames'.
The object class to use for groups in the default group search filter ('groupOfNames').
a| `LDAP_GROUP_SCHEMA_DISPLAYNAME`
@@ -210,10 +210,10 @@ a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ownclouduuid ++
++owncloudUUID ++
a| [subs=-attributes]
LDAP Attribute to use as the unique ID for groups. This should be a stable globally unique ID like a UUID.
LDAP Attribute to use as the unique id for groups. This should be a stable globally unique ID like a UUID.
a| `LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING`
@@ -278,7 +278,7 @@ a| [subs=-attributes]
++sub ++
a| [subs=-attributes]
LDAP search scope to use when looking up groups. Supported values are 'base', 'one' and 'sub'.
LDAP search scope to use when looking up groups. Supported scopes are 'base', 'one' and 'sub'.
a| `LDAP_INSECURE`
@@ -349,7 +349,7 @@ a| [subs=-attributes]
++ownCloudUserEnabled ++
a| [subs=-attributes]
LDAP attribute to use as a flag telling if the user is enabled or disabled.
LDAP Attribute to use as a flag telling if the user is enabled or disabled.
a| `LDAP_USER_FILTER`
@@ -385,7 +385,7 @@ a| [subs=-attributes]
++inetOrgPerson ++
a| [subs=-attributes]
The object class to use for users in the default user search filter like 'inetOrgPerson'.
The object class to use for users in the default user search filter ('inetOrgPerson').
a| `LDAP_USER_SCHEMA_DISPLAYNAME`
@@ -416,10 +416,10 @@ a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ownclouduuid ++
++owncloudUUID ++
a| [subs=-attributes]
LDAP Attribute to use as the unique id for users. This should be a stable globally unique id like a UUID.
LDAP Attribute to use as the unique ID for users. This should be a stable globally unique ID like a UUID.
a| `LDAP_USER_SCHEMA_ID_IS_OCTETSTRING`
@@ -489,7 +489,7 @@ a| [subs=-attributes]
++sub ++
a| [subs=-attributes]
LDAP search scope to use when looking up users. Supported values are 'base', 'one' and 'sub'.
LDAP search scope to use when looking up users. Supported scopes are 'base', 'one' and 'sub'.
a| `OCIS_ADMIN_USER_ID`
@@ -505,7 +505,7 @@ a| [subs=-attributes]
++ ++
a| [subs=-attributes]
ID of the user who collects all necessary information for deletion.
ID of the user that should receive admin privileges. Consider that the UUID can be encoded in some LDAP deployment configurations like in .ldif files. These need to be decoded beforehand.
a| `OCIS_CACHE_STORE_ADDRESS`
@@ -610,7 +610,7 @@ a| [subs=-attributes]
++[]string ++
a| [subs=-attributes]
++[GET] ++
++[GET POST PUT PATCH DELETE OPTIONS] ++
a| [subs=-attributes]
A comma-separated list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at \https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method
@@ -832,7 +832,7 @@ a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Ignore untrusted SSL certificates when connecting to the webdav source.
Allow insecure connections to the OIDC issuer.
a| `OCIS_JWT_SECRET`
@@ -1113,7 +1113,7 @@ a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Set this to true if you want to enforce passwords on Uploader, Editor or Contributor shares. If not using the global OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD, you must define the FRONTEND_OCS_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD in the frontend service.
Set this to true if you want to enforce passwords on Uploader, Editor or Contributor shares.
a| `OCIS_SPACES_MAX_QUOTA`
@@ -1128,7 +1128,7 @@ a| [subs=-attributes]
++0 ++
a| [subs=-attributes]
Set a global max quota for spaces in bytes. A value of 0 equals unlimited. If not using the global OCIS_SPACES_MAX_QUOTA, you must define the FRONTEND_MAX_QUOTA in the frontend service.
Set the global max quota value in bytes. A value of 0 equals unlimited. The value is provided via capabilities.
a| `OCIS_SYSTEM_USER_API_KEY`
@@ -1375,7 +1375,7 @@ a| [subs=-attributes]
++https://localhost:9200 ++
a| [subs=-attributes]
URL to load themes from. Will be prepended to the theme path.
URL of the OIDC issuer. It defaults to URL of the builtin IDP.
a| `REVA_GATEWAY`
@@ -1412,7 +1412,7 @@ a| [subs=-attributes]
++127.0.0.1:9142 ++
a| [subs=-attributes]
CS3 gateway used to look up user metadata
The CS3 gateway endpoint.
a| `STORAGE_TRANSFER_SECRET`