Skip to content

Commit

Permalink
Merge pull request #5997 from aduffeck/fix-oidc-cache
Browse files Browse the repository at this point in the history
Fix OIDC cache
  • Loading branch information
aduffeck committed Apr 3, 2023
1 parent f073a62 commit ed8fd97
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 56 deletions.
66 changes: 33 additions & 33 deletions services/_includes/adoc/global_configvars.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 defined, 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 defined, the root directory derives from $OCIS_BASE_DATA_PATH:/idp.

a| `LDAP_DISABLED_USERS_GROUP_DN`

Expand Down Expand Up @@ -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`

Expand Down Expand Up @@ -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 like 'groupOfNames'.

a| `LDAP_GROUP_SCHEMA_DISPLAYNAME`

Expand Down Expand Up @@ -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`

Expand Down Expand Up @@ -278,7 +278,7 @@ a| [subs=-attributes]
++sub ++

a| [subs=-attributes]
LDAP search scope to use when looking up groups. Supported scopes are 'base', 'one' and 'sub'.
LDAP search scope to use when looking up groups. Supported values are 'base', 'one' and 'sub'.

a| `LDAP_INSECURE`

Expand Down Expand Up @@ -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`

Expand Down Expand Up @@ -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`

Expand Down Expand Up @@ -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`

Expand All @@ -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 id's.
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`

Expand All @@ -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`

Expand All @@ -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_SCHEMA_USER_TYPE`

Expand All @@ -483,7 +483,7 @@ a| [subs=-attributes]
++string ++

a| [subs=-attributes]
++ownCloudUserType ++
++ ++

a| [subs=-attributes]
LDAP Attribute to distinguish between 'Member' and 'Guest' users. Default is 'ownCloudUserType'.
Expand Down Expand Up @@ -539,7 +539,7 @@ a| [subs=-attributes]
++memory ++

a| [subs=-attributes]
Store implementation for the cache. Supported values are 'memory' (default), 'redis', 'redis-sentinel', 'nats-js', and 'etcd'. See the text description for details.
Store implementation for the cache. Valid values are "memory" (default), "redis", and "etcd".

a| `OCIS_CACHE_STORE_ADDRESS`

Expand All @@ -555,7 +555,7 @@ a| [subs=-attributes]
++[] ++

a| [subs=-attributes]
A comma separated list of nodes to access the configured store. This has no effect when the 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store.
Nodes to use for the cache store.

a| `OCIS_CACHE_STORE_ADDRESSES`

Expand Down Expand Up @@ -590,7 +590,7 @@ a| [subs=-attributes]
++[] ++

a| [subs=-attributes]
A comma separated list of nodes to access the configured store. This has no effect when the 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store.
Nodes to use for the cache store.

a| `OCIS_CACHE_STORE_SIZE`

Expand All @@ -606,7 +606,7 @@ a| [subs=-attributes]
++0 ++

a| [subs=-attributes]
The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512.
The maximum quantity of items in the user info cache. Only applies when store type 'ocmem' is configured. Defaults to 512.

a| `OCIS_CACHE_STORE_TTL`

Expand All @@ -619,13 +619,13 @@ a| [subs=attributes+]
* xref:{s-path}/proxy.adoc[proxy] +

a| [subs=-attributes]
++Duration ++
++int ++

a| [subs=-attributes]
++0s ++
++300 ++

a| [subs=-attributes]
Time to live for events in the store. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '336h' (2 weeks).
Max TTL in seconds for the gateway's stat cache.

a| `OCIS_CACHE_STORE_TYPE`

Expand All @@ -640,10 +640,10 @@ a| [subs=-attributes]
++string ++

a| [subs=-attributes]
++ ++
++memory ++

a| [subs=-attributes]
The type of the cache store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details.
Store implementation for the cache. Valid values are "memory" (default), "redis", and "etcd".

a| `OCIS_CORS_ALLOW_CREDENTIALS`

Expand All @@ -660,7 +660,7 @@ a| [subs=-attributes]
++bool ++

a| [subs=-attributes]
++false ++
++true ++

a| [subs=-attributes]
Allow credentials for CORS.See following chapter for more details: *Access-Control-Allow-Credentials* at \https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials.
Expand All @@ -680,7 +680,7 @@ a| [subs=-attributes]
++[]string ++

a| [subs=-attributes]
++[] ++
++[Authorization Origin Content-Type Accept X-Requested-With] ++

a| [subs=-attributes]
A comma-separated list of allowed CORS headers. See following chapter for more details: *Access-Control-Request-Headers* at \https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers.
Expand All @@ -700,7 +700,7 @@ a| [subs=-attributes]
++[]string ++

a| [subs=-attributes]
++[] ++
++[GET] ++

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
Expand Down Expand Up @@ -928,7 +928,7 @@ a| [subs=-attributes]
++false ++

a| [subs=-attributes]
Allow insecure connections to the OIDC issuer.
Whether to verify the server TLS certificates.

a| `OCIS_JWT_SECRET`

Expand Down Expand Up @@ -1249,7 +1249,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`

Expand All @@ -1264,7 +1264,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`

Expand Down Expand Up @@ -1302,7 +1302,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`

Expand Down
2 changes: 1 addition & 1 deletion services/antivirus/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Antivirus Service
date: 2023-04-03T10:59:27.977320638Z
date: 2023-04-03T12:51:57.425865158Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/antivirus
Expand Down
2 changes: 1 addition & 1 deletion services/audit/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Audit service
date: 2023-04-03T10:59:27.977500617Z
date: 2023-04-03T12:51:57.426455607Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/audit
Expand Down
2 changes: 1 addition & 1 deletion services/auth-basic/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Auth-Basic Service
date: 2023-04-03T10:59:27.977589705Z
date: 2023-04-03T12:51:57.426562331Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/auth-basic
Expand Down
2 changes: 1 addition & 1 deletion services/auth-bearer/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Auth-Bearer Service
date: 2023-04-03T10:59:27.977688131Z
date: 2023-04-03T12:51:57.426670508Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/auth-bearer
Expand Down
2 changes: 1 addition & 1 deletion services/eventhistory/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Eventhistory Service
date: 2023-04-03T10:59:27.977806354Z
date: 2023-04-03T12:51:57.426760731Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/eventhistory
Expand Down
2 changes: 1 addition & 1 deletion services/frontend/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Frontend Service
date: 2023-04-03T10:59:27.97792087Z
date: 2023-04-03T12:51:57.426879989Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/frontend
Expand Down
2 changes: 1 addition & 1 deletion services/graph/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Graph service
date: 2023-04-03T10:59:27.978034183Z
date: 2023-04-03T12:51:57.426979249Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/graph
Expand Down
2 changes: 1 addition & 1 deletion services/idm/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Idm
date: 2023-04-03T10:59:27.978135775Z
date: 2023-04-03T12:51:57.427124707Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/idm
Expand Down
2 changes: 1 addition & 1 deletion services/idp/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: IDP Service
date: 2023-04-03T10:59:27.97824474Z
date: 2023-04-03T12:51:57.427226221Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/idp
Expand Down
2 changes: 1 addition & 1 deletion services/invitations/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Invitations Service
date: 2023-04-03T10:59:27.9783508Z
date: 2023-04-03T12:51:57.427332876Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/invitations
Expand Down
2 changes: 1 addition & 1 deletion services/nats/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Nats Service
date: 2023-04-03T10:59:27.978480023Z
date: 2023-04-03T12:51:57.427451201Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/nats
Expand Down
2 changes: 1 addition & 1 deletion services/notifications/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Notification service
date: 2023-04-03T10:59:27.978594229Z
date: 2023-04-03T12:51:57.427558728Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/notifications
Expand Down
2 changes: 1 addition & 1 deletion services/policies/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Policies Service
date: 2023-04-03T10:59:27.978743008Z
date: 2023-04-03T12:51:57.42768571Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/policies
Expand Down
2 changes: 1 addition & 1 deletion services/postprocessing/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Postprocessing Service
date: 2023-04-03T10:59:27.978893372Z
date: 2023-04-03T12:51:57.42783707Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/postprocessing
Expand Down
2 changes: 1 addition & 1 deletion services/proxy/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Proxy Service
date: 2023-04-03T10:59:27.979043896Z
date: 2023-04-03T12:51:57.427960415Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/proxy
Expand Down
2 changes: 1 addition & 1 deletion services/search/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Search Service
date: 2023-04-03T10:59:27.97920055Z
date: 2023-04-03T12:51:57.428121023Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/search
Expand Down
2 changes: 1 addition & 1 deletion services/storage-system/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Storage-System Service
date: 2023-04-03T10:59:27.979368007Z
date: 2023-04-03T12:51:57.428281389Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/storage-system
Expand Down
Loading

0 comments on commit ed8fd97

Please sign in to comment.