Connection issue - accessing CAS in containerized Viya 4 environment from local Python client.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- networking, security
Rechercherichtung
Beginnen Sie mit der für den lokalen Jupyter-Client beschriebenen Einrichtung der swat.CAS-Verbindung, einschließlich CAS_CLIENT_SSL_CA_LIST, trustedcerts.pem, des Ingress-Alias sowie der veröffentlichten HTTP- und Binär-Ports. Reproduzieren Sie beide SSL-Fehler und vergleichen Sie das über den Ingress oder Load Balancer präsentierte Zertifikat und den Hostnamen mit dem an swat.CAS übergebenen Hostnamen; als erledigt gilt die Identifizierung des Verbindungspfads und der erforderlichen Konfiguration.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
My Python client is a local Jupyter notebook application running on my laptop. On my server, I have published both the HTTP and Binary CAS Node ports and also exposed them as Load Balancers, providing external IPs.
As a first check - I first used swat to access CAS from a Python client on the server - viz. through SAS Studio. Connections to https and bin ports are both successful.
There are two different error messages I get - both are SSL certificate related. The first one is when I connect with the below format ( is the alias for my ingress)
Situation 1 :
os.environ['CAS_CLIENT_SSL_CA_LIST']="trustedcerts.pem"
s = swat.CAS(hostname="<host>/sas-cas-server-default-http", port=443, protocol="https",
username="user",password=getpass.getpass("Enter password"))
Message (error portion):
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
Variants - tried with -bin (cas protocol) and with -client, port=443 and protocol=https
Next, I tried providing a hostname directly, and got the following error (which is a little funny, given that the hostname is actually part of the list of hosts.)
CertificateError: hostname '**10.A.B.C**' doesn't match either of '10.A.B.A', '**10.A.B.C**', 'controller', 'controller.sas-cas-server-default', '......'
I have verified my certificate and it is obtained from the cluster directly in per format.
- Vorherrschende Sprache
- Python
- Sterne
- 159
- Forks
- 66
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sassoftware/python-swat
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
sassoftware/python-swat#191 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
sassoftware/python-swat#183 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
sassoftware/python-swat#180 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
sassoftware/python-swat#178 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
sassoftware/python-swat#177 · 1 Kommentar ·
Alle Issues in sassoftware/python-swat
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
KonstantinStarovoytov/kitden#21 ·
Maintainer antworten meist innerhalb von 1 Tag
-
RefactorOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ehmatthes/gh-profiler#166 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
RizgarOzan/playcal#13 ·