# solana-deploy-upgrade-ops

> Solana deployment ops: multisig upgrade authority, verified builds, buffer upgrades, layout migrations.

solana-deploy-upgrade-ops is a free AI agent skill on Agensi by BanditXBT, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [BanditXBT](https://www.agensi.io/creators/banditxbt)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/solana-deploy-upgrade-ops
- Tags: devops-cloud, web3-crypto, security

## About this skill

An upgradeable program's **upgrade authority can replace code and therefore take all funds**. Treat that key as the protocol's root of trust.

1. Identify every privileged key: program **upgrade authority**, protocol admin/config authority, fee/treasury authority, oracle/keeper authorities, token mint/freeze authorities (if you issue tokens).
2. Never keep the upgrade authority on a single hot key or the deployer laptop. Move it to a **multisig** (e.g., Squads) with a meaningful threshold, geographically/organizationally separated signers, hardware wallets, and ideally a **timelock** so users can exit before an upgrade lands.
3. Separate roles: upgrade authority ≠ admin config authority ≠ pause guardian (pause-only, cannot withdraw).
4. Decide the end state: remain upgradeable (document governance and timelock), or make **immutable** (`solana program set-upgrade-authority <PROGRAM> --final`) once audited and stable. Immutable is irreversible: only after you have a plan for migrating state/logic via new program deployments.

- Build deterministically in Docker via **verifiable builds** (`solana-verify build` in the workspace root, or `anchor build --verifiable`), then deploy *that* artifact. Do not overwrite it with `anchor build`/`cargo build-sbf`: those usually produce a different hash and verification fails.
- Commit `Cargo.lock`; for programs in subfolders pass `--mount-path`; verify with `solana-verify verify-from-repo -u <RPC> --program-id <ID> <REPO_URL> [--commit-hash ...] [--library-name ...]`. Verification data is published via an on-chain PDA signed by the upgrade authority; remote verification jobs (OtterSec-backed) are queued with `solana-verify remote submit-job`. Flags have changed over time (e.g., `--remote` was deprecated): check `--help` for your installed version.
- Pin toolchain (Rust, Solana/Agave CLI, Anchor) versions in the repo (`Anchor.toml` `[toolchain]`), and re-verify after every upgrade.
- Use release profile with `overflow-checks = true`; run `cargo clippy -- -D warnings`, `cargo audit`/`cargo deny` for dependency advisories; review any `unsafe`.
- Publish the IDL (`anchor idl init/upgrade`) and set IDL authority to the multisig too.

1. `solana program write-buffer target/deploy/prog.so` → buffer account; verify the buffer's hash equals the audited build.
2. `solana program set-buffer-authority <BUFFER> --new-buffer-authority <MULTISIG_VAULT>`; create the upgrade proposal in the multisig referencing the buffer; signers independently re-verify the hash, diff, and changelog before approving.
3. Execute upgrade at a planned time; keep the previous binary dumped (`solana program dump`) for rollback.
4. Run a **post-upgrade smoke test** on mainnet with small amounts (core instructions, oracle reads, one liquidation path if applicable).
5. Reclaim rent from leftover buffers (`solana program close <BUFFER>`); rent for program data must keep sized for larger binaries (extend with `solana program extend` when growing).

## Requires

- Solana CLI
- Docker (for verified builds)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the solana-deploy-upgrade-ops skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does solana-deploy-upgrade-ops do?

Solana deployment ops: multisig upgrade authority, verified builds, buffer upgrades, layout migrations.

### Which AI agents support solana-deploy-upgrade-ops?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use solana-deploy-upgrade-ops?

Connect your AI agent to Agensi through MCP, then ask it to use solana-deploy-upgrade-ops on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
