FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
feast/sdk/python/feast/ssl_ca_trust_store_setup.py at apply-progress · feast-dev/feast · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
feast-dev
/
feast
Public
Notifications
You must be signed in to change notification settings
Fork
1.4k
Star
7.2k
Code
Issues
218
Pull requests
191
Discussions
Actions
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
feast
/
sdk
/
python
/
feast
/
ssl_ca_trust_store_setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (19 loc) · 763 Bytes
Breadcrumbs
feast
/
sdk
/
python
/
feast
/
ssl_ca_trust_store_setup.py
Copy path
File metadata and controls
22 lines (19 loc) · 763 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import
logging
import
os
logger
=
logging
.
getLogger
(
__name__
)
logger
.
setLevel
(
logging
.
INFO
)
def
configure_ca_trust_store_env_variables
():
"""
configures the environment variable so that other libraries or servers refer to the TLS ca file path.
:param ca_file_path:
:return:
"""
if
(
"FEAST_CA_CERT_FILE_PATH"
in
os
.
environ
and
os
.
environ
[
"FEAST_CA_CERT_FILE_PATH"
]
):
logger
.
info
(
f"Feast CA Cert file path found in environment variable FEAST_CA_CERT_FILE_PATH=
{
os
.
environ
[
'FEAST_CA_CERT_FILE_PATH'
]
}
. Going to refer this path."
)
os
.
environ
[
"SSL_CERT_FILE"
]
=
os
.
environ
[
"FEAST_CA_CERT_FILE_PATH"
]
os
.
environ
[
"REQUESTS_CA_BUNDLE"
]
=
os
.
environ
[
"FEAST_CA_CERT_FILE_PATH"
]
Back
|
FazBrowse Home
|
New Git URL