Affected by GO-2022-0894
and 3 other vulnerabilities
GO-2022-0894 : Hashicorp Consul Missing SSL Certificate Validation in github.com/hashicorp/consul
GO-2022-0895 : HashiCorp Consul L7 deny intention results in an allow action in github.com/hashicorp/consul
GO-2022-1029 : HashiCorp Consul vulnerable to authorization bypass in github.com/hashicorp/consul
GO-2023-1827 : Hashicorp Consul vulnerable to denial of service in github.com/hashicorp/consul
Discover Packages
github.com/hashicorp/consul
sentinel
package
Version:
v1.10.0-alpha
Opens a new window with list of versions in this module.
Published: Mar 18, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 102
Opens a new window with list of known importers.
Documentation
Documentation
¶
ScopeCatalogUpsert returns the standard sentinel scope for a catalog create
or update. Service is allowed to be nil.
ScopeKVUpsert returns the standard sentinel scope for a KV create or update.
Evaluator wraps the Sentinel evaluator from the HashiCorp Sentinel policy
engine.
New returns a new instance of the Sentinel code engine. This is only available
in Consul Enterprise so this version always returns nil.
type ScopeFn func() map[string ]interface{}
ScopeFn is a callback that provides a sentinel scope. This is a callback
so that if we don't run sentinel for some reason (not enabled or a basic
policy check means we don't have to) then we don't spend the effort to make
the map.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.