18F / imls-pi-stack

Other
7 stars 0 forks source link

Re-architect validation #67

Open cantsin opened 2 years ago

cantsin commented 2 years ago

Background

Currently we use api.data.gov and ReVal (imls-validation) to 1. secure API access and 2. validate incoming data to the database.

For phase 4, I think we want to remove both dependencies as these are fairly heavyweight. I think we can build a validation layer on top of Directus, perhaps entirely using SQL triggers. And since we are automatically handing out authentication tokens via a separate service, I think we can layer on authentication (and perhaps some rough rate limiting, e.g., 429 Too Many Requests).

This covers the following stories:

  1. As an ...

We'll know we're done when...

Tasks

Definition of Done