Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgwire: new env var COCKROACH_ALWAYS_LOG_AUTHN_EVENTS #58379

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

knz
Copy link
Contributor

@knz knz commented Dec 30, 2020

Requested by @logston . Intended for back-port to v20.2.

This commit adds support for a new env var
COCKROACH_ALWAYS_LOG_AUTHN_EVENTS. When set to a true-like value, it
overrides the server.auth_log.sql_sessions.enabled cluster setting
and unconditionally enables logging of authentication events.

This is a temporary stop-gap so that it becomes possible to log
authentication events in SQL pods for multi-tenant deployments. This
stop-gap can be removed when multi-tenant CockroachDB learns to
support cluster settings.

Release note: None

This commit adds support for a new env var
`COCKROACH_ALWAYS_LOG_AUTHN_EVENTS`. When set to a true-like value, it
overrides the `server.auth_log.sql_sessions.enabled` cluster setting
and unconditionally enables logging of authentication events.

This is a temporary stop-gap so that it becomes possible to log
authentication events in SQL pods for multi-tenant deployments. This
stop-gap can be removed when multi-tenant CockroachDB learns to
support cluster settings.

Release note: None
@knz knz requested a review from andy-kimball December 30, 2020 18:03
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz
Copy link
Contributor Author

knz commented Jan 6, 2021

thanks

bors r=bdarnell

@craig
Copy link
Contributor

craig bot commented Jan 6, 2021

Build succeeded:

@craig craig bot merged commit 42b3e31 into cockroachdb:master Jan 6, 2021
@knz knz deleted the 20201230-auth-log-force branch January 6, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants