Skip to content

Changing server.pgp.upstream_url doesn't override cached pgp key #7836

Description

@lorienhu

Fleet Server serves a PGP key to agents at /api/agents/upgrades/<version>/pgp-public-key.
The key is resolved as cache, then <pgp.dir>/default.pgp on disk, then a fetch from
server.pgp.upstream_url, and the fetched key is written to disk.

Once default.pgp exists on disk, changing server.pgp.upstream_url has no effect. This file is always read if it exists and never cleared.

Found while investigating https://github.com/elastic/sdh-beats/issues/7564.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions