Skip to content

fix(rds): render ModifyDBCluster fields in DescribeDBClusters#1797

Merged
vieiralucas merged 1 commit into
mainfrom
fix/rds-modifydbcluster-render
Jun 20, 2026
Merged

fix(rds): render ModifyDBCluster fields in DescribeDBClusters#1797
vieiralucas merged 1 commit into
mainfrom
fix/rds-modifydbcluster-render

Conversation

@vieiralucas

@vieiralucas vieiralucas commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

ModifyDBCluster persisted ~20 mutable cluster fields, but the DescribeDBClusters XML renderer only emitted a subset — so a describe after a modify echoed the create-time defaults for StorageType, Iops, BacktrackWindow, IAMDatabaseAuthenticationEnabled, ServerlessV2ScalingConfiguration, the monitoring / performance-insights fields, and others. The data was already in state; only the renderer lagged (a pure render gap).

Fix: render the omitted scalar fields (string/int/bool) and the nested ServerlessV2ScalingConfiguration element, excluding the keys already emitted so nothing double-renders.

Found by the 2026-06-20 bug-hunt audit (finding 1.17).

Test plan

  • describe_db_clusters_renders_modified_fields — modifies StorageType/Iops/BacktrackWindow/IAM-auth/ServerlessV2 and asserts DescribeDBClusters XML now contains each.
  • Full RDS suite: 219 passed.
  • cargo clippy -p fakecloud-rds --all-targets -- -D warnings clean.

Summary by cubic

Fixes DescribeDBClusters XML to include fields updated by ModifyDBCluster, so describes now reflect changes instead of create-time defaults. Adds the nested ServerlessV2ScalingConfiguration and missing scalar fields like StorageType, Iops, BacktrackWindow, and IAM auth.

  • Bug Fixes
    • Render previously omitted scalar fields (string/int/bool) and the nested ServerlessV2ScalingConfiguration from flattened keys.
    • Added describe_db_clusters_renders_modified_fields test; full RDS suite passes and clippy is clean.

Written for commit 3c444ea. Summary will update on new commits.

Review in cubic

ModifyDBCluster persisted ~20 mutable cluster fields, but the
DescribeDBClusters XML renderer only emitted a subset -- so a describe
after a modify echoed the create-time defaults for StorageType, Iops,
BacktrackWindow, IAMDatabaseAuthenticationEnabled,
ServerlessV2ScalingConfiguration, the monitoring/performance-insights
fields, and others. The data was in state; only the renderer lagged.

Render the omitted scalar fields (string/int/bool) and the nested
ServerlessV2ScalingConfiguration element, excluding the keys already
emitted above so nothing double-renders.

- crates/fakecloud-rds/src/extras/xml_renderers.rs
- test: describe_db_clusters_renders_modified_fields
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vieiralucas vieiralucas merged commit 2fb92b6 into main Jun 20, 2026
68 of 69 checks passed
@vieiralucas vieiralucas deleted the fix/rds-modifydbcluster-render branch June 20, 2026 16:56
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.

1 participant