From f8a7cc18bca215ae94eb45aa25546e96607d44ab Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 3 Nov 2022 11:36:38 +0000 Subject: [PATCH] commit 56026686346f42d4a7b9e12cc04b287bbb3497bd Author: Martin Date: Thu Nov 3 12:31:57 2022 +0100 Add the missing auth providers to AUTH_BASIC_AUTH_PROVIDER description (#4923) * Add the missing auth providers to AUTH_BASIC_AUTH_PROVIDER description * fix strings on more locations * WOPIDriver * Apply suggestions from code review * Update services/users/pkg/config/config.go --- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- services/_includes/adoc/auth-basic_configvars.adoc | 2 +- services/_includes/adoc/groups_configvars.adoc | 7 +++++++ services/_includes/adoc/users_configvars.adoc | 2 +- services/_includes/auth-basic_configvars.md | 2 +- services/_includes/groups_configvars.md | 1 + services/_includes/users_configvars.md | 2 +- 14 files changed, 20 insertions(+), 12 deletions(-) diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index 2b96d1896e6..3c14336c86e 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index 1d517e113eb..9dd4a3498f3 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index 6ce60b7ce58..995bc329fd1 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index cc165ce6c4e..49e8f77a4dd 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 58a7e099289..1f098925abc 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index d032ea0a492..c98007698d3 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index 1a28033d60c..a83c1a5caf9 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index 0a2ee77ec41..99e94daae26 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-11-03T11:31:19Z +date: 2022-11-03T11:35:38Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/services/_includes/adoc/auth-basic_configvars.adoc b/services/_includes/adoc/auth-basic_configvars.adoc index 712a735f936..ffba2da911d 100644 --- a/services/_includes/adoc/auth-basic_configvars.adoc +++ b/services/_includes/adoc/auth-basic_configvars.adoc @@ -168,7 +168,7 @@ a| [subs=-attributes] a| [subs=-attributes] ++ldap ++ a| [subs=-attributes] -The auth provider which should be used by the service like 'ldap'. +The authentication provider to check if credentials are valid. Supported values are 'ldap' and 'owncloudsql'. |`LDAP_URI` + `AUTH_BASIC_LDAP_URI` a| [subs=-attributes] diff --git a/services/_includes/adoc/groups_configvars.adoc b/services/_includes/adoc/groups_configvars.adoc index a0824bb55f0..40d611e487d 100644 --- a/services/_includes/adoc/groups_configvars.adoc +++ b/services/_includes/adoc/groups_configvars.adoc @@ -162,6 +162,13 @@ a| [subs=-attributes] ++false ++ a| [subs=-attributes] Disables the loading of user's group memberships from the reva access token. +|`GROUPS_DRIVER` +a| [subs=-attributes] +++string ++ +a| [subs=-attributes] +++ldap ++ +a| [subs=-attributes] +The driver which should be used by the groups service. Supported values are 'ldap' and 'owncloudsql'. |`LDAP_URI` + `GROUPS_LDAP_URI` a| [subs=-attributes] diff --git a/services/_includes/adoc/users_configvars.adoc b/services/_includes/adoc/users_configvars.adoc index 84dff22ff43..22e57be355a 100644 --- a/services/_includes/adoc/users_configvars.adoc +++ b/services/_includes/adoc/users_configvars.adoc @@ -168,7 +168,7 @@ a| [subs=-attributes] a| [subs=-attributes] ++ldap ++ a| [subs=-attributes] -The user driver which should be used by the users service. Supported values are 'ldap', 'owncloudsql', 'json' and 'rest'. +The driver which should be used by the users service. Supported values are 'ldap' and 'owncloudsql'. |`LDAP_URI` + `USERS_LDAP_URI` a| [subs=-attributes] diff --git a/services/_includes/auth-basic_configvars.md b/services/_includes/auth-basic_configvars.md index f214476a0bd..0342fc723b4 100644 --- a/services/_includes/auth-basic_configvars.md +++ b/services/_includes/auth-basic_configvars.md @@ -23,7 +23,7 @@ | REVA_GATEWAY | string | 127.0.0.1:9142 | The CS3 gateway endpoint.| | OCIS_GRPC_CLIENT_TLS_MODE | string | | TLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows to use transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server ceritificate verification.| | AUTH_BASIC_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the encoding of the user's group memberships in the reva access token. This reduces the token size, especially when users are members of a large number of groups.| -| AUTH_BASIC_AUTH_PROVIDER | string | ldap | The auth provider which should be used by the service like 'ldap'.| +| AUTH_BASIC_AUTH_PROVIDER | string | ldap | The authentication provider to check if credentials are valid. Supported values are 'ldap' and 'owncloudsql'.| | LDAP_URI
AUTH_BASIC_LDAP_URI | string | ldaps://localhost:9235 | URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://' and 'ldap://'| | LDAP_CACERT
AUTH_BASIC_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty the system default CA bundle will be used.| | LDAP_INSECURE
AUTH_BASIC_LDAP_INSECURE | bool | false | Disable TLS certificate validation for the LDAP connections. Do not set this in production environments.| diff --git a/services/_includes/groups_configvars.md b/services/_includes/groups_configvars.md index 1f4acf261bf..2d2ccfeea3b 100644 --- a/services/_includes/groups_configvars.md +++ b/services/_includes/groups_configvars.md @@ -23,6 +23,7 @@ | REVA_GATEWAY | string | 127.0.0.1:9142 | The CS3 gateway endpoint.| | OCIS_GRPC_CLIENT_TLS_MODE | string | | TLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows to use transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server ceritificate verification.| | GROUPS_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.| +| GROUPS_DRIVER | string | ldap | The driver which should be used by the groups service. Supported values are 'ldap' and 'owncloudsql'.| | LDAP_URI
GROUPS_LDAP_URI | string | ldaps://localhost:9235 | URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://' and 'ldap://'| | LDAP_CACERT
GROUPS_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty, the system default CA bundle will be used.| | LDAP_INSECURE
GROUPS_LDAP_INSECURE | bool | false | Disable TLS certificate validation for the LDAP connections. Do not set this in production environments.| diff --git a/services/_includes/users_configvars.md b/services/_includes/users_configvars.md index a207c77765f..35232e4db48 100644 --- a/services/_includes/users_configvars.md +++ b/services/_includes/users_configvars.md @@ -23,7 +23,7 @@ | REVA_GATEWAY | string | 127.0.0.1:9142 | The CS3 gateway endpoint.| | OCIS_GRPC_CLIENT_TLS_MODE | string | | TLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows to use transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server ceritificate verification.| | USERS_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.| -| USERS_DRIVER | string | ldap | The user driver which should be used by the users service. Supported values are 'ldap', 'owncloudsql', 'json' and 'rest'.| +| USERS_DRIVER | string | ldap | The driver which should be used by the users service. Supported values are 'ldap' and 'owncloudsql'.| | LDAP_URI
USERS_LDAP_URI | string | ldaps://localhost:9235 | URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://' and 'ldap://'| | LDAP_CACERT
USERS_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty, the system default CA bundle will be used.| | LDAP_INSECURE
USERS_LDAP_INSECURE | bool | false | Disable TLS certificate validation for the LDAP connections. Do not set this in production environments.|