fix(rest): no plain-HTTP login for a switch with a pinned certificate
driver / standard (pull_request) Successful in 19s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m11s
driver / test (3.12) (pull_request) Failing after 1m9s
driver / test (3.13) (pull_request) Failing after 1m0s
driver / lowest (pull_request) Failing after 29s
driver / build (pull_request) Successful in 37s
driver / security (pull_request) Successful in 1m17s
CI / driver (pull_request) Failing after 3m1s
driver / publish (pull_request) Skipped

The probe falls back to HTTP when HTTPS does not answer. For a switch
known by its certificate that is a downgrade anyone who blocks port 443
can force: the login would go out in clear text, unchecked. With a
pinned fingerprint the REST API is skipped then and the CLI transports
are tried; without one, plain HTTP is used as before.

Refs #17
This commit is contained in:
Christian Manivong committed 2026-11-01 22:24:30 +01:00
1 parent cb7268b89c
commit e51ddcd151
5 files changed
+46 -4

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ has one (napalm-device-types):
A refused host key or certificate ends `open()` with a `ConnectionException` naming both
fingerprints. The driver does not try the next transport then: it would reach the same
host with the same password, over Telnet in clear text. Plain HTTP REST has no
certificate to check.
certificate to check: a switch with a pinned certificate is not logged in to over it.
## Switch prerequisites