-
Notifications
You must be signed in to change notification settings - Fork 44
Patch Katello controllers to enable access by smart proxy #1003
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
Patch Katello controllers to enable access by smart proxy #1003
Conversation
Reviewer's GuideThis PR enables certificate-based smart proxy authentication for Katello API controllers by patching them in the engine’s after_initialize hook, defines on-prem smart proxy features, enhances proxy-related tests, and seeds the necessary feature entries. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ShimShtein - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
86db83d
to
e25abac
Compare
e25abac
to
b9b9234
Compare
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.
@ekohl Fixed your comments and created a proper ticket to track the plugin interface enhancement.
How do I test this? How do I get a smart proxy that provides this service? |
@jeremylenz I have introduced the smart proxy interface to the IoP gateway in RedHatInsights/iop-gateway@6ef809c. You need to spin that container, and try to register it in your Foreman |
This doesn't implement In hindsight I regret not adding the top level version info in |
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.
Hey @ShimShtein - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
/test |
f74ca6a
to
f6fd3c7
Compare
Got it working. Ready for review |
f6fd3c7
to
7467c32
Compare
7467c32
to
8409fb7
Compare
8409fb7
to
bf095a9
Compare
test/controllers/insights_cloud/api/cloud_request_controller_test.rb
Outdated
Show resolved
Hide resolved
94eab0e
to
46a9be4
Compare
46a9be4
to
1ff776b
Compare
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.
thanks @ShimShtein! Let's give it a go.
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.
This PR is causing User.current to be nil only when a Product ID is passed in for some reason in Katello. This causes a product's repositories page to be inaccessible. I just tested varying foreman_rh_cloud commits with Katello to verify. |
Do you know what the fix would be? |
I think foreman_rh_cloud needs to ensure that |
What are the changes introduced in this pull request?
Patching the Katello controllers to enable access from an IoP smart proxy
Considerations taken when implementing this change?
The other option is to implement an RBAC scheme similar to the
User
objectWhat are the testing steps for this pull request?
Access the Katello API using cert based auth with a cert that belongs to a smart proxy
Summary by Sourcery
Patch Katello API controllers to allow Smart Proxy access via certificate authentication, introduce feature listing for on-prem proxies, update proxy-setting tests for on-prem scenarios, and seed the corresponding features in the database.
Enhancements:
Tests:
Chores: