Skip to content

website/docs: add more content about flows#10527

Merged
BeryJu merged 36 commits intomainfrom
docs-flows-howto
Aug 6, 2024
Merged

website/docs: add more content about flows#10527
BeryJu merged 36 commits intomainfrom
docs-flows-howto

Conversation

@tanberry
Copy link
Copy Markdown
Contributor

@tanberry tanberry commented Jul 17, 2024

This PR updates our docs about flows/stages, and policies.

  • add more information about Flows, and also list all configuration options, in the order they are presented on the UI.
  • add a short How To procedural on creating a flow and a policy
  • add links between flows, stages and policies docs
  • creates a proper landing page for Stages, so we can link to it
  • updates the Style Guide and Writing guidelines
  • Add procedurals to Stages (how to create a Stage, how to bind it to a flow)
  • Link from Flows page to Stages HowTo
  • Add link from Flows overview page to the Flow Context page
  • The documentation has been updated
  • The documentation has been formatted (make website)

@tanberry tanberry requested a review from a team as a code owner July 17, 2024 01:19
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 17, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 3bd4ff0
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/66b2184398fcfe0008de8bbc
😎 Deploy Preview https://deploy-preview-10527--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 17, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 3bd4ff0
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/66b21842d320960008ffb7e5
😎 Deploy Preview https://deploy-preview-10527--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tanberry tanberry requested review from a team and BeryJu and removed request for a team July 17, 2024 01:19
@tanberry tanberry marked this pull request as draft July 17, 2024 01:20
@tanberry tanberry marked this pull request as ready for review August 2, 2024 00:19
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 2, 2024

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-3bd4ff0fe5fd262611c63ce02b935cbf81b80980
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-3bd4ff0fe5fd262611c63ce02b935cbf81b80980-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-3bd4ff0fe5fd262611c63ce02b935cbf81b80980

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-3bd4ff0fe5fd262611c63ce02b935cbf81b80980-arm64

Afterwards, run the upgrade commands from the latest release notes.

Copy link
Copy Markdown
Contributor

@kensternberg-authentik kensternberg-authentik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had only one question, really, because I don't really understand yet how the flow/stage/policy thing, which as far as I can tell is a sequence with no branches, turns into that mermaid-like branching diagram.

Starting with authentik 2022.8, flows will be exported as YAML, but JSON-based flows can still be imported.
- **Denied action**: Configure what happens when access to a flow is denied by a policy. By default, authentik will redirect to a `?next` parameter if set, and otherwise show an error message.

## Behavior settings
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where? Where does one "toggle these settings?"

Copy link
Copy Markdown
Contributor Author

@tanberry tanberry Aug 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, @kensternberg-authentik this confirms a concern I developed last week, that it is not at all clear that all of these sections in this page are sections of the UI. On the Create flow modal, there is a section called Denied action with these three radio buttons. I am going to look into how to make it more clear on this page that these are UI elements. Any ideas?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK @kensternberg-authentik I reformatted that page to use bold text for each field, instead of H3s... hopefully that makes it more obvious that those are field names, not headers/titles. I also added a screenshot of the Create modal box... to hint that the items below are those fields.

@tanberry
Copy link
Copy Markdown
Contributor Author

tanberry commented Aug 5, 2024

I had only one question, really, because I don't really understand yet how the flow/stage/policy thing, which as far as I can tell is a sequence with no branches, turns into that mermaid-like branching diagram.

Oh oh oh I am excited to try to answer this @kensternberg-authentik ... though Jens might have to correct me. I believe that the "branching" shown in the diagram represents the decisions that are made based on a policy. If a policy "passes" then the specified Stage is used. If the policy fails, then that Stage is skipped. So it is a sequence, but a dynamic one, based on policies.

@authentik-automation
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 53.5%, saving 129.49 KB.

Filename Before After Improvement Visual comparison
website/docs/flow/create-flow.png 242.10 KB 112.62 KB -53.5% View diff

157 images did not require optimisation.

@authentik-automation
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 52.6%, saving 47.06 KB.

Filename Before After Improvement Visual comparison
website/docs/flow/simple_stages.png 89.50 KB 42.44 KB -52.6% View diff

157 images did not require optimisation.

@tanberry tanberry requested a review from BeryJu August 6, 2024 12:32
Signed-off-by: Jens Langhammer <jens@goauthentik.io>

# Conflicts:
#	website/docs/policies/index.md
@BeryJu BeryJu enabled auto-merge (squash) August 6, 2024 12:33
@authentik-automation
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 52.1%, saving 49.32 KB.

Filename Before After Improvement Visual comparison
website/docs/flow/simple_stages.png 94.68 KB 45.36 KB -52.1% View diff

157 images did not require optimisation.

@BeryJu BeryJu merged commit 34b01d9 into main Aug 6, 2024
@BeryJu BeryJu deleted the docs-flows-howto branch August 6, 2024 12:56
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2024
* main: (473 commits)
  blueprints: handle model referencing non-existent app/model (#10796)
  website/docs: add more content about flows (#10527)
  brands: add OIDC webfinger support (#10400)
  web/admin: fix selectable card colour in dark theme (#10794)
  web: bump API Client version (#10793)
  policies: add GeoIP policy (#10454)
  core: bump debugpy from 1.8.3 to 1.8.5 (#10781)
  web: bump @sentry/browser from 8.22.0 to 8.23.0 in /web in the sentry group across 1 directory (#10782)
  website: bump postcss from 8.4.40 to 8.4.41 in /website (#10783)
  web: bump the wdio group across 2 directories with 4 updates (#10785)
  web: bump @lit/localize from 0.12.1 to 0.12.2 in /web (#10786)
  web: bump @floating-ui/dom from 1.6.8 to 1.6.9 in /web (#10787)
  web: bump @lit/localize-tools from 0.7.2 to 0.8.0 in /web (#10788)
  web: bump lit from 3.1.4 to 3.2.0 in /web (#10789)
  core: bump goauthentik.io/api/v3 from 3.2024062.2 to 3.2024063.1 (#10790)
  web: bump API Client version (#10779)
  release: 2024.6.3
  website/docs: prepare 2024.6.3 release notes (#10775)
  website/scripts: updated readme, added docsmg.env file  (#10710)
  web: bump API Client version (#10777)
  ...
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2024
* main: (702 commits)
  blueprints: handle model referencing non-existent app/model (#10796)
  website/docs: add more content about flows (#10527)
  brands: add OIDC webfinger support (#10400)
  web/admin: fix selectable card colour in dark theme (#10794)
  web: bump API Client version (#10793)
  policies: add GeoIP policy (#10454)
  core: bump debugpy from 1.8.3 to 1.8.5 (#10781)
  web: bump @sentry/browser from 8.22.0 to 8.23.0 in /web in the sentry group across 1 directory (#10782)
  website: bump postcss from 8.4.40 to 8.4.41 in /website (#10783)
  web: bump the wdio group across 2 directories with 4 updates (#10785)
  web: bump @lit/localize from 0.12.1 to 0.12.2 in /web (#10786)
  web: bump @floating-ui/dom from 1.6.8 to 1.6.9 in /web (#10787)
  web: bump @lit/localize-tools from 0.7.2 to 0.8.0 in /web (#10788)
  web: bump lit from 3.1.4 to 3.2.0 in /web (#10789)
  core: bump goauthentik.io/api/v3 from 3.2024062.2 to 3.2024063.1 (#10790)
  web: bump API Client version (#10779)
  release: 2024.6.3
  website/docs: prepare 2024.6.3 release notes (#10775)
  website/scripts: updated readme, added docsmg.env file  (#10710)
  web: bump API Client version (#10777)
  ...
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2024
* main: (690 commits)
  blueprints: handle model referencing non-existent app/model (#10796)
  website/docs: add more content about flows (#10527)
  brands: add OIDC webfinger support (#10400)
  web/admin: fix selectable card colour in dark theme (#10794)
  web: bump API Client version (#10793)
  policies: add GeoIP policy (#10454)
  core: bump debugpy from 1.8.3 to 1.8.5 (#10781)
  web: bump @sentry/browser from 8.22.0 to 8.23.0 in /web in the sentry group across 1 directory (#10782)
  website: bump postcss from 8.4.40 to 8.4.41 in /website (#10783)
  web: bump the wdio group across 2 directories with 4 updates (#10785)
  web: bump @lit/localize from 0.12.1 to 0.12.2 in /web (#10786)
  web: bump @floating-ui/dom from 1.6.8 to 1.6.9 in /web (#10787)
  web: bump @lit/localize-tools from 0.7.2 to 0.8.0 in /web (#10788)
  web: bump lit from 3.1.4 to 3.2.0 in /web (#10789)
  core: bump goauthentik.io/api/v3 from 3.2024062.2 to 3.2024063.1 (#10790)
  web: bump API Client version (#10779)
  release: 2024.6.3
  website/docs: prepare 2024.6.3 release notes (#10775)
  website/scripts: updated readme, added docsmg.env file  (#10710)
  web: bump API Client version (#10777)
  ...
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2024
* main: (229 commits)
  blueprints: handle model referencing non-existent app/model (#10796)
  website/docs: add more content about flows (#10527)
  brands: add OIDC webfinger support (#10400)
  web/admin: fix selectable card colour in dark theme (#10794)
  web: bump API Client version (#10793)
  policies: add GeoIP policy (#10454)
  core: bump debugpy from 1.8.3 to 1.8.5 (#10781)
  web: bump @sentry/browser from 8.22.0 to 8.23.0 in /web in the sentry group across 1 directory (#10782)
  website: bump postcss from 8.4.40 to 8.4.41 in /website (#10783)
  web: bump the wdio group across 2 directories with 4 updates (#10785)
  web: bump @lit/localize from 0.12.1 to 0.12.2 in /web (#10786)
  web: bump @floating-ui/dom from 1.6.8 to 1.6.9 in /web (#10787)
  web: bump @lit/localize-tools from 0.7.2 to 0.8.0 in /web (#10788)
  web: bump lit from 3.1.4 to 3.2.0 in /web (#10789)
  core: bump goauthentik.io/api/v3 from 3.2024062.2 to 3.2024063.1 (#10790)
  web: bump API Client version (#10779)
  release: 2024.6.3
  website/docs: prepare 2024.6.3 release notes (#10775)
  website/scripts: updated readme, added docsmg.env file  (#10710)
  web: bump API Client version (#10777)
  ...
kensternberg-authentik added a commit that referenced this pull request Aug 12, 2024
* main:
  blueprints: handle model referencing non-existent app/model (#10796)
  website/docs: add more content about flows (#10527)
  brands: add OIDC webfinger support (#10400)
  web/admin: fix selectable card colour in dark theme (#10794)
  web: bump API Client version (#10793)
  policies: add GeoIP policy (#10454)
  core: bump debugpy from 1.8.3 to 1.8.5 (#10781)
  web: bump @sentry/browser from 8.22.0 to 8.23.0 in /web in the sentry group across 1 directory (#10782)
  website: bump postcss from 8.4.40 to 8.4.41 in /website (#10783)
  web: bump the wdio group across 2 directories with 4 updates (#10785)
  web: bump @lit/localize from 0.12.1 to 0.12.2 in /web (#10786)
  web: bump @floating-ui/dom from 1.6.8 to 1.6.9 in /web (#10787)
  web: bump @lit/localize-tools from 0.7.2 to 0.8.0 in /web (#10788)
  web: bump lit from 3.1.4 to 3.2.0 in /web (#10789)
  core: bump goauthentik.io/api/v3 from 3.2024062.2 to 3.2024063.1 (#10790)
  web: bump API Client version (#10779)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants