Commit Graph

8 Commits

Author SHA1 Message Date
Ashutosh Narkar 5c183f5ecb Update OPA images to use non-root uid/gid by default
Currently all OPA image variants except "rootless" use
uid/gid 0 (i.e. root). Per container security best
practices it is better to run as non-root. So now OPA
defaults to non-root uid/gid in images. If root user
if needed, it can be explicitly set.

The "rootless" image variant is no longer needed and
will be not published in future releases.

Also currently the debug variant is published
for `linux/amd64` platform. For `linux/arm64` only static
images are generated. The debug variant can be useful
for debugging purposes and hence this change adds that
to the static image which can then be used on amd64 and arm64 arch.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2023-03-02 08:46:09 -08:00
Ashutosh Narkar 1e472be3d3 docs: Add note about OPA-GraphQL integration being for experimental purposes (#5657)
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2023-02-14 16:43:08 -05:00
Philip Conrad ea06d89ea7 docs/graphql: non-nullable id argument and typo fix.
This commit fixes a typo in the GraphQL tutorial, and changes the
`optional` ID field to `required`, to better mimic real world usage.

Corresponding PR in the tutorial code repo: StyraInc/graphql-apollo-example#2

Co-authored-by: @dreglad
Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2023-01-30 14:36:49 -08:00
Philip Conrad ab385e9c17 topdown/builtins: Add object support for GraphQL builtins. (#4752)
This commit adds support for AST objects to be usable in place of
strings for several of the GraphQL built-in functions, to improve
the composability of the GraphQL set of built-ins, and to dramatically
reduce the amount of redundant parsing when writing GraphQL policies.

Fixes: #4742

Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2022-09-26 11:47:40 +02:00
Peter ONeill ce4ac6ec5e docs: Update port and bundle folder for GraphQL tutorial (#4971)
This commit updates the GraphQL tutorial to use port 6000 to be more
MacOS and Linux-friendly. It also moves the bundles to a folder to reduce
clutter.

Signed-off-by: Peter ONeill <peteroneilljr@gmail.com>
2022-08-08 15:34:45 -04:00
Ashutosh Narkar e137e6d9c3 docs: Replace OPA docker image tag with shortcode
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2022-07-19 23:14:11 -07:00
Philip Conrad 0b09e82ba9 docs: Fixup formatting, fix tutorial link, add note about directives. (#4903)
This commit fixes the formatting of "note" fields in the policy
reference document and adds a note about supporting custom GraphQL
`@directive` syntax in schemas.

It also corrects the GraphQL tutorial source code link, over in the
GraphQL API authz tutorial.

Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2022-07-19 07:29:03 +02:00
Philip Conrad ca2e500df8 docs: Add GraphQL tutorial. (#4837)
This commit adds a GraphQL tutorial to the OPA tutorials list.

Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2022-07-14 20:03:52 -04:00