Skip to content

Releases: open-policy-agent/conftest

v0.18.0

07 Mar 20:33
9db6bee
Compare
Choose a tag to compare

Note that this release changes the default behaviour for tf files to use the HCL2 parser. This is now the default for Terraform as of 0.12 and a better default.

Changelog

058ae35 Always ensure we're building with the latest base image
84553e1 Created a separate multi-page site for the growing documentation
35a1d8d Directory support (#262)
fa04376 Example for #106 : --combine to find duplicates are non-matching fields
3cc1615 Explicit install no longer required
9db6bee Fix typo in README (#270)
cb878a1 Introduce --all-namespaces flag (#267)
0c3e043 Merge pull request #263 from instrumenta/documentation-site
8ba3617 Merge pull request #265 from jremond/issue-106-combine-example
0affa09 Now building docker image with PRs (#269)
d5b71fa Strip down the readme and point to the documentation site (#268)
16fa757 Use official Snyk orb, and make Go scan explicit

v0.17.1

29 Feb 07:33
45177b4
Compare
Choose a tag to compare

Changelog

45177b4 Add additional documentation (#256)
e247288 Fix Docker acceptance test
f5e55f5 Improvements to the output for the test and verify commands (#254)
a73f626 Make output.go viper-agnostic (#261)
f51cf6c Merge pull request #248 from jpreese/set-modules
07ebb57 Merge pull request #255 from jpreese/fix-docker-build
6710ee9 Parse HCL2 correctly (#253)
ece33a4 Set modules for test compiler
5297398 fix: Ensure that the correct plugin is loaded (#252)

v0.17.0

19 Feb 19:19
93ee280
Compare
Choose a tag to compare

Changelog

aa06940 Add last line to data example
4cf48e0 Add 127.0.0.1:5000 as an OCI registry by default (#219)
ae7dc1f Add VCL support (#217)
898385e Add multiple check results test for jsonOutputManager
3fca6bc Add plugin system for conftest
3364fc9 Add types for ini file type
93ee280 Allow structured errors in rules (#243)
61551ac Change the HCL2 parser to output more structure
b682d35 Don't join the policy path with the policy file name
785fef6 Fix plugin test on Windows
491c498 Improve documentation for conftest commands by providing a proper long description.
d18e603 Merge pull request #211 from KeisukeYamashita/add-types-for-ini
43b9f3d Merge pull request #216 from issyl0/patch-1
df9b697 Merge pull request #222 from Blokje5/feat/improve-documentation-in-commands
32432e9 Merge pull request #223 from davewongillies/verify_filename
846c9eb Merge pull request #224 from KeisukeYamashita/add-lastline-to-data-example
58e94e6 Merge pull request #225 from boranx/combine-flag-for-parse
0ec84c2 Merge pull request #228 from boranx/push-specific-directory-readme
d41694c Merge pull request #229 from foostan/support_numerics_as_query_name
198ae7a Merge pull request #231 from Blokje5/feat/add-plugin-system
5ee85ea Merge pull request #232 from foostan/json_output_manager_support_multi_files
d792f03 Merge pull request #238 from instrumenta/hcl2-parser-changes
83dce91 Merge pull request #239 from Blokje5/fix/use-abs-path-for-plugin-loading
3cc032b Merge pull request #241 from instrumenta/fix-test-help-output
67b2850 Merge pull request #244 from jpreese/remove-test-policy
2e8a15a Merge pull request #245 from jpreese/plugin-test
9c33ade README: Homebrew is not macOS-only anymore
1ff91e2 Remove test policy after test run
8b323a4 Show short help message for test output
44d5c02 Support numerics as query name for improving readability
c3978f4 Updating installation instructions to latest (.16) (#220)
974580e Upgrading the OPA version in use (#242)
84f6c38 add combine flag for parse command
4912ed0 clear statement: #227 / readme: pass specific dir as second arg
809d5b3 fix: Docker ignore ignored plugin (#233)
3387bf8 fix: Use absolute path instead of only filename
fa15759 jsonOutputManger support multi files

v0.16.0

31 Dec 10:25
a645dee
Compare
Choose a tag to compare

Changelog

de9cdf8 Add empty policy file detection
5567ba4 Add exit status control for verify failures
2ead817 Add fail on warn flag
f4f76b2 Add feedback with invalid policy path
c4116e6 Add table output
ce11359 Add HOCON parser
00ffb0e Add TestSupportedOutputManagers table testcase
4b40f1d Add acceptance test
ee9964b Add check for filename in test
66089bf Add data loading capabilities to verify command as well
6332b2b Add explicit WORKDIR to Docker image
d51b61d Add last line in hocon.conf
0e38649 Add multiple input type
0611781 Add output for no checkresult
acd6c86 Add successes output (#161)
3856cc5 Add toml parser test
0471d12 Added missing acceptance test for command trace with table output
5090bab Added support for multiple policy backends leveraging go-getter
8968872 Added test case for newly created flag.
1343828 Additional cleanup
9ffb5c4 Allow loading of data files (either JSON or YAML) as part of the policies.
911dcac Build rpm and deb packages for Linux users of conftest
a1e3778 Change multi input type
6372200 Clean up parameter declarations
6a27fbd Comments addressed and changes applied
f7ac4c8 Consistent handling of errors and case in parsers (#173)
67cf431 Embedding traces in each one of the results
4828ab8 Fix conflict of go.sum
b86c513 Fix kubernetes policy example
ea73464 Fix pathing for push command
2e6acfe Fix the failing unit tests, the GetResult call was missing a Store
eba9825 Fixed issue with json and tap output formats without trace
6d77b21 Handle explicitly blank filenames passed into conftest
47e7317 Initial test package refactoring
ccb3f14 Lowercase keys in JSON output (#144)
ab9baab Merge branch 'master' into add-table-output
d86508b Merge branch 'master' into test-refactor
c5a472d Merge branch 'master' into test-refactor
fead587 Merge branch 'master' into test-refactor
6834c97 Merge pull request #107 from Blokje5/feat/https-support
7dbbf21 Merge pull request #132 from boranx/tests/add-parse-tests
01e8ba4 Merge pull request #134 from jpreese/test-refactor
51e41b6 Merge pull request #139 from jpreese/update-readme
19c31df Merge pull request #140 from jpreese/fix-kubernetes-example
3e0b811 Merge pull request #143 from instrumenta/handle-blank-filenames
1634f3a Merge pull request #146 from instrumenta/missing-workdir-dockerfile
c4ca81f Merge pull request #147 from jpreese/modules-update
711d944 Merge pull request #148 from jpreese/remove-yaml-package
e8f00cc Merge pull request #150 from instrumenta/rpm-deb-packages
be3bc24 Merge pull request #152 from jpreese/testing-files
3611374 Merge pull request #156 from menendezjaume/feature/move-commands-where-relevant
2327f6d Merge pull request #157 from boranx/ref/input-flag
2402a86 Merge pull request #159 from jpreese/remove-testdata
2a5c81e Merge pull request #163 from menendezjaume/feature/verify-support-flag-trace
df76c73 Merge pull request #166 from KeisukeYamashita/add-exit-status-control-to-verify
f2a1eba Merge pull request #168 from menendezjaume/feature/support-edn-input
c65bd7a Merge pull request #175 from boranx/feat/add-xml-support
f8da1fc Merge pull request #178 from menendezjaume/feature/move-conftest-test-trace-to-output
5e57135 Merge pull request #179 from menendezjaume/upgrade/hcl2-to-hcl-v2
9f0b947 Merge pull request #182 from KeisukeYamashita/add-table-output
614e5a6 Merge pull request #185 from menendezjaume/fix/json-and-tap-outputs-no-traces
6030939 Merge pull request #187 from menendezjaume/feature/embed-traces-into-results
cba77eb Merge pull request #192 from menendezjaume/fix/add-acceptance-tests-for-table-output
87697d7 Merge pull request #195 from KeisukeYamashita/add-different-input-types
8e2a6c9 Merge pull request #197 from KeisukeYamashita/add-additional-feedback-on-no-policy
9a700c6 Merge pull request #198 from boranx/fix/acceptance-for-table-trace
d1cd554 Merge pull request #199 from KeisukeYamashita/move-get-configuration-in-front
2793c2b Merge pull request #205 from KeisukeYamashita/add-empty-file-detech
fe1b2c3 Merge pull request #207 from boranx/chore/fix-typo
9eacd07 Merge pull request #208 from boranx/err/hcl2-diagnostics
feba393 Merge pull request #213 from KeisukeYamashita/add-toml-parser-test
ce1dae0 Merge pull request #214 from KeisukeYamashita/add-hocon-parser
a645dee Merge pull request #215 from Blokje5/feat/data_loading
12e052b Move --trace and --namespace to the test command
343f08b Move commands to internal (#160)
a83f2a3 Moved output of conftest test --trace to output
be382cf Normalize output line endings
40ab0fa Refactor to fail fast when getting cfg fails
a7b8046 Remove assert dependency on parse command
efb7815 Remove auth/oras from notes
f9cda35 Remove output manager autogen
dd27a51 Remove parse command testdata
74aab7b Remove test command testdata
d0f6ec2 Remove testify dependency
5509877 Remove yaml unmarshalling
b501148 Removed old references from go.mod and go.sum to hcl2
be7f1bb Rename res to rules (#162)
555d34b Resolve indentation after conflict
7676795 Resolve merge conflicts
dbbedd0 Resolve merge conflicts
c1d7532 Resolve merge conflicts
3d313ac Run go mod tidy (#202)
5381d49 Run goimports
2723622 Support EDN input
c8ce9d7 Update example in README (#189)
3b106f7 Update readme for multi input type
70a1154 Update readme table output example
894e409 Updated output for --trace flag (#191)
1a141dd Upgraded hcl2 parser to user hclv2
b48519f Use string as type for building output
309360d Verify package refactor (#131)
dbc159c WIP for migrating away from generated outputmanager
edbb022 add xml support: add acceptance test & update readme
980086a add xml support: add suitable policy file for pom.xml
38695a4 add xml support: add unit test for xml parser
c4c8469 add xml support: fix naming for tests
5ac19e6 add xml support: requested changes
78ab4c6 chore: fix typo
8e9460e conftest verify support --trace flag #111
8c9fc2b fix current version for linux in README (#155)
2199ecf fix test: run exactly against trace option with table
21d31a1 initial structure from xml to interface{}
fed5139 inject ctx created in commands to parse
6044f7f migrate GetConfigurations() to parser package
fa8abdc parser: add line break after parsing multi inputs, change help text with filelist (#149)
c3c0716 print each of diagnostics
9754346 refactor parse command, tests now run against parseInput command
8ff0f21 refactor parse command: get rid of using containerd logs in parse command
4f14333 refactor parse command: handle if cmd returns err
a134fc0 remove osExit() from parse, define context in root cmd
0935e35 resolve conflicts in commands
dc42815 resolve conflicts with master
cc18e5e tests: more strict tests for controlling output and printing filename

v0.15.0

28 Oct 19:58
eeb0333
Compare
Choose a tag to compare

Changelog

fa7d905 Added a code of conduct
4a2407d Check if unable to read viper config
02a1699 Clean up acceptance stage
85c89f6 Create base stage
0cbba5f Don't load _test.rego files in recursivelySearchDirForRegoFiles
9022609 Fix issue with exit code being for last file only
8e8c227 Include directory for test target
f59b63f Include parse feature
c21d345 Initial push package refactoring
2e00374 Merge branch 'master' into fix-incorrect-exit-code
b457c51 Merge branch 'master' into push-package-refactor
bbf1479 Merge branch 'master' of github.com:jpreese/conftest into remove-pkg
8952ab5 Merge pull request #105 from Blokje5/fix/output-flag-binding-overwritten-by-viper
21dd893 Merge pull request #109 from instrumenta/shorten-combine-flag
e125707 Merge pull request #110 from instrumenta/fix-incorrect-exit-code
a0c558e Merge pull request #113 from boranx/feat/parse-command
9d2fd78 Merge pull request #115: remove pkg folder
56d7732 Merge pull request #118 from davewongillies/issue_114
89eae4a Merge pull request #119 from jpreese/docker-fix
5c8f581 Merge pull request #121 from arminbhy/master
f7a8992 Merge pull request #122 from jpreese/remove-constants
5c122ec Merge pull request #123 from jpreese/clean-mod
f8ef4fa Merge pull request #125 from v-ymarchanka/patch-1
93afb8f Merge pull request #126 from jpreese/push-package-refactor
5148ed4 Policy package refactor (#124)
2c10c32 Refactor push package
90b3fa9 Remove constants
dab42cd Remove docker layer caching
37647dc Remove parser
0550fce Remove pkg folder
f3950a1 Remove pkg folder from parsers
3cf04bd Remove the constants package
eeb0333 Remove viper dependency on Download (#135)
857551a Resolve Dockerfile issues
674902b Resolve additional conflicts
b9ee640 Resolve golangci-lint issues
4e4919b Resolve merge conflicts
28d8e30 Resolve merge conflicts
da87fde Resolve merge conflicts
2e764c2 Shorten combine-config flag to combine
fd91875 Simplify module file
b62eff6 Small nit with copy
dd569b2 Update README.md
7410b02 Update README.md (#133)
3a3a39b Update main.go path
9478d72 Use errors.As to for specific ConfigFileNotFoundError
b82ed97 Use relative path in parsing modules
074c7f6 acceptance test for nested names with name conflict
9a44afa add parse command
30766e5 fix: Output flag viper binding is overwritten if used by two commands at the same time. See: spf13/viper#233. The solution is to use Prerun in the Cobra command to bind the viper flags at the last possible moment.

v0.14.0

04 Oct 14:31
Compare
Choose a tag to compare

Changelog

9dc6aab Add additional testing for Dockerfiles
ab8fcc9 Add errorcheck to dockerfile test
611e307 Add in osExit. To be refactored out later
1b25662 All passing tests
5034289 All passing tests except for multifile bug
3d405f5 Disable CGO, which was requiring gcc to be present in the build image
8ea1185 Docker unit tests passing
dde7eb3 Merge branch 'Blokje5-feat/execute-command'
563bd44 Merge branch 'feat/execute-command' of https://github.com/Blokje5/conftest into Blokje5-feat/execute-command
d1d57ed Merge pull request #99 from jpreese/conftest-rework
c4ffcb3 Remove old yaml file
33cb7c6 Resolve build issues
b496b57 Resolve merge issue with moving buildCompiler to a separate module
8e8ba8f Rework
b30d42d Split multi and singular queries
8f7b0ee Update Go to 1.13
7c328fc Use nonmulti policy file
0538fdf Use switch for determining query type to run
7a6bdba Wrap Dockerfile commands in slice
3297314 chore: Add version
55a9488 chore: Include an acceptance test for the execute command
30e489e chore: Refactor Execute command after rebasing
7703f96 chore: Refactor test command to use reporter interface
9c79b5a chore: Remove comments in test
5514798 chore: Remove version from test command
12b8be0 chore: Rename execute command to verify
674a3ac chore: Resolve GolangCI issues
9cb4896 chore: Update usage
29b092b feat: Reporter interface
63ac93b feat: Simple execute command to handle rego unit tests
00eabde fix: Failing unit tests for JSON output manager due to change in strucure.
8eac267 fix: Forgot to close chan in execute command
c636581 fix: Refactor after rebase on master
213f299 regenerate go.mod using go1.13

v0.13.0

27 Sep 22:40
8340065
Compare
Choose a tag to compare

Changelog

b51b0ca Combine-Config for multi-file policy check
2369dd3 Implement ConfigManager, a means to process a given file/config list to-be-tested
e9778e5 Implement multi-document support within YAML parser
f292162 Merge pull request #73 from Salamandastron1/master
a892dda Merge pull request #83 from Blokje5/feat/recursive-search
7d16b2a Merge pull request #84 from alonrolnik/example-awssam-template
29742c0 Merge pull request #87 from cartyc/add-ci-example
687f1ce Merge pull request #88 from boranx/fix/support-terraform-0.12
0661522 Merge pull request #90 from boranx/chore/update-readme-hcl2
84363ff Merge pull request #91 from 0xflotus/patch-1
8340065 Merge pull request #92 from boranx/fix/stdin-throws-no-err
194495b Modified parser/test for clean implentation
093d4c9 Rebased over new docker capabilites
19952e6 Refactor tests to loop over multiple top level indices for returned yaml values
0b44085 Remove left-over action code from experiment
db31bdb Revert "WIP: Begin interfacing new Parsing code with existing Conftest behavior"
d3a1f76 Support using violation instead of deny
9ef20ef Thrift dependency has moved, no longer present in apache repo
9565873 Updated readme with combine-config explanation
dd68442 WIP: Begin interfacing new Parsing code with existing Conftest behavior
a794e35 WIP: Edit tests to move towards namespacing by filepath/name
ff9c592 WIP: changed signature for GetParser to filetype
9e83fbf WIP: test GetParser, add Format to Parser
8068eb9 add awssam security checks
8158b68 add hcl2 support
a7d0cb6 add in verbose output for make, rego policy added
3395c8a added ci examples dir and gitlab ci examples
3d8b6c8 begin flag implementation
3878b0d broke out funcs and added tests to tighten feeback
af8a041 clean up merge artifacts
0c73ff0 correct typo in testname
f5b9b1e expectation change for acceptance test
cf6dc59 exported values and functions in order to test
0f2f6b0 feat: Recursively search directories for Rego files when compiling policies
9fbf7f8 fix : default stdin behavior is fixed to yaml, change log prints to errorf
85f5e00 fix linting errors
8c58044 fix linting issue for - add hcl2 support
b5548a6 fixed regression on -i override
5422492 fixed small errors
039ff2e multifile combine config no regressions
180cc8a multifile support via combine-config flag
a9d6e04 refactor naming in parser to reflect ConfigDoc struct and intialize desired data structure
aa0094b refactor to use func signature in NewTestCommand
3550933 reformat viper flags to catch errors
48ccf75 rename AWS SAM, Serverless Application Model title
2251fa6 rename variable to avoid pck conflict, tf hcl extension added
6593785 rework acceptance test policies for new hcl unmarshaler implementation
c56e378 terraform Unmarshal parser to uses byte array given
3571e6b update README file with the new awssam example
6ed4c75 updated git ignore to ignore dot .DS files
f8fa14a use readcloser to avoid memory leaks

v0.11.0

09 Aug 18:12
Compare
Choose a tag to compare

Changelog

a734be8 Add TAP output support
4db3bd0 Added a list of supported formats to the README
ba52f7b Added automatic releases when tags are pushed
903dc26 Always pull the latest parent image when building the Docker image
3934b99 Improve the default output
a976c44 Merge pull request #47 from boranx/feat/Add-ini-support
5bd01a6 Merge pull request #48 from brendanjryan/bjr-res-errors
dee4fa3 Merge pull request #50 from brendanjryan/bjr-test-target
c447ccc Merge pull request #55 from brendanjryan/bjr-output-loggers
879fc8c Merge pull request #57 from instrumenta/split-ci-config
604d8e6 Merge pull request #58 from instrumenta/improve-cli-output
9f8dced Merge pull request #60 from brendanjryan/bjr-json-logger
30adbb2 Merge pull request #61 from boranx/fix/unnecessary-file-reads
0a84829 Merge pull request #62 from brendanjryan/bjr-output-control
1c5880c Merge pull request #64 from srenatus/sr/fix-some-lint-issues
b802b5c Merge pull request #67 from brendanjryan/bjr-json-output-expose
7a24c10 Merge pull request #68 from instrumenta/tap-output-support
6e197d4 Merge pull request #70 from boranx/feat/add-input-flag
5db840d Readd method removed accidentally
d74da63 Separate testing into separate jobs
170b4a1 Try and capture Go test output for display in CircleCI
cf5b312 Update to latest version in installation instructions
3ae7547 Update version of Go used in Goreleaser build step
d9cb274 add flag for controlling output format
2dba479 add ini support
b3f644d add input flag for parsing the stdin stream
b441e29 adds a new make target for running tests
93dbbf8 adds json output to stdout logger
ec9d0d0 cleanup
4334ed3 comment fix
945237a creates foundation for configurable output formats
22059b4 empty arrays as return val
b9fa9ea exposes json output to cli
ff9f736 fix lint issues reported by golangci-lint
26da0cc pass on stdin input
cafca09 refactor error handling
a33c71b remove unnecessary file reads in parsers

v0.10.0

25 Jul 14:47
cc3fdd4
Compare
Choose a tag to compare

Changelog

903dc26 Always pull the latest parent image when building the Docker image
32db102 Merge pull request #43 from boranx/feat/Add-cue-support
cc3fdd4 Merge pull request #46 from Blokje5/chore/add-slack-to-readme
ab52c72 add cue support
a3dbb07 chore: Update readme with slack channel

0.9.1

24 Jul 07:49
Compare
Choose a tag to compare

Changelog

d6e1620 Add test for pull command
6ebddd7 Fix issue with repeated output
1e1565b Fix version output
6838a79 Merge pull request #36 from jpreese/parser-split
2a3f17b Merge pull request #37 from jpreese/pull-test
098534c Other flag help is leading lower case
417f9fd Simplify policy package
d9113ca Split parsers
980e5bd Update dependencies