Skip to content

Add Verify SSL to the providers that were missing it - #78

Merged
aschumann-virtualcable merged 5 commits into
masterfrom
fix/verify-ssl-providers
Aug 28, 2026
Merged

Add Verify SSL to the providers that were missing it#78
aschumann-virtualcable merged 5 commits into
masterfrom
fix/verify-ssl-providers

Conversation

@aschumann-virtualcable

Copy link
Copy Markdown
Contributor

Adds the Verify SSL option to the providers that had no way to control certificate verification, one commit per provider, each with its own test.

Provider What it had
Proxmox The client accepted verify_ssl, but the provider never exposed it and passed a hardcoded False
OVirt insecure=True hardcoded
OpenNebula Verified through Python's default, with no way to change it

Every new field defaults to False, so an upgraded installation keeps behaving exactly as before. The Proxmox test covers that directly: it deserializes a provider stored before the field existed and asserts it still does not verify.

ovirtsdk4.Connection takes insecure/ca_file and not an SSLContext, so there the option drives that flag instead of create_client_sslcontext.

The helper keeps its 4.0 behaviour on purpose, and tests/core/util/test_fields.py pins it: support already knows where this checkbox lives, so moving it would change every provider screen they have been trained on.

Tests: 568 passed, 90 skipped across services, core and auths. Ruff reports no new findings.

The tab argument was inverted: an explicit tab was replaced by ADVANCED,
while None and False produced no tab at all. Now None and False fall back
to ADVANCED and any explicit tab is honoured.

Default stays True, so verification behaviour is unchanged.
The client already accepted verify_ssl and used secure_requests_session,
but the provider never exposed it and passed a hardcoded False.

The field defaults to False so already stored providers keep working
exactly as before after an upgrade.
Connections had insecure=True hardcoded, so certificates were never
checked and there was no way to change it.

ovirtsdk4.Connection takes insecure/ca_file and not an SSLContext, so the
option is threaded down to that flag. It defaults to False, keeping the
current behaviour for already stored providers.
ServerProxy got no ssl context, so Python applied its verifying default
and this provider has been checking certificates all along. Same code in
3.6 and 4.0, so migrating with the option off would relax deployments
instead of preserving them.

The field defaults to True and drives create_client_sslcontext, keeping
the current behaviour and making it switchable.
Support already knows these screens, so the checkbox must not move: the
helper goes back to the 4.0 behaviour and the tests pin it, so a later
change of placement fails instead of surprising them.

OpenNebula now defaults to False like every other provider, even though
it used to verify, so all providers read the same.
@aschumann-virtualcable
aschumann-virtualcable merged commit 284646d into master Aug 28, 2026
5 checks passed
@aschumann-virtualcable
aschumann-virtualcable deleted the fix/verify-ssl-providers branch August 28, 2026 13:49
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