-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[BeatsCM] fix API for tokens to support any number #30335
[BeatsCM] fix API for tokens to support any number #30335
Conversation
Pinging @elastic/beats |
💔 Build Failed |
Failed test is red master |
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.
@mattapperson I've tested that PR and it breaks the UI, when I enroll beat and assign config block they do not stick to the tag.
If I edit a tag and try to add config block they also don't get associated with the tag.
From our discussion we are closing this and moving to a webtoken implementation. |
I've tested it and forgot to update the issue directly, the new token does appear to work, but I had issues with the UI to create configuration block to a tag, I can create them in the first enrolling screen. But they are not persisted to the UI. |
@ph I am unable to replicate that issue |
💔 Build Failed |
@mattapperson Not sure what I am doing wrong but I can reproduce it with the following steps. preconditions:
steps:
|
Also I don’t see any errors in the dev console, Kibana or ES and I have used the elastic/change me credentials combo. |
Bah. Just needed a merge with master. My bad @ph, I had merged master locally for the doc change and never pushed. The issue you were seeing was the config being saved but the query failing on the 8.0/7.0 ES snapshots. I just pushed the merge with master. Should be good now. |
Jenkins test this |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
I pulled this down and verified this is now working as intended. How else should I test this? |
Please confirm @ph's issue is no longer present. Other then that (and a code review if you don't mind 😊 ) we are GTG |
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.
Functionally, LGTM!
💚 Build Succeeded |
PH is out of office and Chris approved, Verified the issue PH found was fixed
* add basic script for standing up a fake env * tweaks * API needs to support any number of tokens not us * [BeatsCM] Add testing script used to create test deployments * Move to JWT for enrollment * wrap dont scroll command * Dont use token as token ID * fix tests * not sure why this file is enabled in this branch/PR…
* add basic script for standing up a fake env * tweaks * API needs to support any number of tokens not us * [BeatsCM] Add testing script used to create test deployments * Move to JWT for enrollment * wrap dont scroll command * Dont use token as token ID * fix tests * not sure why this file is enabled in this branch/PR…
* add basic script for standing up a fake env * tweaks * API needs to support any number of tokens not us * [BeatsCM] Add testing script used to create test deployments * Move to JWT for enrollment * wrap dont scroll command * Dont use token as token ID * fix tests * not sure why this file is enabled in this branch/PR…
* add basic script for standing up a fake env * tweaks * API needs to support any number of tokens not us * [BeatsCM] Add testing script used to create test deployments * Move to JWT for enrollment * wrap dont scroll command * Dont use token as token ID * fix tests * not sure why this file is enabled in this branch/PR… # Conflicts: # x-pack/plugins/beats_management/server/lib/adapters/framework/integration_tests/kibana.ts
* add basic script for standing up a fake env * tweaks * API needs to support any number of tokens not us * [BeatsCM] Add testing script used to create test deployments * Move to JWT for enrollment * wrap dont scroll command * Dont use token as token ID * fix tests * not sure why this file is enabled in this branch/PR…
…1661) * [BeatsCM] fix API for tokens to support any number (#30335) * add basic script for standing up a fake env * tweaks * API needs to support any number of tokens not us * [BeatsCM] Add testing script used to create test deployments * Move to JWT for enrollment * wrap dont scroll command * Dont use token as token ID * fix tests * not sure why this file is enabled in this branch/PR… # Conflicts: # x-pack/plugins/beats_management/server/lib/adapters/framework/integration_tests/kibana.ts * remove dev only k7Design
This PR both fixes the API so it responds correctly with large number of tokens created/beats enrolled (there was a collision issue with the UUID).
Also added a manual testing CLI tool for this as automated testing alone did not catch the issue.