-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcdb639
commit c82e399
Showing
3 changed files
with
38 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# File Domain | ||
The File domain allows for validation of arbitrary file contents. The file domain can evaluate local files and network files. Files are copied to a temporary directory for evaluation and deleted afterwards. | ||
|
||
## Specification | ||
The File domain specification accepts a descriptive name for the file as well as it's path: | ||
|
||
```yaml | ||
domain: | ||
type: file | ||
file-spec: | ||
filepaths: | ||
- name: config | ||
path: grafana.ini | ||
``` | ||
## Supported File Types | ||
The file domain use's OPA's [conftest](https://conftest.dev) to parse files into a json-compatible format for validations. Both OPA and kyverno (using [kyverno-json](https://kyverno.github.io/kyverno-json/latest/)) can validate files parsed by the file domain. | ||
The file domain supports the following file formats for validation: | ||
* CUE | ||
* CycloneDX | ||
* Dockerfile | ||
* EDN | ||
* Environment files (.env) | ||
* HCL and HCL2 | ||
* HOCON | ||
* Ignore files (.gitignore, .dockerignore) | ||
* INI | ||
* JSON | ||
* Jsonnet | ||
* Property files (.properties) | ||
* SPDX | ||
* TextProto (Protocol Buffers) | ||
* TOML | ||
* VCL | ||
* XML | ||
* YAML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.