goauthentik / helm

Helm chart for authentik
https://artifacthub.io/packages/search?org=goauthentik&sort=relevance&page=1
GNU General Public License v3.0
94 stars 46 forks source link

OCI registry-backed blueprints #147

Open cskwrd opened 1 year ago

cskwrd commented 1 year ago

It appears that the helm chart has support for defining blueprints via a configmap. Is there a way to configure authentik to apply OCI registry-backed blueprints via the chart?

BeryJu commented 1 year ago

There's no direct way to specify a list of OCI uris to use as blueprint instances, but as you can manage any model via blueprint instance, you can use a blueprint that creates more blueprints:

version: 1
metadata:
  name: OCI blueprints
entries:
  - model: authentik_blueprints.blueprintinstance
    identifiers:
      name: my-blueprint-name
    attrs:
      context:
        foo: bar
      path: oci://ghcr.io/<username>/<package-name>:<ref>
  - model: authentik_blueprints.blueprintinstance
    identifiers:
      name: my-other-blueprint-name
    attrs:
      context:
        foo: bar
      path: oci://ghcr.io/<username>/<package-name>:<ref>

(the context key is optional, just make sure the name of each of the blueprints is different)