Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

hashicorp/docker-sentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

About this Repository

Sentinel is a language and framework for policy which is built to be embedded in existing software to enable fine-grained, logic-based policy decisions. Sentinel is an enterprise-only feature of HashiCorp Consul, Nomad, Terraform, and Vault.

This repo contains the docker configuration for the official Sentinel CLI image hosted on HashiCorp's Docker Hub for Sentinel. The image is built using the latest Sentinel CLI binary that is made freely available on https://releases.hashicorp.com.

If you wish to review all of the latest Sentinel runtime features and bug fixes, you can do so via the Sentinel Runtime release notes.

Getting Started

  1. Print the Sentinel runtime version
docker run -it \
    hashicorp/sentinel:latest \
    --version
  1. Format Sentinel policy to a canonical format
docker run -it \
    --volume $(pwd):/app/ \
    --workdir /app/ \
    hashicorp/sentinel:latest \
    fmt -check=true $(find . -name "*.sentinel" -type f)
  1. Test a policy within the working directory
docker run -it \
    --volume $(pwd):/app/ \
    --workdir /app/ \
    hashicorp/sentinel:latest \
    test
  1. Recursively test a grouping of policies within the working directory
docker run -it \
    --volume $(pwd):/app/ \
    --workdir /app/ \
    hashicorp/sentinel:latest \
    test $(find . -name "*.sentinel" ! -path "*/testdata/*")

About

Official Docker images for the Sentinel CLI.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published