Skip to content
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

update URL of local advisor engine as it is deployed by the installer #943

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Jan 27, 2025

  • don't set legacy insights ca when local advisor engine is used
  • update URL of local advisor engine as it is deployed by the installer

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to figure out what's going on in lib/foreman_rh_cloud.rb and I think it's extremely complex. It's sort of reinventing the settings system we already have in place. Also, we have a generic proxy system and it doesn't appear to be reusing that.

For example:

def self.cdn_proxy(logger: Foreman::Logging.logger('app'))
proxy_config = SETTINGS[:katello][:cdn_proxy]
return nil unless proxy_config
uri = URI('')
uri.host = proxy_config[:host]
uri.port = proxy_config[:port]
uri.scheme = proxy_config[:scheme] || 'http'
if proxy_config[:user]
uri.user = CGI.escape(proxy_config[:user])
uri.password = CGI.escape(proxy_config[:password])
end
uri.to_s
rescue URI::Error => e
logger.warn("cdn_proxy parsing failed: #{e}")
nil
end

In Katello/katello@d593923 the last traces of this were removed. #944 gets rid of that at least.

@chris1984 chris1984 requested a review from parthaa January 28, 2025 15:16
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, @parthaa can you have a look as well?

Copy link
Collaborator

@parthaa parthaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chris1984 chris1984 merged commit ee8e13e into develop Jan 29, 2025
12 checks passed
@chris1984 chris1984 deleted the local-advisor branch January 29, 2025 19:03
@chris1984 chris1984 restored the local-advisor branch January 29, 2025 19:03
@chris1984 chris1984 deleted the local-advisor branch January 29, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants