cott-io / iron-cli-releases-repo

Project Iron (Fe) release artifacts and installation utilities
0 stars 0 forks source link

Better REST API input validation #21

Closed pkopriv2 closed 6 years ago

pkopriv2 commented 6 years ago

Much of our system requires constraints to work properly. currently, these constraints have had little support at any layer - save for maybe the storage layer.

We need to add input validation to each of our api methods to ensure that our system can never obtain an invalid state.

For example, at the user level, domain names take the form "example-io" (letters, numbers, dashes, etc...) - however, this is not enforced anywhere!

AC:

Corresponding tests added to the /sdk package.

benhammes commented 6 years ago

Starting on it today.

benhammes commented 6 years ago

Sent to Trello.