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

[ADAP-426] [Feature] Add Flag to the Profile to Redact User Data from Logs #547

Open
3 tasks done
HRusby opened this issue Mar 30, 2023 · 3 comments
Open
3 tasks done
Labels
help_wanted Extra attention is needed pkg:dbt-snowflake type:enhancement New feature or request

Comments

@HRusby
Copy link

HRusby commented Mar 30, 2023

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt-snowflake functionality, rather than a Big Idea better suited to a discussion

Describe the feature

In PR #378 a change was made to redact data from the dbt logs on a failed model e.g. due to duplicate data during a dbt run. While this behavior is useful, it ought to be configurable such that developers can disable the redaction whilst investigating a failed model. The end user can also then decide whether data redaction is suitable for them or whether it grants more benefit to show data in the logs.

I would suggest that if the new config option isn't present then data ought to be redacted by default, it should be an explicit choice from the user to not redact data.

Describe alternatives you've considered

No response

Who will this benefit?

Developers investigating failing models
Users that do not require data redaction

Are you interested in contributing this feature?

Yes, I've begun to take a look at the code, though I am currently struggling to get the functional tests to run on a fresh checkout I suspect due to authorisation with my Snowflake Account.

Anything else?

Relevant section of code is at https://github.com/dbt-labs/dbt-snowflake/blob/main/dbt/adapters/snowflake/connections.py#L263

@HRusby HRusby added type:enhancement New feature or request triage:product labels Mar 30, 2023
@github-actions github-actions bot changed the title [Feature] Add Flag to the Profile to Redact User Data from Logs [ADAP-426] [Feature] Add Flag to the Profile to Redact User Data from Logs Mar 30, 2023
@Fleid Fleid added help_wanted Extra attention is needed and removed triage:product labels Apr 5, 2023
@Fleid Fleid self-assigned this Apr 5, 2023
@Fleid
Copy link
Contributor

Fleid commented Apr 5, 2023

I'm not against it, as long as it's an optional flag that default to false.
Thanks for looking into it!

@dbeatty10
Copy link
Contributor

@Fleid currently the log redaction is a Snowflake-only feature. Should the redaction feature + the proposed optional config be promoted to dbt-core?

@Fleid
Copy link
Contributor

Fleid commented Apr 7, 2023

Good point @dbeatty10. We should have a clear heuristics to make those decisions...

Anyway, here it looks like it's a connections.py thing, which makes it a local problem? So the question may be less about making it a core level ask, and more about replicating it across other adapters?

@Fleid Fleid removed their assignment Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help_wanted Extra attention is needed pkg:dbt-snowflake type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants