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

Add private release validation #6

Merged
merged 2 commits into from
Jan 18, 2025
Merged

Conversation

gartnera
Copy link
Member

@gartnera gartnera commented Jul 9, 2024

Allow verifying the attestations for private releases. I have verified that private and public releases work. And v1 and v2 attestations work (related to zeta-chain/node#3376).

  noderelease2proposal git:(private-release-validation) ✗ GITHUB_TOKEN=$(gh auth token) go run . --attest-org-only https://github.com/zeta-chain/node-private/releases/tag/v0.0.1000
2025/01/17 12:03:21 GITHUB_TOKEN set, assuming this is a private verification
2025/01/17 12:03:23 WARN: unable to set upgrade handler version: downloading zetacored: bad response code: 404
2025/01/17 12:03:23 WARN: upgrade height is for example only and need to be configured correctly
2025/01/17 12:03:23 WARN: deposit is for example only and need to be configured correctly
{
  "messages": [
    {
      "@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
      "plan": {
        "height": "0",
        "info": "{\"binaries\":{\"darwin/amd64\":\"https://github.com/zeta-chain/node-private/releases/download/v0.0.1000/zetacored-darwin-amd64?checksum=sha256:06777dff5207d3500222a2ba9b2ff9555412eded179883384d862a04e0d2d230\",\"darwin/arm64\":\"https://github.com/zeta-chain/node-private/releases/download/v0.0.1000/zetacored-darwin-arm64?checksum=sha256:2cabaa4054a6f6ca95141608c65dd798522b6b935327837bef0f9ec4be8a4ed6\",\"linux/amd64\":\"https://github.com/zeta-chain/node-private/releases/download/v0.0.1000/zetacored-linux-amd64?checksum=sha256:d47473b9c63613a2f7aa7aaa991cfac8d73d5ae335a4110dcc1c21db0a140df1\",\"linux/arm64\":\"https://github.com/zeta-chain/node-private/releases/download/v0.0.1000/zetacored-linux-arm64?checksum=sha256:7185580fb479a5d42d31906070580572d3856d352682ba6ec8459b8d333e18f3\",\"zetaclientd-linux/amd64\":\"https://github.com/zeta-chain/node-private/releases/download/v0.0.1000/zetaclientd-linux-amd64?checksum=sha256:9b1a0ee1db1a85cdd5e907f59dea964596f0ff316760169386143087cb48be03\",\"zetaclientd-linux/arm64\":\"https://github.com/zeta-chain/node-private/releases/download/v0.0.1000/zetaclientd-linux-arm64?checksum=sha256:51347cb03474b341ccaa7d3ff8965bc39952f5e8857f781925ebfdf4512181fb\"}}",
        "name": "",
        "time": "0001-01-01T00:00:00Z",
        "upgraded_client_state": null
      },
      "authority": "zeta10d07y265gmmuvt4z0w9aw880jnsr700jvxasvr"
    }
  ],
  "metadata": "https://github.com/zeta-chain/node-private/releases/tag/v0.0.1000",
  "deposit": "100000000azeta",
  "title": "v0.0.1000 Upgrade",
  "summary": "v0.0.1000 Upgrade"
}
  noderelease2proposal git:(private-release-validation) ✗ go run . --attest-org-only https://github.com/zeta-chain/ci-testing-node/releases/tag/v0.0.1001
2025/01/17 12:03:39 WARN: upgrade height is for example only and need to be configured correctly
2025/01/17 12:03:39 WARN: deposit is for example only and need to be configured correctly
{
  "messages": [
    {
      "@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
      "plan": {
        "height": "0",
        "info": "{\"binaries\":{\"darwin/amd64\":\"https://github.com/zeta-chain/ci-testing-node/releases/download/v0.0.1001/zetacored-darwin-amd64?checksum=sha256:f41a01b78405a5e2256c54c3eda3f55c07c44bab45c8ce60047a0da4e9342746\",\"darwin/arm64\":\"https://github.com/zeta-chain/ci-testing-node/releases/download/v0.0.1001/zetacored-darwin-arm64?checksum=sha256:64c1863121591ba197ee35f9f61420e40bf68eeddb1196a3824798a75ba61d2e\",\"linux/amd64\":\"https://github.com/zeta-chain/ci-testing-node/releases/download/v0.0.1001/zetacored-linux-amd64?checksum=sha256:7c740206083ec2b8deb17e3315b3b602ca0fa994fa1b09d9ab6cc617f951ccfa\",\"linux/arm64\":\"https://github.com/zeta-chain/ci-testing-node/releases/download/v0.0.1001/zetacored-linux-arm64?checksum=sha256:601a13e24514ba62f7b0838409234e53487baf91e313c3743c70dc85b8fe4736\",\"zetaclientd-linux/amd64\":\"https://github.com/zeta-chain/ci-testing-node/releases/download/v0.0.1001/zetaclientd-linux-amd64?checksum=sha256:260252c5924265efffe3f5f7e0f33c56c758787f9bd11bb5a80e136320bb04ed\",\"zetaclientd-linux/arm64\":\"https://github.com/zeta-chain/ci-testing-node/releases/download/v0.0.1001/zetaclientd-linux-arm64?checksum=sha256:b46a91c97edbcef69213205319e25b969055c02be775592dabf792c9ef9b8b27\"}}",
        "name": "v0",
        "time": "0001-01-01T00:00:00Z",
        "upgraded_client_state": null
      },
      "authority": "zeta10d07y265gmmuvt4z0w9aw880jnsr700jvxasvr"
    }
  ],
  "metadata": "https://github.com/zeta-chain/ci-testing-node/releases/tag/v0.0.1001",
  "deposit": "100000000azeta",
  "title": "v0.0.1001 Upgrade",
  "summary": "v0.0.1001 Upgrade"
}
  noderelease2proposal git:(private-release-validation) ✗ go run . --attest-org-only https://github.com/zeta-chain/node/releases/tag/v25.0.0
2025/01/17 12:03:50 WARN: upgrade height is for example only and need to be configured correctly
2025/01/17 12:03:50 WARN: deposit is for example only and need to be configured correctly
{
  "messages": [
    {
      "@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
      "plan": {
        "height": "0",
        "info": "{\"binaries\":{\"darwin/amd64\":\"https://github.com/zeta-chain/node/releases/download/v25.0.0/zetacored-darwin-amd64?checksum=sha256:b4fa2b1bc1bb30a5fb2d0fa7325c9dac4a9e19cc61300a3be7ab75ddad0a166b\",\"darwin/arm64\":\"https://github.com/zeta-chain/node/releases/download/v25.0.0/zetacored-darwin-arm64?checksum=sha256:e12acf69a57e79cfad3da1bd57712eae220e80ba367e00f99e0ec410e802685d\",\"linux/amd64\":\"https://github.com/zeta-chain/node/releases/download/v25.0.0/zetacored-linux-amd64?checksum=sha256:e4e4d86fd4de7996cd42f9dd66e19f90416919d8907f2eed8ee98b7f6ffdf957\",\"linux/arm64\":\"https://github.com/zeta-chain/node/releases/download/v25.0.0/zetacored-linux-arm64?checksum=sha256:3cde6eb01ddf93d5aca3be39dc16e78fbfcc96a30eba28cebcb281388eb390c8\",\"zetaclientd-linux/amd64\":\"https://github.com/zeta-chain/node/releases/download/v25.0.0/zetaclientd-linux-amd64?checksum=sha256:f8a60181f596311dadf9a0fe97ea5fd18fb6058a2eeece3fb7823eb3dcbdd2e5\",\"zetaclientd-linux/arm64\":\"https://github.com/zeta-chain/node/releases/download/v25.0.0/zetaclientd-linux-arm64?checksum=sha256:9e8c8d8927d76cb4fec8fb443d75c33a0b397aec18570afc4c6fc9db4e8aa11e\"}}",
        "name": "v25",
        "time": "0001-01-01T00:00:00Z",
        "upgraded_client_state": null
      },
      "authority": "zeta10d07y265gmmuvt4z0w9aw880jnsr700jvxasvr"
    }
  ],
  "metadata": "https://github.com/zeta-chain/node/releases/tag/v25.0.0",
  "deposit": "100000000azeta",
  "title": "v25.0.0 Upgrade",
  "summary": "v25.0.0 Upgrade"
}

HACK: add private release validation

tmp
@gartnera gartnera force-pushed the private-release-validation branch from aae189c to 67f9ad5 Compare January 17, 2025 20:04
@gartnera gartnera changed the title Private release validation Add private release validation Jan 17, 2025
@gartnera gartnera force-pushed the private-release-validation branch 3 times, most recently from 906a492 to 9408fcc Compare January 17, 2025 20:18
@gartnera gartnera force-pushed the private-release-validation branch from 9408fcc to c7b4a85 Compare January 17, 2025 20:19
@gartnera gartnera merged commit a07fc00 into main Jan 18, 2025
2 checks passed
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.

1 participant