From 352841f0ce8c5829c8df55be99884f6a4e317331 Mon Sep 17 00:00:00 2001 From: Konstantin Sykulev Date: Tue, 4 Mar 2025 10:04:45 -0600 Subject: [PATCH] Updated s3 and cloudfront docs (#26793) In `server/config/config.go` the `S3Config` expects differently named yaml keywords for the cloudfront public and private key values. https://github.com/fleetdm/fleet/blob/main/server/config/config.go#L330-L332 ``` SoftwareInstallersCloudFrontURL string `yaml:"software_installers_cloudfront_url"` SoftwareInstallersCloudFrontURLSigningPublicKeyID string `yaml:"software_installers_cloudfront_url_signing_public_key_id"` SoftwareInstallersCloudFrontURLSigningPrivateKey string `yaml:"software_installers_cloudfront_url_signing_private_key"` ``` --- articles/cdn-signed-urls.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/articles/cdn-signed-urls.md b/articles/cdn-signed-urls.md index e886dc519a..0f2a023503 100644 --- a/articles/cdn-signed-urls.md +++ b/articles/cdn-signed-urls.md @@ -21,8 +21,8 @@ To configure S3 and CloudFront in Fleet, use the [S3 server configuration option To enable CloudFront signed URLs, set the following options in your Fleet server configuration: - `s3_software_installers_cloudfront_url`: The base URL of your CloudFront distribution, such as `https://d1234567890.cloudfront.net`. -- `s3_software_installers_cloudfront_key_pair_id`: The CloudFront signer's key pair ID, such as `K1HFGXOMBB6TFF`. -- `s3_software_installers_cloudfront_private_key`: The CloudFront signer's private key, such as `-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAz...`. +- `s3_software_installers_cloudfront_url_signing_public_key_id`: The CloudFront signer's key pair ID, such as `K1HFGXOMBB6TFF`. +- `s3_software_installers_cloudfront_url_signing_private_key`: The CloudFront signer's private key, such as `-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAz...`. The `FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PRIVATE_KEY` environment variable can be set from a file. On macOS, it requires [gnu-sed](https://formulae.brew.sh/formula/gnu-sed) (`gsed`) to replace newlines with `\n` characters.