[3.0.9 backport] Enforce "bucket" field match in DbConfig

Description

Database configs store a "bucket" field - which in most cases points to the "owning" bucket of the config.

This assumption falls apart when a bucket's contents (including dbconfig) are moved to another bucket (via backup/restore or XDCR)

 

We should enforce the "bucket" field in the dbconfig matches on both insert (which we already do), and on load to prevent backed up/restored buckets from being used by SG unintentionally.

Need to ensure that databases and config config overwrite is allowed for already existing and mismatched configs (e.g. a backup/restored bucket can be used after an explicit update to fix the bucket field)

Activity

Show:

Tor Colvin September 27, 2023 at 3:35 PM

Mitigated with and is too challenging.

Adam Fraser September 19, 2023 at 4:01 PM

Evaluate options for this handling in 3.0.9. May be preferable to just implement , if it's too risky to backport .

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

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created September 19, 2023 at 4:00 PM
Updated August 31, 2024 at 10:59 AM
Resolved September 27, 2023 at 3:35 PM
Instabug