#13850·mise

Aqua SLSA migration: existing OSV lock fails in 2026.9.17, signer fields rejected by Aqua schema

Author: diskudeCreated Sep 30, 2026Updated Sep 30, 2026

Problem

Upgrading from mise 2026.9.15 to 2026.9.17 breaks a clean installation of aqua:google/[email protected] from an existing lock that requires SLSA provenance. The rejection introduced by #13725 is intentional and appropriate; the missing piece is a supported migration that preserves the locked verification requirement.

The default OSV Aqua recipe lacks signer_identity and signer_issuer. Adding those fields directly to aqua-registry is currently blocked by the official Aqua JSON schema: $defs.SLSAProvenance excludes both fields and sets additionalProperties: false. This makes the error's instruction to “Add the expected signer or refresh the lockfile” difficult to follow without a Mise-specific registry override or potentially losing the SLSA requirement when relocking.

Tested on macOS 27.0 / arm64, using checksum-verified official release binaries, on 2026-09-30. Both slsa and aqua.slsa are true.

Observed results

Experiment Result
2026.9.15, empty install/cache/state, existing SLSA lock Install succeeds; this is not equivalent to .17's stronger signer policy
2026.9.17, same inputs, empty install/cache/state Exit 1: missing expected signer metadata
2026.9.17 using the isolated installation made by .15 Exit 0, already installed; this does not exercise clean-install verification
2026.9.17, custom registry with reviewed signer URI + issuer Install succeeds, explicitly reports SLSA provenance verification
Same custom registry, incorrect signer URI / incorrect issuer Each fails verification; executable is not exposed
Version-restricted custom registry, request OSV 2.5.0 Fails with no asset released, without a network/rate-limit error

Relevant error:

Lockfile requires SLSA provenance for aqua:google/[email protected],
but Aqua registry metadata has no signer_identity and signer_issuer.
Add the expected signer or refresh the lockfile.

Reproduction

Save the three files below together. Run each binary separately; the runner creates fresh temporary state, checks that only its isolated configs were discovered, and does not disable SLSA or modify the real global configuration. Use Python 3.9+ and official macOS ARM64 binaries downloaded from the respective release pages and checked against SHASUMS256.txt.

bash
python3 reproduce.py /absolute/path/to/mise-2026.9.15
python3 reproduce.py /absolute/path/to/mise-2026.9.17

Both commands were actually run with these reduced files: .15 exited 0; .17 exited 1 with the diagnostic above. In this reduced reproduction, .15 only normalized the generated-file comment and trailing blank line in the lock; all TOML values and SLSA entries were preserved. .17 left the lock byte-identical.

mise.toml
toml
[tools]
osv-scanner = "2.6.0"

[settings]
lockfile = true
mise.lock
toml
# Public OSV-only subset of an existing lock. Backend and security evidence preserved.

[[tools.osv-scanner]]
version = "2.6.0"
backend = "aqua:google/osv-scanner"

[tools.osv-scanner."platforms.linux-arm64"]
checksum = "sha256:2c71403eb443d05891c4f268c3ad771cf4f16e5443463fd7851ef8f454d3c7e4"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_arm64"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414650"

[tools.osv-scanner."platforms.linux-arm64".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"

[tools.osv-scanner."platforms.linux-arm64-musl"]
checksum = "sha256:2c71403eb443d05891c4f268c3ad771cf4f16e5443463fd7851ef8f454d3c7e4"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_arm64"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414650"

[tools.osv-scanner."platforms.linux-arm64-musl".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"

[tools.osv-scanner."platforms.linux-x64"]
checksum = "sha256:ca69b3d3cd08f889a49dc0a383122f71cc528b83803671df5fd874d97485b108"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_amd64"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414718"

[tools.osv-scanner."platforms.linux-x64".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"

[tools.osv-scanner."platforms.linux-x64-musl"]
checksum = "sha256:ca69b3d3cd08f889a49dc0a383122f71cc528b83803671df5fd874d97485b108"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_amd64"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414718"

[tools.osv-scanner."platforms.linux-x64-musl".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"

[tools.osv-scanner."platforms.macos-arm64"]
checksum = "sha256:98c460dcd37de25819babd757d04542045b6243113e209edcd4d89fedb0256b4"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_darwin_arm64"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414648"

[tools.osv-scanner."platforms.macos-arm64".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"

[tools.osv-scanner."platforms.macos-x64"]
checksum = "sha256:60c5296637e977b28eeda5c7f13573e447659a632922737f94d11fa7e30ad6ca"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_darwin_amd64"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414712"

[tools.osv-scanner."platforms.macos-x64".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"

[tools.osv-scanner."platforms.windows-x64"]
checksum = "sha256:e0ed7644118b717b028c249ee9d3515024e55e8510747ca08906eb96765354d6"
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_windows_amd64.exe"
url_api = "https://api.github.com/repos/google/osv-scanner/releases/assets/562414649"

[tools.osv-scanner."platforms.windows-x64".provenance.slsa]
url = "https://github.com/google/osv-scanner/releases/download/v2.6.0/multiple.intoto.jsonl"
reproduce.py
python
#!/usr/bin/env python3
"""Run one supplied mise binary with empty, isolated OSV install state."""
import hashlib
import difflib
import json
import os
from pathlib import Path
import shutil
import subprocess
import sys
import tempfile

binary = Path(sys.argv[1]).resolve(strict=True)
source = Path(__file__).resolve().parent
host_config = Path.home() / '.config/mise'

def digest(path):
    return hashlib.sha256(path.read_bytes()).hexdigest() if path.exists() else None

host_before = {name: digest(host_config / name) for name in ['config.toml', 'mise.lock']}
with tempfile.TemporaryDirectory(prefix='mise-osv-isolated-') as tmp:
    root = Path(tmp).resolve()
    for name in ['project', 'config', 'system', 'data', 'cache', 'state', 'xdg-config', 'xdg-data', 'xdg-state', 'xdg-cache']:
        (root / name).mkdir()
    for name in ['mise.toml', 'mise.lock']:
        shutil.copyfile(source / name, root / 'project' / name)
    (root / 'config/config.toml').write_text('')
    env = {key: os.environ[key] for key in ['HOME', 'USER', 'LOGNAME', 'SHELL', 'TMPDIR', 'LANG'] if key in os.environ}
    env.update(
        PATH='/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin',
        MISE_CONFIG_DIR=str(root / 'config'),
        MISE_GLOBAL_CONFIG_FILE=str(root / 'config/config.toml'),
        MISE_CONFIG_FILE=str(root / 'project/mise.toml'),
        MISE_SYSTEM_CONFIG_DIR=str(root / 'system'),
        MISE_DATA_DIR=str(root / 'data'),
        MISE_CACHE_DIR=str(root / 'cache'),
        MISE_STATE_DIR=str(root / 'state'),
        MISE_CEILING_PATHS=str(root),
        MISE_IGNORED_CONFIG_PATHS=str(host_config / 'config.toml'),
        MISE_TRUSTED_CONFIG_PATHS=str(root / 'project'),
        MISE_YES='1', MISE_SELF_UPDATE_AVAILABLE='0', NO_COLOR='1',
        XDG_CONFIG_HOME=str(root / 'xdg-config'),
        XDG_DATA_HOME=str(root / 'xdg-data'),
        XDG_STATE_HOME=str(root / 'xdg-state'),
        XDG_CACHE_HOME=str(root / 'xdg-cache'),
    )

    def run(args):
        result = subprocess.run([str(binary)] + args, cwd=root / 'project', env=env, text=True, capture_output=True, timeout=180)
        assert host_before == {name: digest(host_config / name) for name in host_before}, 'Host config changed'
        def public(text):
            return text.replace(str(binary), '<MISE_BINARY>').replace(str(root), '<PILOT>').replace(str(Path.home()), '<HOME>')
        print(json.dumps({'args': args, 'exit_code': result.returncode, 'stdout': public(result.stdout), 'stderr': public(result.stderr)}, indent=2))
        return result

    run(['--version'])
    configs = run(['config', 'ls', '--json'])
    assert configs.returncode == 0
    active = json.loads(configs.stdout)
    assert len(active) == 2 and all(Path(row['path']).is_relative_to(root) for row in active), 'Unexpected external config'
    for setting in ['slsa', 'aqua.slsa']:
        result = run(['settings', 'get', setting])
        assert result.returncode == 0 and result.stdout.strip() == 'true'
    before = digest(root / 'project/mise.lock')
    lock_before = (root / 'project/mise.lock').read_text()
    result = run(['install', 'osv-scanner', '--verbose'])
    print(json.dumps({'lock_unchanged': before == digest(root / 'project/mise.lock'), 'host_config_unchanged': host_before == {name: digest(host_config / name) for name in host_before}}))
    if before != digest(root / 'project/mise.lock'):
        print(''.join(difflib.unified_diff(lock_before.splitlines(keepends=True), (root / 'project/mise.lock').read_text().splitlines(keepends=True), fromfile='mise.lock.before', tofile='mise.lock.after')))
    sys.exit(result.returncode)

Verified metadata candidate and schema mismatch

This Mise custom registry experiment preserves the backend, release URLs, checksum and locked SLSA requirement. Its signer URI/issuer were reviewed against OSV 2.6.0 release provenance; they are deliberately restricted to that version. It is not an Aqua-schema-compliant PR or a request to relax signature checks.

The tested override provides the following SLSA metadata fragment through MISE_AQUA_REGISTRIES=file:///absolute/path/registry.yaml; the rest of the reviewed OSV recipe retains the official artifact and checksum settings:

yaml
slsa_provenance:
  type: github_release
  asset: multiple.intoto.jsonl
  signer_identity: https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v2.1.0
  signer_issuer: https://token.actions.githubusercontent.com

For the version-negative test, the recipe uses root no_asset: true with an exact Version == "v2.6.0" override setting no_asset: false. This snippet is the metadata delta, not a complete general-purpose registry.

A separate seven-tool clean bootstrap and all seven version commands passed with the initial custom recipe (the same signer fields, before adding the explicit no_asset version guard). The original full configuration and lock stayed byte-for-byte unchanged. The hardened recipe described above was separately verified for OSV 2.6.0 success and OSV 2.5.0 rejection. These are host-specific checks, not proof that every platform/package is fixed.

Source references:

Requested resolution

Please provide/document a metadata migration path that retains SLSA-required locks: for example, a reviewed Mise-owned signer metadata layer, or coordinated support in Aqua's schema/registry. It would also help to explicitly warn that refreshing a lock can omit SLSA when signer metadata is absent, and to cover the existing-lock/empty-install scenario in regression tests.

I am opening this before proposing a code change because choosing the metadata authority affects both projects. I am not asking to revert #13725 or accept an unknown signer.

AI-assisted investigation and drafting using Codex, with Claude/Gemini advisory review. The reported behaviors were checked with actual CLI executions, source inspection and negative controls.