Skip to content

fix(graph): avoid logging GraphQL query contents in execute_graphql#17231

Open
Anshul759 wants to merge 1 commit intodatahub-project:masterfrom
Anshul759:Fix-secure-code-vulnerability
Open

fix(graph): avoid logging GraphQL query contents in execute_graphql#17231
Anshul759 wants to merge 1 commit intodatahub-project:masterfrom
Anshul759:Fix-secure-code-vulnerability

Conversation

@Anshul759
Copy link
Copy Markdown
Contributor

This change removes clear-text GraphQL query logging from execute_graphql in metadata-ingestion/src/datahub/ingestion/graph/client.py.

Previously, the debug log included the full query string. In some cases, GraphQL queries can contain inline sensitive values, which means secrets could be written to logs in clear text. This reduces the risk of leaking sensitive information through application logs while preserving useful debugging metadata.

This is a low-risk security hardening change that prevents accidental secret exposure in logs.

@github-actions github-actions Bot added ingestion PR or Issue related to the ingestion of metadata community-contribution PR or Issue raised by member(s) of DataHub Community labels Apr 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Linear: ING-2487

Thanks for your contribution! We have created an internal ticket to track this PR. A member of the core DataHub team will be assigned to review it within the next few business days - you will get a follow-up comment once a reviewer is assigned.

@Anshul759 Anshul759 changed the title Avoid logging GraphQL query contents in execute_graphql fix(graph): avoid logging GraphQL query contents in execute_graphql Apr 29, 2026
@maggiehays maggiehays added the needs-review Label for PRs that need review from a maintainer. label Apr 29, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Bundle Report

Bundle size has no change ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community ingestion PR or Issue related to the ingestion of metadata needs-review Label for PRs that need review from a maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants