Need 'bool invalidate' flag in dynamic auth API to help user process invalidate cred cache on auth failures

Description

Please refer to lengthy discussions on . Since lcb 3.x dropped the caching of cbauth creds (which is present in 2.x) and eventing started maintaining the cache, a hint/flag is required in dynamic auth API to indicate to eventing (or any process that integrates lcb) to invalidate any cached creds on auth failures within lcb. Implementors of the API may or may not use the flag depending on whether they are caching creds or not.

It will be very useful for eventing to avoid any regressions between 6.6.x & 7.x and remain functionally equivalent till an ideal solution which involves cbauth notifying listeners on creds change in available.

In addition GetUsername() & GetPassword() APIs can both be collapsed into a single GetUserNameAndPassword(void cookie, const char *host, const char *port, const char *bucket, *bool invalidate) API.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot October 8, 2021 at 8:26 AM

Build couchbase-server-7.1.0-1450 contains libcouchbase commit 94bcd1f with commit message:
: refactor dynamic authenticator

CB robot June 7, 2021 at 2:41 PM

Build couchbase-server-7.1.0-1007 contains libcouchbase commit 8781fc9 with commit message:
: refactor dynamic authenticator

CB robot June 4, 2021 at 10:51 PM

Build couchbase-server-7.0.1-5827 contains libcouchbase commit 8781fc9 with commit message:
: refactor dynamic authenticator

CB robot June 4, 2021 at 7:31 PM

Build couchbase-server-7.0.0-5273 contains libcouchbase commit 8781fc9 with commit message:
: refactor dynamic authenticator

Sergey Auseyau May 28, 2021 at 9:34 AM

I've uploaded patch: http://review.couchbase.org/c/libcouchbase/+/154650. , please review and confirm that it is enough to implement cache for credentials on eventing side.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Fix versions

Story Points

Components

Labels

Reporter

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created May 26, 2021 at 9:32 AM
Updated October 8, 2021 at 8:26 AM
Resolved June 3, 2021 at 6:52 AM
Instabug