Skip to content

Commit

Permalink
chore(metadata) Addressing vulnerabilities (#10296)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtekal authored Apr 19, 2024
1 parent 62c7ac7 commit 996e5b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion metadata-ingestion/docs/sources/presto/presto_recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source:

# Credentials
username: foo
password: datahub
password: password

sink:
# sink configs
2 changes: 1 addition & 1 deletion metadata-ingestion/docs/sources/trino/trino_recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source:

# Credentials
username: foo
password: datahub
password: password

# If you need to connect to Trino over http and not https, uncomment this section.
# options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def requests_get(self, url_http: str, url_https: str, content_type: str) -> Any:
response = requests.get(
url=url_https,
auth=self.get_auth_credentials,
verify=False,
verify=True,
)
except ConnectionError:
LOGGER.info("Request to Report URL={}".format(url_http))
Expand Down
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/ingestion/source/pulsar.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def __init__(self, config: PulsarSourceConfig, ctx: PipelineContext):
f"{self.config.issuer_url}/.well-known/openid-configuration"
)
oid_config_response = requests.get(
oid_config_url, verify=False, allow_redirects=False
oid_config_url, verify=self.session.verify, allow_redirects=False
)

if oid_config_response:
Expand Down Expand Up @@ -163,7 +163,7 @@ def get_access_token(self) -> str:
token_response = requests.post(
url=token_endpoint,
data=data,
verify=False,
verify=self.session.verify,
allow_redirects=False,
auth=(
self.config.client_id,
Expand Down

0 comments on commit 996e5b0

Please sign in to comment.