GSA-TTS / jemison

An exploration of the space of search
Other
1 stars 0 forks source link

:scroll: Rework configuration into Jsonnet #4

Closed jadudm closed 1 week ago

jadudm commented 2 weeks ago

Story

As a developer, I want my configuration to be 1) extensible and 2) validated.

Background

Jsonnet is essentially a very light programming language that produces JSON documents. It has variables, functions, and a host of other useful little features that make it easy to compile a JSON document from parts. As a result, it is very well suited for configuration management tasks (e.g. Terraform, generating viper configs, etc.).

I've used it elsewhere, and it leads to very sustainable configs/practices. It also helps eliminate errors, because it includes syntax and other checking along the way, which no static text file has.

Security implications

None. Or, this will reduce the likelihood of a configuration file leading to a misconfiguration at deploy time that has negative consequences.

jadudm commented 1 week ago

Done.