Skip to content

Commit 9603d79

Browse files
committed
Don't override @opts in create_client_from_token
`@opts` is already correctly set in `initialize` and if we override it, we disable SSL validation Fixes: efbeed4 Fixes: CVE-2026-1530
1 parent 94cebe3 commit 9603d79

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/fog/kubevirt/compute/compute.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -346,16 +346,6 @@ def create_client(path)
346346
end
347347

348348
def create_client_from_token(url)
349-
# Prepare the TLS and authentication options that will be used for the standard Kubernetes API
350-
# and also for the KubeVirt extension:
351-
@opts = {
352-
:ssl_options => {
353-
:verify_ssl => OpenSSL::SSL::VERIFY_NONE,
354-
},
355-
:auth_options => {
356-
:bearer_token => @kubevirt_token
357-
}
358-
}
359349
version = detect_version(url.to_s, @opts[:ssl_options])
360350
key = url.path + '/' + version
361351

0 commit comments

Comments
 (0)