Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPA-1519]: feat(solana): allow override authority on Configurer #329

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

graham-chainlink
Copy link
Contributor

When executing SetConfig via MCMS, the authority has to be the timelock signer, the current implementation does not allow any override and only accepts the auth or deploykey as the authority.

JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1519

@graham-chainlink graham-chainlink requested a review from a team as a code owner March 5, 2025 14:55
Copy link

changeset-bot bot commented Mar 5, 2025

🦋 Changeset detected

Latest commit: 635b70a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@smartcontractkit/mcms Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graham-chainlink graham-chainlink changed the title [DPA-1519]: feat(solana): override authority on Configurer [DPA-1519]: feat(solana): allow override authority on Configurer Mar 5, 2025
@@ -118,6 +132,20 @@ func TestConfigurer_SetConfig(t *testing.T) {
bindings.NewSetConfigInstructionBuilder().Build(),
},
},
{
name: "success - override authority",
auth: auth,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not super happy with the current testing coverage as it ignores a bunch of relevant details, but something to come back and improve.

@graham-chainlink graham-chainlink force-pushed the ggoh/configure-authority branch from b04fa9e to f865c5f Compare March 5, 2025 15:39
When executing SetConfig via MCMS, the authority has to be the timelock signer, the current implementation does not allow any override and only accepts the `auth` or deploykey as the authority.

JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1519
@graham-chainlink graham-chainlink force-pushed the ggoh/configure-authority branch from f865c5f to 635b70a Compare March 5, 2025 15:41
Copy link
Contributor

@gustavogama-cll gustavogama-cll left a comment

Choose a reason for hiding this comment

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

what's the use case for this? IIRC, in the review of the original PR, i remember we decided we wouldn't need something like this.

@ecPablo
Copy link
Collaborator

ecPablo commented Mar 5, 2025

what's the use case for this? IIRC, in the review of the original PR, i remember we decided we wouldn't need something like this.

So the main reason for this, is because in order to call setconfig via an MCMS proposal, we need to override the authority to be the timelock signer PDA instead of the deployer keys.

@graham-chainlink
Copy link
Contributor Author

what's the use case for this? IIRC, in the review of the original PR, i remember we decided we wouldn't need something like this.

@gustavogama-cll the use case is related to my SetConfig changset PR, currrently the test is failing because we have to provide the timelock signer PDA as the authority instead of the deployerKey

@gustavogama-cll
Copy link
Contributor

what's the use case for this? IIRC, in the review of the original PR, i remember we decided we wouldn't need something like this.

@gustavogama-cll the use case is related to my SetConfig changset PR, currrently the test is failing because we have to provide the timelock signer PDA as the authority instead of the deployerKey

Hmm... then I think we made a bad decision to change the functional option after this discussion. There doesn't seem to be a valid use case for using the two options (WithDoNotSendTransaction and WithAuthority) independently.

@graham-chainlink
Copy link
Contributor Author

Hmm... then I think we made a bad decision to change the functional option after this discussion. There doesn't seem to be a valid use case for using the two options (WithDoNotSendTransaction and WithAuthority) independently.

I wonder should we combine them into 1 then, like withMCMSExecution(accountAuthority)? @ecPablo @gustavogama-cll

@gustavogama-cll
Copy link
Contributor

I wonder should we combine them into 1 then, like withMCMSExecution(accountAuthority)? @ecPablo @gustavogama-cll

I'd leave it as is. WithMCMSExecution sounds odd. At least the current options name meaningful names. And, who knows, maybe we'll find use cases for each in the future.

@graham-chainlink graham-chainlink added this pull request to the merge queue Mar 5, 2025
Merged via the queue into main with commit 031adfb Mar 5, 2025
16 checks passed
@graham-chainlink graham-chainlink deleted the ggoh/configure-authority branch March 5, 2025 17:16
github-merge-queue bot pushed a commit that referenced this pull request Mar 5, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @smartcontractkit/[email protected]

### Minor Changes

- [#329](#329)
[`031adfb`](031adfb)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! -
feat(solana): override authority on Configurer

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
ecPablo pushed a commit that referenced this pull request Mar 21, 2025
When executing SetConfig via MCMS, the authority has to be the timelock
signer, the current implementation does not allow any override and only
accepts the `auth` or deploykey as the authority.

JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1519
ecPablo pushed a commit that referenced this pull request Mar 21, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @smartcontractkit/[email protected]

### Minor Changes

- [#329](#329)
[`031adfb`](031adfb)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! -
feat(solana): override authority on Configurer

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
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.

3 participants