confidential-containers / simple-kbs

Key Broker Server for SEV(-ES)
Apache License 2.0
13 stars 13 forks source link

Sql updates new #30

Closed dunnderr closed 2 years ago

dunnderr commented 2 years ago

We have implemented sqlx with Any methods to support mysql, postgres, and sqlite. There are substantial changes to src/request.rs, src/db.rs, and minor updates src/grpc/mod.rs. There are other minor changes to the local test runscript in tools.

dunnderr commented 2 years ago

I am exploring QueryBuilder and some other sql query builder libraries that work with sqlx to address some of Dov's concerns.

dunnderr commented 2 years ago

I made changes to capture sqlx automatic substitutions for mysql, sqlite, and postgres. In addition, I add a function to check for sql injection in strings passed to simple kbs per warnings in the sqlx documentation.