Affected by GO-2023-1581
and 5 other vulnerabilities
GO-2023-1581: Uncontrolled Resource Consumption in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2023-1899: Hashicorp Nomad ACLs Cannot Deny Access to Workload’s Own Variables in github.com/hashicorp/nomad
GO-2024-2669: API token secret ID leak to Sentinel in github.com/hashicorp/nomad
GO-2024-2670: ACL security vulnerability in github.com/hashicorp/nomad
GO-2024-3073: Nomad Vulnerable to Allocation Directory Escape On Non-Existing File Paths Through Archive Unpacking in github.com/hashicorp/nomad
GO-2024-3262: Hashicorp Nomad Incorrect Authorization vulnerability in github.com/hashicorp/nomad
package
Version:
v1.4.4-changelog
Opens a new window with list of versions in this module.
Published: Feb 15, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func BlocksAsAttrs(body hcl.Body) hcl.Body
BlocksAsAttrs rewrites the hcl.Body so that hcl blocks are treated as
attributes when schema is unknown.
This conversion is necessary for parsing task driver configs, as they can be
arbitrary nested without pre-defined schema.
More concretely, it changes the following:
```
config {
meta { ... }
}
```
to
```
config {
meta = { ... } # <- attribute now
}
```
Source Files
¶
Click to show internal directories.
Click to hide internal directories.