[3.1.4 backport] Perform allow_dbconfig_env_vars check in getAuthScopeHandleCreateDB

Description

getAuthScopeHandleCreateDB uses DecodeAndSanitiseConfig when scanning the incoming config to find the bucket being used.  This is going to trigger environment variable validation on the config, leading to confusing errors.

The subsequent actual config persistence correctly uses readSanitizeDbConfigJSON which applies the AllowDbConfigEnvVars check, so it's not the case that environment variables will be applied.  However, we should switch getAuthScopeHandleCreateDB to either use readSanitizeDbConfigJSON, or something else more tailored to bucket retrieval that also bypasses the environment variable check.

Activity

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

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 20, 2024 at 3:32 PM
Updated August 31, 2024 at 10:59 AM
Resolved March 5, 2024 at 5:45 PM
Instabug