Address some linter warnings
Response bodies need to be closed
This commit is contained in:
1 parent
da9ed9fb77
commit
59f46ef36a
4 files changed
+56
-27
No files matched your search
@@ -41,7 +41,7 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++uid=libregraph,ou=sysusers,o=libregraph-idm ++
|
||||
++uid=idp,ou=sysusers,o=libregraph-idm ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP DN to use for simple bind authentication with the target LDAP server.
|
||||
@@ -80,7 +80,7 @@ a| [subs=-attributes]
|
||||
++~/.ocis/idm/ldap.crt ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Path/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the LDAP service. If not definied, the root directory derives from $OCIS_BASE_DATA_PATH:/idm.
|
||||
Path/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the LDAP service. If not definied, the root directory derives from $OCIS_BASE_DATA_PATH:/idp.
|
||||
|
||||
a| `LDAP_DISABLED_USERS_GROUP_DN`
|
||||
|
||||
@@ -109,10 +109,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++attribute ++
|
||||
++none ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
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'.
|
||||
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.
|
||||
|
||||
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 ('groupOfNames').
|
||||
The object class to use for groups in the default group search filter ('groupOfNames').
|
||||
|
||||
a| `LDAP_GROUP_SCHEMA_DISPLAYNAME`
|
||||
|
||||
@@ -210,7 +210,7 @@ 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.
|
||||
@@ -229,7 +229,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Set this to true if the defined 'id' attribute for groups is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the group IDs.
|
||||
Set this to true if the defined 'id' attribute for groups is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the group ID's.
|
||||
|
||||
a| `LDAP_GROUP_SCHEMA_MAIL`
|
||||
|
||||
@@ -314,7 +314,7 @@ a| [subs=-attributes]
|
||||
++ldaps://localhost:9235 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://' and 'ldap://'
|
||||
Url of the LDAP service to use as IDP.
|
||||
|
||||
a| `LDAP_USER_BASE_DN`
|
||||
|
||||
@@ -385,7 +385,7 @@ a| [subs=-attributes]
|
||||
++inetOrgPerson ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The object class to use for users in the default user search filter ('inetOrgPerson').
|
||||
LDAP User ObjectClass like 'inetOrgPerson'.
|
||||
|
||||
a| `LDAP_USER_SCHEMA_DISPLAYNAME`
|
||||
|
||||
@@ -416,10 +416,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++owncloudUUID ++
|
||||
++uid ++
|
||||
|
||||
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 User uuid attribute like 'uid'.
|
||||
|
||||
a| `LDAP_USER_SCHEMA_ID_IS_OCTETSTRING`
|
||||
|
||||
@@ -435,7 +435,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Set this to true if the defined 'id' attribute for users is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the user IDs.
|
||||
Set this to true if the defined 'id' attribute for users is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the user id's.
|
||||
|
||||
a| `LDAP_USER_SCHEMA_MAIL`
|
||||
|
||||
@@ -453,7 +453,7 @@ a| [subs=-attributes]
|
||||
++mail ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP Attribute to use for the email address of users.
|
||||
LDAP User email attribute like 'mail'.
|
||||
|
||||
a| `LDAP_USER_SCHEMA_USERNAME`
|
||||
|
||||
@@ -468,10 +468,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++uid ++
|
||||
++displayName ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP Attribute to use for username of users.
|
||||
LDAP User name attribute like 'displayName'.
|
||||
|
||||
a| `LDAP_USER_SCOPE`
|
||||
|
||||
@@ -517,13 +517,13 @@ a| [subs=attributes+]
|
||||
* xref:{s-path}/storage-users.adoc[storage-users] +
|
||||
|
||||
a| [subs=-attributes]
|
||||
++string ++
|
||||
++[]string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++ ++
|
||||
++[] ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
A comma-separated list of addresses to connect to. Only valid if the above setting is set to "etcd"
|
||||
Node addresses to use for the cache store.
|
||||
|
||||
a| `OCIS_CACHE_STORE_SIZE`
|
||||
|
||||
@@ -553,10 +553,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++ ++
|
||||
++memory ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The type of the cache store. Valid options are "noop", "ocmem", "etcd" and "memory"
|
||||
Store implementation for the cache. Valid values are "memory" (default), "redis", and "etcd".
|
||||
|
||||
a| `OCIS_CORS_ALLOW_CREDENTIALS`
|
||||
|
||||
@@ -671,7 +671,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services..
|
||||
Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services.
|
||||
|
||||
a| `OCIS_GRPC_CLIENT_TLS_CACERT`
|
||||
|
||||
@@ -832,7 +832,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Whether to verify the server TLS certificates.
|
||||
Whether the server should skip the client certificate verification during the TLS handshake.
|
||||
|
||||
a| `OCIS_JWT_SECRET`
|
||||
|
||||
@@ -1098,7 +1098,7 @@ a| [subs=-attributes]
|
||||
++https://localhost:9200 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The identity provider value to set in the userids of the CS3 user objects for users returned by this user provider.
|
||||
The OIDC issuer URL to use.
|
||||
|
||||
a| `OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD`
|
||||
|
||||
@@ -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.
|
||||
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.
|
||||
|
||||
a| `OCIS_SPACES_MAX_QUOTA`
|
||||
|
||||
@@ -1166,7 +1166,7 @@ a| [subs=-attributes]
|
||||
++ ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
ID of the oCIS storage-system system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format.
|
||||
ID of the oCIS STORAGE-SYSTEM system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format.
|
||||
|
||||
a| `OCIS_SYSTEM_USER_IDP`
|
||||
|
||||
@@ -1375,7 +1375,7 @@ a| [subs=-attributes]
|
||||
++https://localhost:9200 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The public facing URL of WebDAV.
|
||||
The OIDC issuer URL to use.
|
||||
|
||||
a| `REVA_GATEWAY`
|
||||
|
||||
@@ -1427,7 +1427,7 @@ a| [subs=-attributes]
|
||||
++ ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The storage transfer secret.
|
||||
Transfer secret for signing file up- and download requests.
|
||||
|
||||
a| `STORAGE_USERS_OCIS_ASYNC_UPLOADS`
|
||||
|
||||
|
||||
@@ -317,6 +317,24 @@ a| [subs=-attributes]
|
||||
a| [subs=-attributes]
|
||||
The secret to mint and validate JWT tokens.
|
||||
|
||||
a|`PROXY_ROLE_ASSIGNMENT_DRIVER` +
|
||||
|
||||
a| [subs=-attributes]
|
||||
++string ++
|
||||
a| [subs=-attributes]
|
||||
++default ++
|
||||
a| [subs=-attributes]
|
||||
The mechanism that should be used to assign roles to user upon login. Supported values: 'default' or 'oidc'. 'default' will assign the role 'user' to users which don't have a role assigned at the time they login. 'oidc' will assign the role based on the value of a claim (configured via PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM) from the users OIDC claims.
|
||||
|
||||
a|`PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM` +
|
||||
|
||||
a| [subs=-attributes]
|
||||
++string ++
|
||||
a| [subs=-attributes]
|
||||
++roles ++
|
||||
a| [subs=-attributes]
|
||||
The OIDC claim used to create the users role assignment.
|
||||
|
||||
a|`PROXY_ENABLE_PRESIGNEDURLS` +
|
||||
|
||||
a| [subs=-attributes]
|
||||
|
||||
@@ -123,6 +123,15 @@ oidc:
|
||||
rewrite_well_known: false
|
||||
token_manager:
|
||||
jwt_secret: ""
|
||||
role_assignment:
|
||||
driver: default
|
||||
oidc_role_mapper:
|
||||
role_claim: roles
|
||||
role_mapping:
|
||||
admin: ocisAdmin
|
||||
guest: ocisGuest
|
||||
spaceadmin: ocisSpaceAdmin
|
||||
user: ocisUser
|
||||
policy_selector:
|
||||
static:
|
||||
policy: ocis
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
| PROXY_OIDC_JWKS_REFRESH_UNKNOWN_KID | bool | true | If set to 'true', the JWKS refresh request will occur every time an unknown KEY ID (KID) is seen. Always set a 'refresh_limit' when enabling this.|
|
||||
| PROXY_OIDC_REWRITE_WELLKNOWN | bool | false | Enables rewriting the /.well-known/openid-configuration to the configured OIDC issuer. Needed by the Desktop Client, Android Client and iOS Client to discover the OIDC provider.|
|
||||
| OCIS_JWT_SECRET<br/>PROXY_JWT_SECRET | string | | The secret to mint and validate JWT tokens.|
|
||||
| PROXY_ROLE_ASSIGNMENT_DRIVER | string | default | The mechanism that should be used to assign roles to user upon login. Supported values: 'default' or 'oidc'. 'default' will assign the role 'user' to users which don't have a role assigned at the time they login. 'oidc' will assign the role based on the value of a claim (configured via PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM) from the users OIDC claims.|
|
||||
| PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM | string | roles | The OIDC claim used to create the users role assignment.|
|
||||
| PROXY_ENABLE_PRESIGNEDURLS | bool | true | Allow OCS to get a signing key to sign requests.|
|
||||
| PROXY_ACCOUNT_BACKEND_TYPE | string | cs3 | Account backend the PROXY service should use. Currently only 'cs3' is possible here.|
|
||||
| PROXY_USER_OIDC_CLAIM | string | preferred_username | The name of an OpenID Connect claim that is used for resolving users with the account backend. The value of the claim must hold a per user unique, stable and non re-assignable identifier. The availability of claims depends on your Identity Provider. There are common claims available for most Identity providers like 'email' or 'preferred_user' but you can also add your own claim.|
|
||||
|
||||
Reference in new issue
Block a user