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.
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
Add must-gather-service enhancement #36
Add must-gather-service enhancement #36
Changes from all commits
fa20988
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Are these persisted? do we require a PV for this to work?
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.
They are not persisted. The temporary storage is on the container filesystem which gets deleted on container reboot (sqlite db & dumped archives), also automatic old-data cleanup is implemented.
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.
So the UI code could have a must gather per migration(or some ID). but that might be missing. is this something the UI will have to handle?
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.
If the UI sends query for a not existing must-gather execution (by ID or a custom name), it gets 404 HTTP response, so it needs expect that this could happen.
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.
I would really like for us to describe how this is working?
Are we creating a service account with the correct role bindings or are we passing in some kubeconfig that is defined somewhere else?
On top of this, do we know where this service is running (which namespace? how will it be exposed to the clusters network?)
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.
The kubeconfig mounted as PV should used, but I'm just getting more info on authentication process on this - will provide update later.
Expected namespace is the same as Foklift (or other projects) services are deployed. So e.g. openshift-migration, rhmtv, ..
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.
I would really like this to be explained. AFAIK the admin UI is using the user's OAuth account token to make the calls on their behalf.
Also, if I can pass it an arbitrary image and get cluster-admin access, I can do some pretty awful things I would be very concerned about what RBAC/auth(z) we have it place here to make sure this is locked down.
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.
All of must-gather functionality requires admin access to the cluster, so the UI should require it too.
I'm investigating deeper on this.