Skip to main content
Version: Next

Installation

driftctl is available on Linux, macOS and Windows.

Binaries are available in the release page.

This is an example using curl. If you don't have curl, install it, or use wget.

# Linux
# x64
$ curl -L https://github.com/snyk/driftctl/releases/latest/download/driftctl_linux_amd64 -o driftctl

# x86
$ curl -L https://github.com/snyk/driftctl/releases/latest/download/driftctl_linux_386 -o driftctl

# macOS
$ curl -L https://github.com/snyk/driftctl/releases/latest/download/driftctl_darwin_amd64 -o driftctl

Make the binary executable:

$ chmod +x driftctl

Optionally install driftctl to a central location in your PATH:

# use any path that suits you, this is just a standard example. Install sudo if needed.
$ sudo mv driftctl /usr/local/bin/

Verify digital signatures

driftctl releases are signed using PGP key (ed25519) with fingerprint 65DD A08A A160 5FC8 211F C928 FFB5 FCAF D223 D274. Our key can be retrieved from common keyservers.

caution

Since 07/01/2023 the key to sign driftctl releases has been changed because of a security issue with CircleCI secrets.

Prior to v0.38.2 they key used to verify release was 2776 6600 5A7F 01D4 84F6376D ACC7 76A7 9C82 4EBD

Current key

  • Fingerprint 65DD A08A A160 5FC8 211F C928 FFB5 FCAF D223 D274

legacy key < v0.38.2

  • Fingerprint 2776 6600 5A7F 01D4 84F6376D ACC7 76A7 9C82 4EBD
# Download binary, checksums and signature
$ curl -L https://github.com/snyk/driftctl/releases/latest/download/driftctl_linux_amd64 -o driftctl_linux_amd64
$ curl -L https://github.com/snyk/driftctl/releases/latest/download/driftctl_SHA256SUMS -o driftctl_SHA256SUMS
$ curl -L https://github.com/snyk/driftctl/releases/latest/download/driftctl_SHA256SUMS.gpg -o driftctl_SHA256SUMS.gpg

# Import key
# The legacy key must be imported manually since it is now revoked on the keyservers
$ gpg --keyserver hkps://keys.openpgp.org --recv-keys 65DDA08AA1605FC8211FC928FFB5FCAFD223D274

# Verify signature (optionally trust the key from gnupg to avoid any warning)
$ gpg --verify driftctl_SHA256SUMS.gpg driftctl_SHA256SUMS

# Verify checksum
$ sha256sum --ignore-missing -c driftctl_SHA256SUMS
driftctl_linux_amd64: OK

PG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