Skip to content

Destination DuckDB should not have access to parquet files#81

Merged
tim-band merged 2 commits intomainfrom
duckdb-hardening
Mar 2, 2026
Merged

Destination DuckDB should not have access to parquet files#81
tim-band merged 2 commits intomainfrom
duckdb-hardening

Conversation

@tim-band
Copy link
Collaborator

Datafaker explicitly asks for destination database access.
Destination database access to a DuckDB database refuses Parquet file access.
Writing the tests was the hard part!

Copy link

@stefpiatek stefpiatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

tests/utils.py Outdated
Comment on lines +197 to +198
# duckdb_con = duckdb.connect(self._db_path)
# duckdb_con.close()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh why have we commented this out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, I was trying to simplify because DuckDB was getting a bit pernickety about what was open and what wasn't, and I wondered if I could do without it. Turned out I could; just forgot to delete it!

Comment on lines +231 to +234
"config": {
"enable_external_access": False,
}
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh interesting who knew

@tim-band tim-band merged commit 18bb0bf into main Mar 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants