Skip to content

Intermittent HTTP 401 fetching packages.twingate.com/apt/gpg.key breaks Linux install #86

Description

@mlovrovich

Summary

The Linux install path intermittently fails when fetching the APT signing key. https://packages.twingate.com/apt/gpg.key returns HTTP 401 Unauthorized, which breaks the install step and fails the whole job. It is intermittent — the same workflow succeeds on a re-run with no changes.

What happens

The "Install Twingate (Linux)" step runs:

curl -fsSL https://packages.twingate.com/apt/gpg.key | gpg --batch --yes --no-tty --dearmor -o /usr/share/keyrings/twingate-client-keyring.gpg

When the key endpoint returns 401, curl -f exits non-zero and emits no body, so gpg receives empty input and fails. The step then exits with code 2.

A public APT signing key returning 401 looks like a server-side/CDN issue — the request carries no credentials and none should be required.

Error output (verbatim)

curl: (22) The requested URL returned error: 401
gpg: no valid OpenPGP data found.
##[error]Process completed with exit code 2.

Environment

  • Action: twingate/github-action@v1, "Install Twingate (Linux)" step
  • Runner: GitHub-hosted ubuntu-latest
  • Frequency: intermittent — succeeds on re-run with no changes
  • Example occurrence (UTC): 2026-07-24T15:35:05Z

Impact

Non-deterministic CI deploy failures; each occurrence requires a manual job re-run.

Request

Please investigate why https://packages.twingate.com/apt/gpg.key intermittently returns 401, and confirm whether that endpoint should ever require authorization. If transient upstream failures are expected, it would help if the install step retried the key fetch (and surfaced the HTTP status) rather than silently piping an empty 401 body into gpg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions