Skip to content

Commit 9836d62

Browse files
authored
Merge pull request #14 from amoffat/dev
Release 1.0.0
2 parents f4c0e4b + 136c39c commit 9836d62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2777
-613
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ __pycache__/
33
/.venv
44
/.env
55
/test_grammar.py
6+
/test_transform.py
67
/dist
78
/.coverage
8-
/TODO.md
9+
TODO.md
910
/docs/build

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"editor.defaultFormatter": "ms-python.black-formatter"
44
},
55
"python.formatting.provider": "none",
6-
"python.testing.pytestArgs": ["heimdallm", "-s", "-x"],
6+
"python.testing.pytestArgs": ["heimdallm", "-s"],
77
"python.testing.unittestEnabled": false,
88
"python.testing.pytestEnabled": true,
99
"editor.rulers": [88],

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 1.0.0 - 9/11/23
4+
5+
- Subquery support
6+
- CTE (Common Table Expressions) support
7+
- PostgreSQL support
8+
- Renamed constraint method `required_constraints` to `parameterized_constraints`
9+
- Renamed Bifrost method `mocked` to `validation_only`
10+
- All exceptions include a `ctx` property for debugging
11+
- Mysql `INTERVAL` syntax support
12+
313
## 0.3.0 - 7/15/23
414

515
- Autofix non-qualified column names

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ the mitigations.
101101

102102
- Sqlite
103103
- MySQL
104+
- Postgres
104105

105106
There is active development for the other top relational SQL databases. To help me
106107
prioritize, please vote on which database you would like to see supported:

docs/source/api/abc/context.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Traverse Context
2+
================
3+
4+
.. automodule:: heimdallm.context
5+
:members:

docs/source/api/abc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ intended for direct use.
1010
envelope
1111
validator
1212
llm_integration
13+
context
1314

1415
sql/index

docs/source/attack_surface/sql.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Optional conditions
129129

130130
When required conditions are defined, either as a :meth:`requester identity
131131
<validator.ConstraintValidator.requester_identities>`, or as some other
132-
:meth:`required constraint <validator.ConstraintValidator.required_constraints>`, an
132+
:meth:`parameterized constraint <validator.ConstraintValidator.parameterized_constraints>`, an
133133
attacker may attempt to bypass the condition by coaxing the LLM to produce a query that
134134
includes the condition as part of an ``OR`` clause. For example:
135135

docs/source/blog/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
📖 Blog Posts
2+
=============
3+
4+
.. toctree::
5+
:glob:
6+
:maxdepth: 2
7+
8+
posts/*

docs/source/blog/posts/safe-sql-execution.rst

Lines changed: 437 additions & 0 deletions
Large diffs are not rendered by default.
81.7 KB
Loading

0 commit comments

Comments
 (0)