os-climate / osc-trino-acl-dsl

A declarative format for configuring Trino access control
Apache License 2.0
4 stars 3 forks source link

Dsl precommit hook #2

Closed erikerlandson closed 2 years ago

erikerlandson commented 2 years ago

A pre-commit hook that could be used with operate-first/apps and enforce that DSL files are properly synced with rules.json prior to commits.

This approach allows the current trino configuration system to remain in place, but instead maintain a dsl.yaml file that is kept in sync with corresponding rules.json using trino-dsl-to-rules module command.

cc @HumairAK @harshad16

HumairAK commented 2 years ago

lgtm!