-
Notifications
You must be signed in to change notification settings - Fork 115
Store output API key secrets in .fleet-secrets instead of .fleet-agents #7416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ycombinator
merged 12 commits into
elastic:main
from
ycombinator:secure-output-api-key-storage
Jul 29, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7e3e209
Store output API key secrets in .fleet-secrets instead of .fleet-agents
ycombinator 6aa6fa4
Add changelog fragment for output API key secret storage change
ycombinator 6a0a124
Add tests for secret reference helpers and output key secret storage
ycombinator 814ba63
Remove security issue reference from changelog fragment
ycombinator c9dcd89
Restore copyright header in generated schema.go
ycombinator 7d18172
Populate SecretID when retiring a removed output's API key
ycombinator 6fdc164
fix: check HTTP status code in fleet secrets API calls
ycombinator af26f66
fix: error if output API key secret missing from resolved map
ycombinator 0af4d41
fix: delete output API key secrets on agent unenroll
ycombinator 59e285c
fix: use two-value type assertions in MockBulk to satisfy errcheck
ycombinator 5278957
fix: address prealloc and staticcheck lint issues in touched files
ycombinator 0818c0e
fix: delete orphaned secret if .fleet-agents update fails after Write…
ycombinator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
changelog/fragments/1784582418-secure-output-api-key-storage.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| kind: security | ||
|
|
||
| summary: Store output API key secrets in .fleet-secrets instead of .fleet-agents | ||
|
|
||
| description: | | ||
| Fleet Server now writes output API key material to .fleet-secrets via the Fleet | ||
| secrets API (POST /_fleet/secret) and stores only a $co.elastic.secret{id} reference | ||
| in .fleet-agents-7. Previously, the raw id:secret string was stored in plaintext in | ||
| outputs.{name}.api_key, which the kibana_system role could read and use to escalate | ||
| privileges to SIEM data stream write access. Retired secrets are deleted from | ||
| .fleet-secrets on ACK. Existing plaintext values continue to work transparently | ||
| until the next key rotation. | ||
|
|
||
| component: fleet-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.