From 1f07ea5c2429d5600f291f542debfd530f6b018f Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Fri, 21 Feb 2025 14:08:24 +0100 Subject: [PATCH] Upgrade mithril version following security advisory --- flake.lock | 8 ++++---- flake.nix | 2 +- run/common/nix/run.sh | 2 +- run/common/nix/snapshot.sh | 2 +- run/mainnet/docker/docker-compose.yml | 2 +- scripts/buildkite/admin/refresh-preprod-snapshot.sh | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index bef8f26b257..7f4f943f26e 100644 --- a/flake.lock +++ b/flake.lock @@ -1547,16 +1547,16 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1733844450, - "narHash": "sha256-jT3sjtACWtiS1agD8XR6EKz73YpL0QelIS4RcBJy3F8=", + "lastModified": 1739196933, + "narHash": "sha256-CIDPUNYUMyQupIQzKCIwvP4S4BJvyidy6dVSL5kS+XQ=", "owner": "input-output-hk", "repo": "mithril", - "rev": "c6c7ebafae0158b2c1672eb96f6ef832fd542f93", + "rev": "2627f17b83be844151b254ac21b8cff6c6a97364", "type": "github" }, "original": { "owner": "input-output-hk", - "ref": "2450.0", + "ref": "2506.0", "repo": "mithril", "type": "github" } diff --git a/flake.nix b/flake.nix index f38d7cca5fc..8ddbafdef0c 100644 --- a/flake.nix +++ b/flake.nix @@ -116,7 +116,7 @@ }; customConfig.url = "github:input-output-hk/empty-flake"; cardano-node-runtime.url = "github:IntersectMBO/cardano-node?ref=10.1.4"; - mithril.url = "github:input-output-hk/mithril?ref=2450.0"; + mithril.url = "github:input-output-hk/mithril?ref=2506.0"; }; outputs = { self, nixpkgs, nixpkgs-unstable, hostNixpkgs, flake-utils, diff --git a/run/common/nix/run.sh b/run/common/nix/run.sh index 382091abb5b..6f3a0c2e016 100755 --- a/run/common/nix/run.sh +++ b/run/common/nix/run.sh @@ -77,7 +77,7 @@ cleanup() { mithril() { # shellcheck disable=SC2048 # shellcheck disable=SC2086 - nix shell "github:input-output-hk/mithril?ref=2450.0" -c $* + nix shell "github:input-output-hk/mithril?ref=2506.0" -c $* } # Trap the cleanup function on exit diff --git a/run/common/nix/snapshot.sh b/run/common/nix/snapshot.sh index 742f6135493..c16a5027563 100755 --- a/run/common/nix/snapshot.sh +++ b/run/common/nix/snapshot.sh @@ -2,7 +2,7 @@ # shellcheck shell=bash function mithril() { - nix shell 'github:input-output-hk/mithril?ref=2450.0' --command mithril-client $@ + nix shell 'github:input-output-hk/mithril?ref=2506.0' --command mithril-client $@ } function jq() { diff --git a/run/mainnet/docker/docker-compose.yml b/run/mainnet/docker/docker-compose.yml index 3262390d1b8..4256e8b886f 100644 --- a/run/mainnet/docker/docker-compose.yml +++ b/run/mainnet/docker/docker-compose.yml @@ -49,7 +49,7 @@ services: mithril: env_file: - .env - image: ghcr.io/input-output-hk/mithril-client:2450.0-c6c7eba + image: ghcr.io/input-output-hk/mithril-client:2506.0-2627f17 user: ${USER_ID}:${GROUP_ID} volumes: - ${NODE_DB}:/app/db diff --git a/scripts/buildkite/admin/refresh-preprod-snapshot.sh b/scripts/buildkite/admin/refresh-preprod-snapshot.sh index 180b3a1b8a3..9491a06627f 100755 --- a/scripts/buildkite/admin/refresh-preprod-snapshot.sh +++ b/scripts/buildkite/admin/refresh-preprod-snapshot.sh @@ -11,7 +11,7 @@ export GENESIS_VERIFICATION_KEY=5b3132372c37332c3132342c3136312c362c3133372c3133 mithril() { # shellcheck disable=SC2048 # shellcheck disable=SC2086 - nix shell "github:input-output-hk/mithril" -c $* + nix shell "github:input-output-hk/mithril?ref=2506.0" -c $* } mithril echo "mithril is available" || exit 44