Commit Graph

176 Commits

Author SHA1 Message Date
Torin Sandall 35268811aa Update release process docs with signoff flag
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-10 09:04:06 -07:00
Torin Sandall 91ad1a786f Prepare v0.8.1 release
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-30 13:05:44 -07:00
Torin Sandall 871e031752 Add Kafka authorization tutorial
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-26 07:29:42 -07:00
Torin Sandall 0e99a13296 Add URL query encoding built-ins
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-25 14:50:21 -07:00
Brendan Devenney fc8ff98671 Update Terraform tutorial commands to v0.8
Due to the deprecation of the -e/--eval flag of the run command in
release 0.8, the Terraform tutorial is no longer accurate. This commit
updates the tutorial to use the new eval command which replaces the old
flag.

Signed-off-by: Brendan Devenney <brendan.devenney@cloudreach.com>
2018-04-22 12:15:55 -07:00
Torin Sandall a165fc7e08 Prepare v0.8.0 release
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-11 09:10:28 -07:00
Torin Sandall 0174278f08 Add decision log documentation link to TOC
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-10 16:26:15 -07:00
Torin Sandall 49bba1faa8 Add decision logging plugin
Previously, decision logs were kept in-memory and enabled via
diagnostics configuration. With these changes, admins can configure OPA
to log decisions to a remote HTTP endpoint.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-10 13:58:36 -07:00
Torin Sandall 85de91c942 Add status reporting plugin
This plugin complements the bundle download plugin by reporting status
to a remote HTTP server. The status includes identification labels
configured on OPA as well as the status of bundle download and
activation.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-09 11:05:06 -07:00
Torin Sandall 43ce86f55b Add manifest to bundle files
These chanages introduce a manifest to the bundle files. This way bundle
services can include metadata about the bundle in the file. The initial
use case for bundle data is keeping track of bundle revisions.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-09 11:05:06 -07:00
Torin Sandall c5eb5495ea Refactor bundle configuration to be singleton
The initial implementation allowed for N bundles to be configured. While
this is more flexible, it introduces unnecessary complexity around
management (e.g., how do you know which bundle a decision was comoputed
from?) and performance (e.g., you would expect OPA to dedup data between
bundles.)

Moving to a single bundle DOES NOT prevent admins from bundling
multiple policies and data sets together.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-04 11:54:21 -07:00
repenno 5d140c391f Fixing un-versioned example (data/system)
- Added HTTP request snippet
- JSON payload needs to be an array. sprintf requires an array
  as second operand.
  See server_test.go tests for data/system for reference

Signed-off-by: repenno <rapenno@gmail.com>
2018-04-02 17:49:31 -07:00
Yash Tewari a3a439a6e6 Update SSH PAM tutorial to include new features. (#676)
Tutorial now uses display and pull policies to request authorization context.
Separate policies for sudo and SSH have been merged into one for simplicity.

Signed-off-by: Yash Tewari <yashtewari1996@gmail.com>
2018-03-26 16:46:02 -07:00
Torin Sandall e9d0297f38 Remove manually added anchors from headers
The anchors made headers orange but were being used inconsistently.
Removing all manually added anchors for now. If we want to style the
headers, there should be a more reliable method.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-03-22 10:37:56 -07:00
Torin Sandall 8f38b07822 Removing Adobe font from site
The special font was causing the text to flicker on load. These changes
attempt to remove traces of the adobe font from the docs.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-03-22 10:37:56 -07:00
Torin Sandall b89a0841e1 Update DEVELOPMENT.md
Update instructions for DCO signoff and supported Go version.
2018-03-21 11:05:54 -07:00
Torin Sandall f131cfcff3 Add support for bundle downloading
Previously, policies and data had to be pushed into OPA via the REST API
or loaded via command line arguments at startup.

With these changes, OPA can now be configured to pull down bundles of
policy and data from remote HTTP servers. When a bundle is downloaded
successfully, the policies and data are loaded out of the bundle file
and inserted into storage.
2018-03-16 08:51:37 -07:00
Torin Sandall 2a5192ec6c Minor changes to note support
* Check if node is non-nil to prevent panic
* Omit empty message field from API response
* Use native string type for message fields
2018-03-12 17:13:19 -07:00
Unknown dbfccf15e5 Adding test and documentation for the trace builtin 2018-03-12 16:08:54 -07:00
Torin Sandall a048970c95 Update release patch script to cover YAML files
The script was not searching for version numbers in YAML files in the
docs. As a result the Kubernetes admission controller tutorial was out
of date.
2018-03-08 11:16:59 -08:00
Torin Sandall 09e4106451 Update modulo support
* Add eval test
* Add item to language reference
* Fix type declaration
2018-03-08 09:01:54 -08:00
Ashutosh Narkar 74cca19b79 Removed base64.URLEncoding.EncodeToString for header and payload 2018-03-06 18:02:38 -08:00
Ashutosh Narkar b4e7d0807c Add RS256 JWT signature verification built-in function
Fixes #421

removed blank line

updated test

added command info documentation

wrap the error messages

used buitin URL decode method

moved verify token code in tokens module
2018-03-06 12:16:58 -08:00
Torin Sandall db34907866 Add X.509 certificate parsing built-in function
Fixes #635
2018-03-06 07:49:07 +09:00
Torin Sandall ac9b84375e Add base64 encoding built-in functions 2018-03-06 07:49:07 +09:00
Torin Sandall 2a61eeae59 Fix gitbook summary for comparisons 2018-03-03 09:57:11 +09:00
Torin Sandall 688594c378 Prepare v0.7.1 release 2018-02-25 15:47:52 -08:00
Torin Sandall d8f6f7f9b3 Prepare v0.7.0 release 2018-02-22 11:23:56 -08:00
Torin Sandall 744d6e5590 Update release script to build for Windows
Fixes #573
2018-02-22 11:06:48 -08:00
Torin Sandall 3ee9c9f0fd Update webhook registration in Kubernetes tutorial
Due to https://github.com/kubernetes/kubernetes/issues/59759, we should
not recommend registering webhooks that match the CONNECT operation as
this can break exec/port-forward functionality.
2018-02-21 10:47:00 -08:00
Torin Sandall 7c0205d7da Add docs on DELETE /v1/data API 2018-02-19 13:23:54 -08:00
Torin Sandall 9d58234c97 Fix comparison document title 2018-02-19 13:23:54 -08:00
Torin Sandall e0711fd32b Add section on := operator 2018-02-19 13:23:54 -08:00
Torin Sandall f77d5634b0 Add == operator to built-in reference 2018-02-19 13:23:54 -08:00
Torin Sandall 03d3bc4d38 Update Docker Authorization tutorial
Updates to the tutorial to incorporate opa-docker-authz v0.2.
2018-02-16 14:40:50 -08:00
Torin Sandall 0f8c6798f2 Add time.clock built-in function 2018-02-16 09:35:56 -08:00
Torin Sandall 8eee75a865 Add comparison headers to navigation 2018-02-13 16:20:18 -08:00
Torin Sandall 1e9131a4fe Update Kubernetes Admission Control tutorial
The v1.9 webhook support contains a bug that causes CONNECT operations
to fail. We can add the privileged exec example back once that's fixed.

Fixes #567
2018-02-13 13:06:02 -08:00
Tim Hinrichs 45a2165206 docs: Add rosettastone docs (#608)
Add docs explaining how OPA compares to other policy systems like RBAC, ABAC, XACML, etc.
2018-02-12 13:25:53 -08:00
Torin Sandall 744316dbaa Add basic query performance instrumentation
Previously OPA only tracked query performance a high level (e.g., parse,
compile, eval latencies.) In some cases, it's necessary to instrument
lower level evaluation operations to understand performance. These
changes update the eval implementation to support instrumentation:

* Eval has been instrumented to record time taken for various core
operations like term plugging, reading from the store, rule lookup,
cache hits, etc.

* Rego package has been updated to support a simple rego.Instrument
operation that enables query instrumentation.

* REPL and server have been updated to expose simple interfaces to turn
on instrumentation.

* Diagnostic policy config "all" will enable instrumentation.

Instrumentation can be expensive (because it requires timing frequently
executed operations) so it should be treated as a debugging tool and not
enabled all of the time.
2018-02-09 09:30:27 -08:00
Torin Sandall e26207ce5c Add docs on new Prometheus support
As part of this, the information on the Diagnostics support has been
moved into the new document so that it is easier to find.
2018-02-06 16:24:05 -08:00
Torin Sandall 06b6aaed8e Remove Future Work section from HDOW document
Transactions have been implemented and are available to users embedding
OPA as a library.
2018-02-06 16:24:05 -08:00
Torin Sandall 5b78f79dae Add sort built-in function to language reference 2018-02-06 16:24:05 -08:00
Yash Tewari dba779d27c Fix bad builtin name globs_match in docs.
Builtin name is regex.globs_match, and not globs_match.
2018-02-06 15:04:08 -08:00
Torin Sandall b3b22aae21 Add time.date built-in function 2018-02-05 20:28:02 -08:00
Yash Tewari b2a37f711c Add docs for regex.globs_match.
Move re_match and regex.globs_match into a separate "Regex" section in the language reference.
2018-02-05 17:39:02 -08:00
Ashutosh Narkar bb40644f3e Added builtin for n-way set union and intersection 2018-01-26 14:39:19 -08:00
Ashutosh Narkar 787907109b Added HTTP request built-in function 2018-01-24 07:13:58 -08:00
Torin Sandall 43fcc6ae25 Prepare v0.6.0 release 2018-01-18 15:04:39 -08:00
Torin Sandall 819be66ec7 Update server to expose partial evaluation
These changes expose the partial evaluation optimization through the
HTTP API. Clients can request the optimization by including a query
parameter and the server will lazily run partial evaluation and keep a
cache of the results for subsequent queries.
2018-01-18 07:10:31 -08:00