Skip to content

Pin sha256s for the DCV tarball, AWS CLI MSI and SSM agent setup (follow-up to #1598) #1620

Closed

Description

@scttfrdmn

Follow-up to #1598 (PR #1619). That PR verifies the Windows installers by Authenticode signature (Valid, with an Amazon signer) and makes the DCV install fail closed on RPM signatures, but it does not yet pin sha256s for three artifacts:

Artifact Where Verified today (after #1619)
nice-dcv-<dcvVersion>-amzn2023-{x86_64,aarch64}.tgz cmd/app.go dcvInstallBlock NICE key import + rpm -K + localpkg_gpgcheck (the key is fetched from the same CloudFront distribution as the tarball)
AWSCLIV2-<awsCLIVersion>.msi cmd/launch_config.go Windows user data Authenticode, Amazon signer
AmazonSSMAgentSetup.exe (regional latest/) same Authenticode, Amazon signer

The PR left the hashes out because computing them means fetching each artifact from its AWS origin, and that work ran with no AWS access.

Suggested approach: do what the Linux AWS CLI pin already does (scripts/bump-awscli-pin.sh, .github/workflows/awscli-pin.yml). It fetches at origin in CI, checks the signature, and writes the constants. Specifically:

  • DCV: pin a per-arch tgz sha256 next to dcvVersion, plus the NICE GPG key fingerprint checked after rpm --import. Check both in the boot script before extracting.
  • MSI: have the weekly bump also record the MSI's sha256 for the same version. Verify it in a CI step with osslsigncode verify or on a Windows runner.
  • SSM agent: pin a version, using the SSMAgent/<version>/windows_amd64/ path, and its sha256.

Each one fails closed on a mismatch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions