Skip to content

Fixes #39199 - Prevent spurious calls to the proxy related to pubkey/ca pubkey refresh#1026

Merged
ofedoren merged 2 commits intotheforeman:masterfrom
adamruzicka:optional-refresh
Mar 31, 2026
Merged

Fixes #39199 - Prevent spurious calls to the proxy related to pubkey/ca pubkey refresh#1026
ofedoren merged 2 commits intotheforeman:masterfrom
adamruzicka:optional-refresh

Conversation

@adamruzicka
Copy link
Copy Markdown
Contributor

No description provided.

@adamruzicka adamruzicka changed the title Prevent various Prevent spurious calls to the proxy related to pubkey/ca pubkey refresh Mar 30, 2026
@ofedoren
Copy link
Copy Markdown
Member

Thanks, @adamruzicka, should we link this in Redmine / Jira before merging? :) Also rubocop is not happy :/

…ponses

The previous "return stored value or fetch a fresh one if missing"
approach used for pubkey and ca_pubkey could cause calls to the proxy in
unexpected situations. This could lead to problems like not being able
to list smart proxies if the proxy which didn't have one of the pubkey
fields filled was down.

This change more strictly separates when values are only read and when
values can be updated as part of reading.
@adamruzicka
Copy link
Copy Markdown
Contributor Author

should we link this in Redmine / Jira before merging?

Done

Also rubocop is not happy :/

Rubocop is hard to please at times. Let's see what it thinks now

@adamruzicka adamruzicka changed the title Prevent spurious calls to the proxy related to pubkey/ca pubkey refresh Fixes #39199 - Prevent spurious calls to the proxy related to pubkey/ca pubkey refresh Mar 31, 2026
Copy link
Copy Markdown
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

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

Thanks, @adamruzicka, it fixes the issue and it also takes pubkey into consideration, so we won't face similar bug 🥇

@ofedoren ofedoren merged commit ae0434b into theforeman:master Mar 31, 2026
13 checks passed
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.

2 participants