open-nomad/jobspec2
Luiz Aoqui 15f9d54dea
api: prevent excessice CPU load on job parse
Add new namespace ACL requirement for the /v1/jobs/parse endpoint and
return early if HCLv2 parsing fails.

The endpoint now requires the new `parse-job` ACL capability or
`submit-job`.
2022-02-09 19:51:47 -05:00
..
addrs
hclutil chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
test-fixtures Expose Consul template configuration parameters (#11606) 2022-01-10 10:19:07 -05:00
functions.go
hcl_conversions.go tests: add tests for invalid syntax cases 2021-02-01 12:51:51 -05:00
helper_test.go appease deadcode linter 2020-11-12 11:44:49 -05:00
parse.go api: prevent excessice CPU load on job parse 2022-02-09 19:51:47 -05:00
parse_job.go appease deadcode linter 2020-11-12 11:44:49 -05:00
parse_map.go Restrict HCL special casing of map[string]interface{} fields 2020-11-12 11:35:39 -05:00
parse_test.go api: prevent excessice CPU load on job parse 2022-02-09 19:51:47 -05:00
types.config.go hcl2: handle unquoted undefined variables (#10419) 2021-04-21 13:24:22 -04:00
types.variables.go jobspec2: ensure consistent error handling between var-file & var. 2021-09-09 11:18:11 +02:00