Skip to content

direct: map secrets remote in DoRead/DoCreate/DoUpdate; drop RemapState - #6809

Draft
denik wants to merge 1 commit into
mainfrom
denik/secrets-normalize-prep
Draft

denik wants to merge 1 commit into
mainfrom
denik/secrets-normalize-prep

Conversation

@denik

@denik denik commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Prep toward replacing hand-written RemapState with the automatic copier.

ResourceSecret's RemapState renamed effective_value/effective_owner to value/owner and dropped output-only fields. This moves that transform into a shared remapSecretRemote helper applied at every remote-producing path (DoRead/DoCreate/DoUpdate), so the remote is already mapped and RemapState becomes an identity no-op — removed.

Plan remote_state now shows the mapped value/owner and omits output-only fields; the direct-only update-value golden is regenerated. secrets acceptance passes.

This pull request and its description were written by Isaac.

ResourceSecret's RemapState renamed effective_value/effective_owner to
value/owner and dropped output-only fields. Move that into a shared
remapSecretRemote helper applied wherever the remote is produced
(DoRead/DoCreate/DoUpdate), so the remote is already mapped and RemapState
becomes an identity no-op. Remove it; the adapter returns the remote unchanged.

Plan remote_state now shows the mapped value/owner and omits output-only fields;
the direct-only update-value golden is regenerated.

Prep for replacing RemapState with the automatic copier.

Co-authored-by: Isaac <[email protected]>
@github-actions github-actions Bot added the DABs DABs related issues label Sep 23, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: b51daa3

Run: 35848617243

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 16 5:16
✅​ aws windows 278 14 3:36
✅​ azure linux 275 16 5:55
✅​ azure windows 277 14 3:51
✅​ gcp linux 276 16 4:50
✅​ gcp windows 278 14 4:07
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:33 azure windows TestAccept
3:30 gcp windows TestAccept
3:30 aws windows TestAccept

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants