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
fix unenroll offline agents #2092
Conversation
Do we know why this field is empty in the first place? Or is it that one of the API keys is an empty string, but the other isn't? |
We should also add a known issue in the 8.5.x release notes docs for Fleet & Agent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test case to the unit tests for this?
Yes, it looks like the output API key is empty. |
|
@michel-laterman could you approve? I think the codeowners changed and I need someone from @elastic/fleet to approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
* fix unenroll offline agents * added changelog * added unit test * changed ErrNotFound error to an info log * fixed error logic (cherry picked from commit 3b22855)
* fix unenroll offline agents * added changelog * added unit test * changed ErrNotFound error to an info log * fixed error logic (cherry picked from commit 3b22855)
From the state of the 2 backports, this didn't make it for 8.5.2 and it's not yet merged on branches except for |
Yes, it didn't make it to 8.5.2. |
What is the problem this PR solves?
Fix bug with unenrolling offline agents introduced in 8.5
How does this PR solve the problem?
Added missing null check when creating list of API keys to invalidate.
How to test this PR locally
Is this error expected?
this change coming from the same pr that caused the original issue: ca9041f#diff-81f56287429686d60d33c6df7c9774da997979bc050126d4c807aa602683cc71
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues
Closes #2091