Commit Graph

518 Commits

Author SHA1 Message Date
Patrick East 9a97b4d41f docs: Fix config reference doc links
We pulled the config docs out into their own section from the
/management page. In the process we missed some links that needed
updating.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-19 13:12:48 -07:00
Ashutosh Narkar bcbf58d9e7 docs: Fix opa-istio image version for latest version of the docs
Since the url for the latest released version of the docs does not contain the OPA version, this change updates the shortcode to use the latest-istio tag for the opa-istio image for latest and edge versions of the OPA docs.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2019-09-19 12:07:35 -07:00
Patrick East a64cef4deb docs: Add pretty download URLs
This gives nicer download URLs for OPA binaries via:

https://openpolicyagent.org/downloads/<version>/<binary>

Under the hood we just use Netlify to rewrite the url to the normal
github and s3 locations.

With this you can also use:

https://openpolicyagent.org/downloads/edge/<binary>

and

https://openpolicyagent.org/downloads/latest/<binary>

For quick links to the current master and latest release binaries.

Fixes: #1771
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-19 12:01:30 -07:00
Patrick East 212884e4e7 docs: Minor fixups to terraform guide
Just fixing a couple of little things I noticed while following the
guide.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-18 10:01:52 -07:00
Patrick East 40a860432b docs: Remove old redirects for /monitoring and /configuration
These are no longer correct as the content was moved out of the
management page.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-17 13:59:31 -07:00
Patrick East 249ce31ad1 docs: Add note about edge docker image tag
We have info for the `latest` tag, `*-dev` tags, and this just adds
a blurb about the `edge` tag.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-13 19:44:54 -04:00
Patrick East 0144e981a5 docs: Add redirect for /docs/latest/get-started
In the re-org we got rid of the getting started section and instead
have a more comprehensive/interactive introduction page. This change
adds a redirect to send /docs/latest/get-started URLs to /docs/latest
instead.

We also remove the link to it in the custom 404 page. Its the same
as the documentation URL now.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-13 15:15:47 -07:00
Torin Sandall a9b41cb01b docs: Fix preprocessing to fetch OPA binary correctly
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 18:59:04 -04:00
Patrick East b3cbea4184 website: Change to minimal set of Links with icons
This updates some of the links added to be buttons with the logo,
and removes a few that we can't do that easily with right now.

Logos that are added (and renamed) from other projects come from:

https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
https://github.com/envoyproxy/artwork/blob/master/Stacked%20PNG/Envoy_Logo_Stacked_PANTONE.png
https://svn.apache.org/repos/asf/kafka/site/logos/kafka-logo-tall.png

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-12 18:37:05 -04:00
Tim Hinrichs 05ce97b4a0 docs: Add links to homepage
Previously, there were no links from the homepage to any of the
more detailed docs about use cases and even mention of use cases
was below the fold.

This change adds links to use cases at the very top of the page,
along with pointers to core docs and the OPA summit.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-09-12 18:37:05 -04:00
Tim Hinrichs 1aae0a4b2d docs: Clarify type-checking functions
Previously the behavior of the type-checking functions was arguably
underdescribed in the docs when the type-check failed.

This change specifies that the result is undefined.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-09-12 18:37:05 -04:00
Patrick East 1e78e7fe9f docs: Redirects for some top level doc sections
After the more recent doc re-org we will want to have redirects help
ease the transition for URL's that were out in the wild. Internally
all the links should be up to date but this will help with external
sites linking to us.

Closes: #1707
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-12 18:36:50 -04:00
Torin Sandall 65cc5f8446 docs: Activate live blocks on the latest version of the docs
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 18:06:53 -04:00
Torin Sandall ac74fc77ff docs: Refresh docs on how to extend OPA
Users frequently ask how to implement custom built-in functions and up
until now the information has been a bit hidden. This change improves
the visibility of the docs that describe how to customize/extend
OPA. We should revisit the section on how to customize the OPA daemon
to demonstrate how to use dep or modules as well as how to instantiate
only select portions of OPA (e.g., the plugin manager with a custom
gRPC server.)

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 17:12:41 -04:00
Torin Sandall 4c21b4401b docs: Add overview to management APIs page
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 17:12:10 -04:00
Torin Sandall b107ef2618 docs: Reorganize operations pages
* Move the integration guide into the core docs. This is one of the
  most common questions when people get started.
* Split the configuration and monitoring sections into their own
  pages. This prepares the management page for an introduction that
  explains the control plane concept.
* Move bundle section up to the top of the page since basic policy
  distribution is usually the first concern.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 17:12:10 -04:00
Torin Sandall 583b67cb57 docs: Refresh the introduction page
This commit updates the introduction page to focus on Rego and
integrating with OPA (whereas the old introduction content focused on
high-level concepts like policy-decoupling, the data document, etc.)

The new introduction content provides a concise overview of OPA and
then launches into an tour of Rego (by example) that shows the core
concepts in the language. The content ends with an overview of
different ways you can interact with OPA.

The old introduction content has been moved into the Philosophy page
and the How Does OPA Work? page has been removed/replaced by the new
introduction page.

With these changes we can update the frontpage with links to core OPA
introduction and then different use cases (e.g., Kubernetes, Envoy,
etc.)

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-11 13:36:19 -04:00
Patrick East b32c17239c docs: Turn off canonifyURLs
This was breaking the site.. reverting the change.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 11:37:16 -07:00
omerlh c8b9985e2c documentation
Signed-off-by: omerlh <omerl@soluto.com>
2019-09-10 10:10:41 -07:00
Patrick East e8f652c436 docs: Fix all broken links
Any links that were caught by the link checker have been
repaired. This also standardizes some to ensure we are
always using URLs with trailing `/` when possible.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 0ab559ec9c docs: Turn on hugo canonical urls
This makes it easier to see when we link to the wrong place.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East f4ca80bb59 docs: Add / for docs landing page link
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 7a9a78fa2a docs: Use full copy for latest instead of shadow
Instead of using url rewriting tricks we will just copy the latest
docs as part of the build process for a "latest" version.

In the version selector code we need to handle this to hide the
version, but overall it simplifies the template code.. so thats nice.

Best part, and main reason for doing this, is that the pretty url
feature will now work on the `/docs/latest/*` urls. It will fix some
weirdness with the relative url links we use in the markdown content
and remove a duplicate search result.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 13f1de2982 docs: Stop showing versions <0.10.7
This lets us simplify some of the code and there isn't really a great
reason to keep the older docs up at this point.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 968ad5919c docs: Fix load-docs.sh when HEAD is both a tag and branch
If there was a tag and branch that both referenced HEAD it would
return to the tag instead of branch. This change gives priority to
the branch if the current HEAD corresponds to one.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 04c711fc01 docs: Remove non-useful linkcheck target
The `linkcheck` target has been broken since we added in the "latest"
URL stuff and started using netlify redirects all over.

Add documentation for using a different tool that crawls the live
preview deployemnt.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 4ea7c206fe docs: Rename data-replication.md to external-data.md
We changed the title in the doc but the file still had the old name.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Stephan Renatus 818738539e build: use docker for golang
As discussed in #1639.

Note that .dockerignore had to be changed as to *not* skip what's needed
for the build: vendor, obviously, and .git for the compiled-in version
information.

parts:
- .travis.yml: don't bother about golang anymore
- docs/devel/DEVELOPMENT.md: update
- Makefile: update hint

Signed-off-by: Stephan Renatus <srenatus@chef.io>
2019-09-10 08:53:41 -04:00
Torin Sandall ccf263c3be runtime: Add build commit to runtime info
With #1715 we updated opa.runtime() to include the OPA semantic
version in the output. This change extends that to include the build
commit which is useful for development purposes.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-10 08:49:05 -04:00
Teemu Koponen 515e29b4c6 builtins: Enhance io.jwt.verify_* builtins to accept JWK as a cert parameter.
Signed-off-by: Teemu Koponen <koponen@styra.com>
2019-09-09 10:22:01 -04:00
Patrick East 6b6dd1cf83 docs: remove lint step from live-blocks
This should fix the critical vulnerability found by scanners in the
eslint-utils package by removing the lint script.

We can re-visit this again in the future when someone can spend more
time to fix it.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-05 19:18:36 -06:00
Ashutosh Narkar fe14bdf754 docs: Create tutorial for Envoy-OPA integration.
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2019-09-05 06:06:33 -07:00
Patrick East 2f37e38180 docs: Refactor production-build make target
This makes it easier to troubleshoot the live blocks injection step
by isolating the build step to make the hugo content.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-04 16:36:31 -06:00
omerlh f43bae2509 document the new field
Signed-off-by: omerlh <omerl@soluto.com>
2019-09-04 12:14:40 -06:00
Omer Levi Hevroni d3ecbcb9c5 added examples for decision and multi bundle
Signed-off-by: omerlh <omerl@soluto.com>
2019-09-04 11:32:56 -06:00
Torin Sandall 1e40874c03 docs: Update RELEASE.md file to include bugfix process
Currently this is a bit manual. We can automate/improve it in the future.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-03 08:42:29 -07:00
Patrick East 1991bd9032 docs: Remove ceph guide temporarily (again)
It snuck back in.. see 5fd445eab7 for
the original removal.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-08-29 10:10:10 -07:00
Tim Hinrichs c47f9da450 docs: Substitute "decouple policy" for "policy-enablement"
We no longer describe OPA as policy-enabling a service.  Instead we talk about
OPA as decoupling policy from a service.  This seems to be the one place we
talk about it.

Also modify the introduction to describe authentication versus authorization.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-08-29 09:29:08 -07:00
Tim Hinrichs 6760303a47 docs: Reorganize the docs navigation
The docs have grown organically and it was time for a reorganization, specifically
helping people understand at a single glance the information
that is available in the docs.

The new docs are organized as follows:
- Core docs (policy and data)
- Use-case specific docs
- Operations
- Support

As part of the reorganization, several files were renamed and/or combined.

Also made an editing pass over what was previously the user-attribute docs
and generalized them to focus on data-replication, an issue that is
now promoted to the core docs.  As part of that, updated the images
and removed the old ones; new image sources are in google slides.

Tweaked the navigation bar to give more space on the left-hand column
so that more of the topics are visible without scrolling.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-08-29 09:29:08 -07:00
David Boles 9618e9d35a live-blocks: Added an include(<group name>) tag.
Signed-off-by: David Boles <me@davidbol.es>
2019-08-29 09:28:45 -07:00
Marco Sanvido 5850a343a9 Revert "Fix support link"
This reverts commit 1f4a6e3f22.

The url was fixed, no need for this change anymore.

Signed-off-by: Marco Sanvido <marco@styra.com>
2019-08-28 18:19:28 -07:00
Marco Sanvido 1f4a6e3f22 Fix support link
The support link was incorrect.

Signed-off-by: Marco Sanvido <marco@styra.com>
2019-08-27 20:53:37 -07:00
Torin Sandall 5fd445eab7 docs: Removing Ceph tutorial until issues can be resolved
There are a few issues with the Ceph tutorial in it's current
state. I've documented a few of them in the commit message on this
branch: https://github.com/tsandall/opa/tree/fix-ceph-authz.

Once those issues are addressed we can re-introduce the Ceph tutorial.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-27 17:29:51 -07:00
Patrick East 0d70daa545 docs: Use a single value for algolia version meta
As-is we have an array like `["v0.13.4", "latest"]` but it seems that
we aren't referencing it as such, its trying to compare a string
version.

It looks like on the `latest` urls we would set the facetFilter to
be the explicit version, so we'll just stick with that for the meta
tags too.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-08-27 09:26:48 -07:00
Vincent Gramer 79e2e4a770 docs: update terraform tutorial to works with v.0.12.6
Signed-off-by: Vincent Gramer <vgramer@gmail.com>
2019-08-26 16:05:16 -07:00
Torin Sandall 4ee04ca358 docs: Add language reference section for units
Also fix-up built-in function declaration to match updated name.

Fixes #1561

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-26 12:13:16 -04:00
David Boles da95397588 docs: Minor live blocks fixes and improvements.
Allow "open" button for read_only blocks.

Remove erroneous CSS.

Added a tag for showing line numbers.

Signed-off-by: David Boles <me@davidbol.es>
2019-08-23 17:43:25 -07:00
Torin Sandall 41fbf6eb13 docs: Update to show undefined example with !=
Fixes #1626

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-23 16:50:32 -04:00
Torin Sandall 74d67c5de1 docs: Update to use live blocks
These changes update most of the docs to use live blocks. The
following pages have not been touched or updated significantly:

* Get Started - this page is based entirely on the REPL. We should
  revisit the "Get Started" page once these changes have
  landed. The existing page can live on as an introduction to the REPL
  while the Get Started page can be tailored to live blocks.

* Ceph Authorization - this page has not been updated aside from
  making the policy example use the live blocks for syntax
  highlighting. We need to revisit the policy example and refactor the
  tutorial a bit to emphasize the policy as opposed to the manifests
  required to install.

* Terraform - this page has not been touched because @vgramer is
  planning to update for Terraform v0.12. We can update this page once
  those changes are in to avoid conflicts.

These changes also remove the use of non-Markdown code examples. All
the examples are inlined into Markdown now.

A few OPA deployment examples have been updated to enable the console
decision logging. This is better than the request/response debug logs.

Fixes #1650

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-23 16:50:32 -04:00
Torin Sandall 64139d61f7 docs: Fix whitespace in Makefile
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-23 16:50:32 -04:00