-
Notifications
You must be signed in to change notification settings - Fork 356
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
[ops_controller/settings/zones.rb] Use nested auth attrs #7629
Conversation
Takes changes from ManageIQ/manageiq#21047 and implements them in the controller.
Checked commit NickLaMuro@305fc17 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint |
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 think this is the wrong direction and we should move toward allowing more authentications as mentioned in ManageIQ/manageiq-api#1014 (comment)
@bdunne I disagree... and don't really get where you are coming from... There was comments in that discussion like this: ManageIQ/manageiq-api#898 (comment)
Which is where most of the rest of that conversation was heading. Now, if you were referring to this bit: ManageIQ/manageiq-api#898 (comment)
That was referring to authentications being a subcollection for other resources in general, not specifically to the The PR that originally came out of that was this one: And that had a number of flaws and a bunch of hackery to code that is mostly unused to make it work. It also exposed a bunch of flaws in the routes in the API that I was just not at liberty to fix and was completely out of scope, so using So from my perspective, I only see |
ManageIQ/manageiq-api#898 (comment) mentions that this is used for scanning. Since this credential isn't used by the zone I think it's best to keep the |
@bdunne The two things you are mentioning are taken out of context, and are bad reasons to be pointing to for expanding credentials:
He was only stating there is other places in code base where this is being done differently with SSH credentials, not that we should add things to
The previous sentence above basically confirms this is the case:
And more importantly, the reason this is being discussed is that we need a way to expose this in the API that also doesn't take two API calls to do (per the request), which is what my core PR is trying to solve.
It is, but it is specifically for "Windows VMs" to collect running processes, and the validation basically prove that this is a feature that doesn't exist for anything but Windows VMs: And since that method, or any one of the other 2 places in the entire This is an undocumented, and probably underutilized (if used at all) feature that just happens to be a roadblock for the React UI conversion. Bottom line... I am not changing how anything is working here, just how it is defined, and moving that definition from out of the controllers (which is NOT where it should live), to the model, where |
Takes changes from ManageIQ/manageiq#21047 and implements them in the controller. MUST BE MERGED WITH THAT PR
Links