Skip to content

Avoid mutating caller relying-party options - #509

Merged
santiagorodriguez96 merged 1 commit into
cedarcode:masterfrom
OskarEichler:audit/preserve-rp-options
Sep 3, 2026
Merged

Avoid mutating caller relying-party options#509
santiagorodriguez96 merged 1 commit into
cedarcode:masterfrom
OskarEichler:audit/preserve-rp-options

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

CreationOptions currently fills name and id in the caller-owned rp hash. Duplicate it before applying defaults so option construction has no external side effect. Verified with the full 502-example suite, a focused mutation model, RuboCop, and syntax checks on Ruby 4.0 and Ruby 3.2.11.

@santiagorodriguez96 santiagorodriguez96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@santiagorodriguez96
santiagorodriguez96 merged commit 54fd2ff into cedarcode:master Sep 3, 2026
49 checks passed
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.

2 participants