Commit Graph

187 Commits

Author SHA1 Message Date
Torin Sandall d04dfd2c31 Fix Docker example to use opa eval
The opa run -e flag was removed in a previous release and the docs were
out of date.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-29 11:54:28 -07:00
Torin Sandall e3a00023bd Add RBAC configuration for admission controller
As of v1.10, the default service account does not have read access on
objects in other namespaces and cannot update configmaps in the active
namespace.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-29 11:54:28 -07:00
Torin Sandall 9f1b6ed7f2 Fix remaining examples in how-does-opa-work.md
There were a few other example values that included a data key so those
have been updated to align with #758.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-29 09:06:26 -07:00
Juan Antonio Osorio Robles d19c06622b Fix wrong violations definitino in "Putting it all together" document
The violations definition was trying to filter for public_servers that
are 'true'; but this would never happen as they are structures
themselves.

Signed-off-by: Juan Antonio Osorio Robles <jaosorior@redhat.com>
2018-05-29 08:16:14 -07:00
Juan Antonio Osorio Robles 09039d8cd3 Fix base document example in "Putting it all together" doc
The example wrongly covered the servers, ports and networks keys under
the "data" key. It shouldn't have been that way (probably a typo?). So I
removed that.

Signed-off-by: Juan Antonio Osorio Robles <jaosorior@redhat.com>
2018-05-29 08:16:14 -07:00
András Tóth 3736c066c5 Update a command in the Kubernetes Admission Control tutorial
Add --wrap=0 flag to the base64 command to disable line wrapping when available.

Signed-off-by: Andras Toth <andras.toth93@gmail.com>
2018-05-25 09:57:01 -07:00
Torin Sandall d9de60a03a Fix service authentication configuration docs
The service authentication configuration docs were included inte token
scheme in the token value. If users configured OPA this way,
authentication would fail.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-17 14:45:32 -04:00
Torin Sandall 201826afc8 Describe Kafka authentication in more detail
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-16 20:50:15 -04:00
Torin Sandall 59ee6f2af1 Fix output in REPL examples for getting started
There is still a need to improve the output of references to set docs
that include variables. In those cases, the expression value AND the
variable bindings are displayed. Only the bindings should be displayed.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-05-15 12:19:33 -07:00
Juan Antonio Osorio Robles aee79356f6 Fix boolean expression in "Get Started" doc
The example was "true = false" which was doing an assignment which
couldn't be evaluated, this would return undefined, instead of "false"
which is what the docs indicate. This changes the doc to an appropriate
expression.

Signed-off-by: Juan Antonio Osorio Robles <jaosorior@redhat.com>
2018-05-15 08:50:43 -07:00
Tim Hinrichs 54ae645c59 docs: Add best-practices for identity (#728)
Signed-off-by: Tim Hinrichs <tim@styra.com>
2018-05-11 08:46:36 -07:00
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