-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add SetAuthorityChecked instruction to bpf loader #28424
Add SetAuthorityChecked instruction to bpf loader #28424
Conversation
as for the cli changes, there are a couple ways to do this:
thoughts? |
I prefer 2) as well but cli changes should be done in a separate PR |
Co-authored-by: Justin Starry <[email protected]>
automerge label removed due to a CI failure |
@0xripleys can you please fix up the checks |
not done fixing CI yet (trying to run CI locally on my mac but having some issues) |
ok the checks test should pass. i ran the other tests locally as well but ran into what i think are flakes + some mac specific issues. @jstarry do you mind running the CI again? |
@jstarry noob question, do i have to do anything (eg merge master into my branch) to kick off the other CI jobs? |
Nope, sorry that's my responsibility. In the past the CI label wasn't required, looks like it is now, thanks for the ping on that. |
* SetAuthorityChecked * restore old logic for loader * add more upgrade authority checked test cases * setBufferAuthority checked tests * format * add set_buffer_authority_checked instruction to sdk * Update transaction-status/src/parse_bpf_loader.rs Co-authored-by: Justin Starry <[email protected]> * add is_set_authority_checked function * fix set_buffer_authority_checked sdk instruction * feature gate setAuthorityChecked * add bpf loader tests for setAuthorityChecked ixs * test that you can set to same authority * allow set_authority_checked to be called via cpi (if feature is enabled) * fix ci * fmt Co-authored-by: Justin Starry <[email protected]> Co-authored-by: Justin Starry <[email protected]>
* SetAuthorityChecked * restore old logic for loader * add more upgrade authority checked test cases * setBufferAuthority checked tests * format * add set_buffer_authority_checked instruction to sdk * Update transaction-status/src/parse_bpf_loader.rs Co-authored-by: Justin Starry <[email protected]> * add is_set_authority_checked function * fix set_buffer_authority_checked sdk instruction * feature gate setAuthorityChecked * add bpf loader tests for setAuthorityChecked ixs * test that you can set to same authority * allow set_authority_checked to be called via cpi (if feature is enabled) * fix ci * fmt Co-authored-by: Justin Starry <[email protected]> Co-authored-by: Justin Starry <[email protected]>
Problem
Transferring upgrade authorities are scary: #27932
Summary of Changes
SetAuthorityChecked
instruction to bpf upgradeable loaderFixes # #27932
Feature Gate Issue: #28627