elastic / elastic/fleet-server

Actions must have an expiration time or they will not be dispatched to agents

Open
#3,103 6 comments 0 reactions 0 assignees View on GitHub
Team:Fleet
Dominant language
Go
Stars
113
Forks
117
Avg merge
1d 16h
Merged PRs (30d)
112

Description

### Summary
[It was discovered](https://github.com/elastic/kibana/issues/170322#issuecomment-1810483659) that an UPGRADE action with no expiration doesn't get dispatched to elastic agent, as fleet-server dispatches only actions where `expiration > now`. [See logic here](https://github.com/elastic/fleet-server/blob/a465d093a882d8b4a9ec1ae97d8494b0d2f9ae39/internal/pkg/dl/actions.go#L117)

So we should allow actions without expiration so in the future it will be possible to completely remove the expiration from Fleet.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.