AMIN CONTROL CENTERPublisher trust
ACC 1.3.3

Installation

Verify the release evidence, run the repository-provided installer, and confirm a healthy ACC command before operational use.

Before you begin

System requirements

Install from a writable, extracted release directory with the required command-line tools available on your PATH.

Bash

Runs the installer and the ACC command entrypoint.

Git

Required by the installer environment gate and repository-aware workflows.

Python 3

Runs ACC documentation, release, architecture, and runtime commands.

ssh-keygen

Requires SSH signing and verification support (-Y sign and -Y verify).

The default CLI destination is /usr/local/bin/acc. Use an account that can write there, or set ACC_BIN_PATH to a writable location already included in your PATH.

Compatibility

Supported platforms

ACC 1.3.3 uses a Bash installer and platform-aware collectors for Unix-like environments.

Linux

Supported by the installer and the Linux branches of ACC inventory, health, and monitoring collectors.

macOS

Supported by the Bash installer and the Darwin branches of ACC runtime collectors. Use the system Python and OpenSSH bootstrap below.

Windows

A native Windows installer is not included in this release. Do not treat an unverified compatibility layer as a supported production target.

Choose a source

Installation methods

The versioned release archive is the canonical installation path; a repository checkout is intended for development and review.

Release package

Recommended for installation. Keep the archive, release.manifest, checksum sidecar, embedded release report, detached signature and authenticity artifact together. Obtain the version-matched GA artifacts through an authorized distribution channel. Check publication status and establish signer trust independently.

Repository checkout

Appropriate for contributors who need source history. Check out the intended version, review its release evidence. A checkout alone does not satisfy authenticated installer admission; do not bypass the release trust inputs.

Integrity gate

Verify the release package

Establish independent signer trust, verify the original checksum signature, then match the archive bytes before extraction.

Canonical Zero-ACC bootstrap

Start here when you do not already have a trusted ACC CLI. Use a trusted system Python 3 and OpenSSH ssh-keygen with SSH signature verification support. No ACC imports or package execution are used. After package authenticity succeeds, the same isolated bootstrap validates the archive member model and derives the release tree into a fresh destination.

  1. Obtain signer identity acc-release and its exact SHA-256 public-key fingerprint through an out-of-band (OOB) channel you already trust, independent of artifact distribution. Without either input or a trusted channel, the result is BLOCKED: establish that independent communication before continuing. Do not copy a fingerprint from this website, repository or release metadata as a substitute.
  2. Save the archive, original .sha256 sidecar and matching .sha256.sig from an authorized distribution channel. Keep the authenticity artifact for later installer admission. For v1.3.3, obtain the matching production V2 GA signer records, acc-release.pub and allowed_signers, through the authorized channel. Historical releases require their corresponding signer records. Confirm the identity and fingerprint independently before relying on those files.
  3. In that download directory, fill the two empty OOB values below and run the snippet. Keep the exact archive filename shown; if the browser appended .download, restore the canonical ACC-1.3.3-d55e48c.tar.gz filename without changing its bytes.

Use a directory under your control and a PATH containing only trusted system tools, never the downloaded package. Keep all inputs unchanged during verification and subsequent use; rerun verification if any input changes. Python isolated mode prevents imports from the download directory.

(
set -eu
export PYTHONDONTWRITEBYTECODE=1
# Fill only from an independently trusted out-of-band channel.
export ACC_OOB_IDENTITY=''
export ACC_OOB_FINGERPRINT=''
# Must name a path that does not already exist; its parent must already exist.
export ACC_EXTRACT_DEST='./acc-verified-release'

python3 -I - <<'PYTHON'
import hashlib
import os
from pathlib import Path, PurePosixPath
import posixpath
import re
import shutil
import subprocess
import tarfile


ARCHIVE_NAME = "ACC-1.3.3-d55e48c.tar.gz"
ARCHIVE_ROOT = "amin-control-center"


def require(ok, reason):
    if not ok:
        raise SystemExit("BLOCKED: " + reason)


def sha256_file(path):
    digest = hashlib.sha256()
    with path.open("rb") as stream:
        for chunk in iter(lambda: stream.read(1024 * 1024), b""):
            digest.update(chunk)
    return digest.hexdigest()


def canonical_member_name(name):
    require(isinstance(name, str) and name, "empty archive member name")
    require("\x00" not in name, "NUL in archive member name")
    require("\\" not in name, "backslash archive path rejected")
    require(not name.startswith("/"), "absolute archive path rejected")
    require(posixpath.normpath(name) == name, "non-canonical archive path")
    parts = PurePosixPath(name).parts
    require(parts, "empty archive path")
    require(".." not in parts, "archive traversal rejected")
    require(parts[0] == ARCHIVE_ROOT, "unexpected archive root")
    return parts


def validate_archive_members(archive):
    members = archive.getmembers()
    require(members, "archive has no members")

    names = set()

    for member in members:
        parts = canonical_member_name(member.name)

        require(
            member.name not in names,
            "duplicate archive member: " + member.name,
        )
        names.add(member.name)

        require(
            member.isfile() or member.isdir(),
            "unsupported archive member type: " + member.name,
        )

        # An explicit top-level directory member is optional. Some canonical
        # tar archives contain only descendants such as
        # amin-control-center/install.sh. If the root member is present, it
        # must itself be the canonical directory.
        if len(parts) == 1:
            require(
                member.name == ARCHIVE_ROOT and member.isdir(),
                "archive root member must be the canonical directory",
            )

    return members


def derive_tree(archive_path, destination):
    require(not destination.exists(), "extraction destination already exists")

    parent = destination.parent
    require(parent.exists(), "extraction destination parent missing")
    require(parent.is_dir(), "extraction destination parent is not a directory")
    require(not parent.is_symlink(), "extraction destination parent is a symlink")

    with tarfile.open(archive_path, "r:gz") as archive:
        members = validate_archive_members(archive)

        # Mutation begins only after the entire archive member model has
        # been accepted.
        destination.mkdir(mode=0o700)

        try:
            # Directories first, shallowest to deepest.
            directories = sorted(
                (m for m in members if m.isdir()),
                key=lambda m: len(PurePosixPath(m.name).parts),
            )

            for member in directories:
                parts = canonical_member_name(member.name)
                target = destination.joinpath(*parts)
                target.mkdir(mode=member.mode & 0o777, parents=True, exist_ok=True)
                os.chmod(target, member.mode & 0o777)

            for member in members:
                if not member.isfile():
                    continue

                parts = canonical_member_name(member.name)
                target = destination.joinpath(*parts)

                target.parent.mkdir(parents=True, exist_ok=True)

                require(
                    not target.exists() and not target.is_symlink(),
                    "extraction collision: " + member.name,
                )

                source = archive.extractfile(member)
                require(source is not None, "archive member unreadable: " + member.name)

                with source, target.open("xb") as output:
                    shutil.copyfileobj(source, output, length=1024 * 1024)

                os.chmod(target, member.mode & 0o777)

        except BaseException:
            shutil.rmtree(destination, ignore_errors=True)
            raise

    root = destination / ARCHIVE_ROOT
    require(root.is_dir() and not root.is_symlink(), "derived release root unavailable")
    require((root / "install.sh").is_file(), "derived installer entrypoint missing")

    return root


def verify_and_derive():
    identity = os.environ.get("ACC_OOB_IDENTITY", "")
    fingerprint = os.environ.get("ACC_OOB_FINGERPRINT", "")
    destination_raw = os.environ.get("ACC_EXTRACT_DEST", "")

    require(identity == "acc-release", "independent signer identity required")
    require(
        re.fullmatch(r"SHA256:[A-Za-z0-9+/]{43}", fingerprint) is not None,
        "independent SHA-256 fingerprint required",
    )
    require(destination_raw, "ACC_EXTRACT_DEST is required")

    ssh_keygen = shutil.which("ssh-keygen")
    require(ssh_keygen is not None, "system ssh-keygen required")

    key = Path("acc-release.pub")
    allowed = Path("allowed_signers")
    archive = Path(ARCHIVE_NAME)
    checksum = Path(str(archive) + ".sha256")
    signature = Path(str(checksum) + ".sig")

    destination = Path(destination_raw).expanduser()
    if not destination.is_absolute():
        destination = (Path.cwd() / destination).resolve(strict=False)

    key_lines = key.read_text(encoding="ascii").splitlines()
    signer_lines = allowed.read_text(encoding="ascii").splitlines()

    require(len(key_lines) == 1, "public key must contain one record")
    require(len(signer_lines) == 1, "allowed_signers must contain one record")

    key_fields = key_lines[0].split()
    signer_fields = signer_lines[0].split()

    require(
        len(key_fields) >= 2 and key_fields[0] == "ssh-ed25519",
        "unexpected public-key format",
    )
    require(
        len(signer_fields) >= 3
        and signer_fields[:3] == [identity, *key_fields[:2]],
        "exact principal and key binding required",
    )

    result = subprocess.run(
        [ssh_keygen, "-lf", str(key), "-E", "sha256"],
        check=True,
        capture_output=True,
        text=True,
    ).stdout.splitlines()

    require(len(result) == 1, "ambiguous fingerprint output")

    fields = result[0].split()
    require(
        len(fields) >= 2 and fields[1] == fingerprint,
        "fingerprint mismatch",
    )

    # Authenticate the ORIGINAL checksum bytes before interpreting them.
    original_checksum = checksum.read_bytes()

    subprocess.run(
        [
            ssh_keygen,
            "-Y",
            "verify",
            "-f",
            str(allowed),
            "-I",
            "acc-release",
            "-n",
            "acc-release",
            "-s",
            str(signature),
        ],
        input=original_checksum,
        check=True,
        capture_output=True,
    )

    match = re.fullmatch(
        rb"([0-9a-f]{64})  "
        + re.escape(archive.name.encode("ascii"))
        + rb"\n",
        original_checksum,
    )
    require(
        match is not None,
        "unexpected checksum format or archive filename",
    )

    require(
        sha256_file(archive).encode("ascii") == match[1],
        "archive SHA-256 mismatch",
    )

    # Authentication has succeeded before any extraction mutation.
    print("PACKAGE_AUTHENTICITY=VERIFIED")

    root = derive_tree(archive, destination)

    print("PACKAGE_TREE_DERIVATION=VERIFIED")
    print("EXTRACTED_ROOT=" + str(root))


try:
    verify_and_derive()
except (
    OSError,
    UnicodeError,
    subprocess.SubprocessError,
    tarfile.TarError,
):
    raise SystemExit(
        "BLOCKED: unreadable input, failed OpenSSH verification, "
        "or invalid archive"
    )

PYTHON
)

This deliberately accepts one public-key record and one allowed-signers record only; trailing comments are allowed. Extra records or blank lines, wildcard or comma-list principals, options before the key, and mismatched key type or key bytes are rejected. The key fingerprint must exactly match the independently received value. Both signature identity and namespace are fixed to acc-release.

OpenSSH verifies the original checksum sidecar bytes before checksum parsing. The accepted format is exactly 64 lowercase hexadecimal digits, two ASCII spaces, the exact archive filename and one LF newline, with no other line or content. The archive SHA-256 must then match. Never normalize or regenerate a received sidecar. A missing tool, unsupported OpenSSH verification, missing input or failed check means stop with a nonzero exit; an unavailable Python also means BLOCKED, never success.

The authenticity verdict remains PACKAGE_AUTHENTICITY=VERIFIED: authenticity of these archive bytes relative to the independently trusted key. Controlled extraction succeeds separately with PACKAGE_TREE_DERIVATION=VERIFIED. Neither verdict establishes readiness, installed identity, installation admission, execution authority or mutation authority. Neither authenticity.json, the manifest, nor a website digest selects the trusted signer. Installer admission remains a separate gate with all four explicit inputs below.

Already trusted ACC CLI

If an independently trusted ACC CLI is already available, use authenticated verification with all three trust options. Bare verification checks integrity but does not request authenticity. Do not execute the downloaded CLI to establish its own initial trust.

The following absolute paths are examples; replace them with the actual bundle and independently trusted files.

acc release verify /path/to/ACC-1.3.3-d55e48c.tar.gz \
  --authenticity /path/to/authenticity.json \
  --allowed-signers /path/to/allowed_signers \
  --signer-public-key /path/to/signer.pub

Stop on missing trust material, unavailable publication, or any failed check. Do not regenerate a received checksum or trust the package's own bundled key as independent publisher evidence.

Install

Run the installer

Enter the release root derived by the canonical Zero-ACC bootstrap, then run the existing installer admission path.

cd "$ACC_EXTRACT_DEST/amin-control-center"
ACC_INSTALL_PACKAGE=/path/to/ACC-1.3.3-d55e48c.tar.gz \
ACC_INSTALL_AUTHENTICITY=/path/to/authenticity.json \
ACC_INSTALL_ALLOWED_SIGNERS=/path/to/allowed_signers \
ACC_INSTALL_SIGNER_PUBLIC_KEY=/path/to/signer.pub \
./install.sh

The canonical first-install path does not use a separate manual tar -xzf step. Run the installer only from the fresh release root produced by the Zero-ACC bootstrap after PACKAGE_TREE_DERIVATION=VERIFIED. A manually extracted or modified tree is outside this first-user trust path.

Use the actual absolute paths from verification. If needed, add ACC_BIN_PATH to the same invocation for a writable destination already on PATH. An unrelated existing CLI destination is rejected. Installation changes files and configuration; success reports STATUS=INSTALLED.

Keep the extracted release directory after installation. The installed command is a symbolic link to bin/acc in that directory, so moving or deleting the release root breaks the command.

Step 1

Environment

Checks Bash, Git, Python 3, SSH signing support, and the resolved ACC root.

Step 2

Trusted admission

Authenticates the selected package with explicit independent trust inputs before mutation.

Step 3

Filesystem

Prepares ACC runtime, log, storage, backup, and data directories.

Step 4

Configuration

Creates the default configuration or preserves an existing one.

Step 5

CLI

Links the release CLI into the configured executable path.

Step 6

Validation

Confirms structure, configuration, runtime, and CLI; finalizes installed-release identity and installation footprint evidence.

First checks

Verify the installation

Resolve the command, confirm its canonical version, and run read-only platform diagnostics.

command -v acc
acc version
acc status
acc doctor

Confirm that acc version reports the release you verified. Review status and diagnostic output before using ACC for operational work; warnings should be understood, not ignored.

Common blockers

Troubleshooting basics

Start with the failed installer stage or the first verification command that does not produce the expected result.

Environment check fails

Run command -v bash git python3 ssh-keygen. Install the missing prerequisite, confirm it is on PATH, and rerun the installer from the release root.

CLI destination is not writable

Set ACC_BIN_PATH to a writable executable path. Ensure its parent directory is on PATH, then rerun the installer.

acc is not found

Inspect the path printed by the CLI installer, confirm the symbolic link exists, and add its parent directory to PATH before opening a new shell.

The installed link is broken

Restore the extracted release directory to its installed location or rerun installation from a permanent directory. The link must continue to resolve to that release'sbin/acc.

Continue

Return to the guided flow

With the CLI verified, continue through Getting Started or return to the documentation gateway.