Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GrafanaApi instantiation to disable SSL verification #154

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/app/connectors/grafana/utils/universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def verify_grafana_credentials(attributes: Dict[str, Any]) -> Dict[str, An

grafana_url = await construct_grafana_url(connector_url, username, password)

grafana_client = GrafanaApi.from_url(grafana_url)
grafana_client = GrafanaApi.from_url(grafana_url, verify=False)
try:
create_org = grafana_client.organization.create_organization(
organization={
Expand Down Expand Up @@ -120,7 +120,7 @@ async def create_grafana_client(connector_name: str) -> GrafanaApi:
attributes["connector_username"],
attributes["connector_password"],
)
return GrafanaApi.from_url(grafana_url)
return GrafanaApi.from_url(grafana_url, verify=False)
except Exception as e:
raise HTTPException(
status_code=500,
Expand Down
Loading