2021-08-20 20:28:41 +00:00
|
|
|
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
|
|
|
{{- $version := replaceRE "v" "" (index $productPathData 1) -}}
|
|
|
|
{{- $patchVersions := .Site.Data.products.telegraf.latest_patches -}}
|
|
|
|
{{- $latestPatch := print $version "." (index $patchVersions $version) -}}
|
2020-07-30 16:34:24 +00:00
|
|
|
### Verify the authenticity of downloaded binary (optional)
|
|
|
|
|
|
|
|
InfluxData cryptographically signs each Telegraf binary release.
|
|
|
|
For added security, follow these steps to verify the signature of your download with `gpg`.
|
|
|
|
|
|
|
|
(Most operating systems include the `gpg` command by default.
|
|
|
|
If `gpg` is not available, see the [GnuPG homepage](https://gnupg.org/download/) for installation instructions.)
|
|
|
|
|
|
|
|
1. Download and import InfluxData's public key:
|
|
|
|
|
|
|
|
```
|
2023-01-25 17:49:36 +00:00
|
|
|
curl -sL https://repos.influxdata.com/influxdata-archive_compat.key | gpg --import
|
2020-07-30 16:34:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
2. Download the signature file for the release by adding `.asc` to the download URL.
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```
|
2024-11-28 22:10:07 +00:00
|
|
|
wget https://dl.influxdata.com/telegraf/releases/telegraf-{{ $latestPatch }}_linux_amd64.tar.gz.asc
|
2020-07-30 16:34:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
3. Verify the signature with `gpg --verify`:
|
|
|
|
|
|
|
|
```
|
2021-08-20 20:28:41 +00:00
|
|
|
gpg --verify telegraf-{{ $latestPatch }}_linux_amd64.tar.gz.asc telegraf-{{ $latestPatch }}_linux_amd64.tar.gz
|
2020-07-30 16:34:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
The output from this command should include the following:
|
|
|
|
|
|
|
|
```
|
|
|
|
gpg: Good signature from "InfluxDB Packaging Service <support@influxdb.com>" [unknown]
|
|
|
|
```
|