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

revoke deployer key from timelock admin #15710

Merged
merged 6 commits into from
Dec 16, 2024

Conversation

krehermann
Copy link
Contributor

@krehermann krehermann commented Dec 16, 2024

KS-655

Requires

Supports

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 02d721d (ks-655/tl-revoke-deployer-key).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestRevokeTimelockDeployer 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/common/changeset false 560ms @smartcontractkit/ccip, @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

github-actions bot commented Dec 16, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 6e43f5d (ks-655/tl-revoke-deployer-key).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestRenounceTimelockDeployer 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/common/changeset false 560ms @smartcontractkit/ccip, @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

@akhilchainani akhilchainani marked this pull request as ready for review December 16, 2024 18:34
@akhilchainani akhilchainani requested review from a team as code owners December 16, 2024 18:34
akhilchainani
akhilchainani previously approved these changes Dec 16, 2024
@krehermann krehermann enabled auto-merge December 16, 2024 18:45
connorwstein
connorwstein previously approved these changes Dec 16, 2024
@akhilchainani akhilchainani dismissed stale reviews from bolekk, connorwstein, and themself via f36a558 December 16, 2024 18:51
if err != nil {
return deployment.ChangesetOutput{}, err
}
tl := contracts[cfg.ChainSel].Timelock
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth changing to the tl, ok := contracts[cfg.ChainSel] otherwise if nil it can throw a nil pointer panic

if err != nil {
return deployment.ChangesetOutput{}, fmt.Errorf("failed to revoke deployer key: %w", err)
}
if _, err := deployment.ConfirmIfNoError(e.Chains[cfg.ChainSel], tx, err); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to allow this to happen also via an mcms proposal? if so maybe we'll need to add conditional logic depending on the config similar to this one:

so users can decide if they want to execute right away or via an mcms proposal

Copy link
Contributor

Choose a reason for hiding this comment

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

this is not an MCMS proposal, this is done from an EOA since the deployer key has admin role and it renounces its own role

@krehermann krehermann added this pull request to the merge queue Dec 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 16, 2024
@connorwstein connorwstein added this pull request to the merge queue Dec 16, 2024
Merged via the queue into develop with commit 74d6b5a Dec 16, 2024
172 checks passed
@connorwstein connorwstein deleted the ks-655/tl-revoke-deployer-key branch December 16, 2024 20:47
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.

5 participants