feat: get_web_login_auth on the vCenter (0.6.0) #14

Merged
christianmanivong merged 4 commits from feature/web-login-auth-662 into main 2026-11-29 22:41:24 +00:00
4 Commits
Author SHA1 Message Date
Christian Manivong 3275f06615 refactor: split web_login_sources so it stays within the complexity ratchet (NetOrk/netork#662)
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 14s
driver / lowest (pull_request) Successful in 51s
driver / types (pull_request) Successful in 1m24s
driver / test (3.13) (pull_request) Successful in 1m12s
driver / test (3.12) (pull_request) Successful in 1m26s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Successful in 1m10s
CI / driver (pull_request) Successful in 2m15s
driver / publish (pull_request) Skipped
2026-11-29 23:30:19 +01:00
Christian Manivong 6a66c05f5e feat: read the identity providers best effort; a refused list is federation not read (NetOrk/netork#662)
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Failing after 17s
driver / lowest (pull_request) Successful in 34s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / types (pull_request) Successful in 1m5s
driver / test (3.13) (pull_request) Successful in 1m2s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 1m8s
CI / driver (pull_request) Failing after 1m59s
driver / publish (pull_request) Skipped
Listing the providers needs VcIdentityProviders.Manage besides .Read,
which allows changing the identity provider configuration. The verdict is
not assessed either way, so the driver no longer needs it: a 401/403 on
GET /api/vcenter/identity/providers yields the SSO domains plus one
source, "identity federation (not read)" (federation, unknown), instead
of an error. PermissionError stays for a refused domainList; any other
error of the REST read is raised as before. Part of 0.6.0, not yet tagged.
2026-11-29 22:41:02 +01:00
Christian Manivong cf4d115475 chore(release): 0.6.0
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Successful in 15s
driver / lowest (pull_request) Successful in 34s
driver / types (pull_request) Successful in 1m3s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 57s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 1m48s
driver / publish (pull_request) Skipped
2026-11-29 20:10:03 +01:00
Christian Manivong ab18ca87ca feat: get_web_login_auth on the vCenter, a source per provider and SSO domain (NetOrk/netork#662)
The vCenter driver reads how people log in to the vSphere Client, in
napalm-device-types' WebLoginAuthDict: each identity provider of identity
federation (GET /api/vcenter/identity/providers) is a source that decides
itself (external), the default first; each SSO domain the vSphere API names
(UserDirectory.domainList) is a source whose second factor cannot be read
(unknown), since smart card and RSA SecurID live in SSO's authentication
policy, which neither API exposes.

Listing the providers needs VcIdentityProviders.Read and .Manage; without
them the vCenter answers 403 and the driver raises PermissionError naming
them. The REST read logs in to /api/session with the same account and logs
out after. The ESXi driver has no reader.
2026-11-29 20:09:55 +01:00