Say I have a deployed Solana Program with an upgrade authority. What is the best practice to revoke this authority?
2 Answers
Found the answer in the docs:
When deploying a program normally, I use
solana program deploy
which makes it upgradeable by default. If I want to make it non-upgradeable, I can deploy (an update) using:
solana program deploy --final
-
Don't forget to click ‘accept answer’ to mark your self-answer as the accepted one! Commented Jan 12 at 7:48
-
1It only lets me do that after 2 days, but thanks for the reminder nonetheless :)– McBainCommented Jan 12 at 7:55
If you just want to make an existing program immutable, it's easier to simply remove the upgrade authority, rather than going through another deployment:
solana program set-upgrade-authority <PROGRAM_ADDRESS> --final