Connection issue - accessing CAS in containerized Viya 4 environment from local Python client.
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- python
- 領域
- networking, security
研究方向
從為本機 Jupyter 用戶端描述的 swat.CAS 連線設定開始,包括 CAS_CLIENT_SSL_CA_LIST、trustedcerts.pem、ingress 別名,以及已公開的 HTTP 和二進位連接埠。重現兩個 SSL 錯誤,並將透過 ingress 或負載平衡器呈現的憑證和主機名稱與提供給 swat.CAS 的主機名稱進行比較;完成的標準是確定連線路徑和必要的設定。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 159
- 分支
- 66
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
sassoftware/python-swat 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 30/100
sassoftware/python-swat#191 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
sassoftware/python-swat#183 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
sassoftware/python-swat#180 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
sassoftware/python-swat#178 ·
-
難度 4/5 3-5 天 新手友好度 25/100
sassoftware/python-swat#177 · 1 則留言 ·
查看 sassoftware/python-swat 的全部 Issue
相似的 Issue
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 76/100
graphql-python/graphql-core#304 ·
維護者通常 1 天內回覆
-
docs size:S
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
Gathin23/cleanyourtv#3464 ·
維護者通常 1 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆