From b40caf12df33bc16c09319ab79fdeea9d0a07050 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Apr 2023 13:54:23 +0300 Subject: [PATCH] core: bump node from 18 to 20 (#5329) * core: bump node from 18 to 20 Bumps node from 18 to 20. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * bump node everywhere, fixup go ci Signed-off-by: Jens Langhammer * bump versions in docs Signed-off-by: Jens Langhammer --------- Signed-off-by: dependabot[bot] Signed-off-by: Jens Langhammer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer --- .github/ISSUE_TEMPLATE/bug_report.md | 11 +- .github/ISSUE_TEMPLATE/feature_request.md | 5 +- .github/ISSUE_TEMPLATE/question.md | 10 +- .../comment-pr-instructions/action.yml | 6 +- .../actions/docker-push-variables/action.yml | 4 +- .github/actions/setup/action.yml | 12 +- .github/actions/setup/docker-compose.yml | 8 +- .github/dependabot.yml | 120 +++++++++--------- .github/pull_request_template.md | 13 +- .github/transifex.yml | 4 +- .github/workflows/ci-outpost.yml | 12 +- .github/workflows/ci-web.yml | 20 +-- .github/workflows/ci-website.yml | 12 +- .github/workflows/codeql-analysis.yml | 58 ++++----- .github/workflows/ghcr-retention.yml | 2 +- .github/workflows/release-publish.yml | 12 +- .github/workflows/release-tag.yml | 2 +- .github/workflows/translation-compile.yml | 6 +- .github/workflows/web-api-publish.yml | 8 +- Dockerfile | 4 +- proxy.Dockerfile | 2 +- .../setup/frontend-dev-environment.md | 4 +- .../setup/full-dev-environment.md | 6 +- .../setup/website-dev-environment.md | 4 +- 24 files changed, 173 insertions(+), 172 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 9c373e495..367a32e32 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,10 +1,9 @@ --- name: Bug report about: Create a report to help us improve -title: '' +title: "" labels: bug -assignees: '' - +assignees: "" --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -27,8 +27,9 @@ If applicable, add screenshots to help explain your problem. Output of docker-compose logs or kubectl logs respectively **Version and Deployment (please complete the following information):** - - authentik version: [e.g. 2021.8.5] - - Deployment: [e.g. docker-compose, helm] + +- authentik version: [e.g. 2021.8.5] +- Deployment: [e.g. docker-compose, helm] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 11fc491ef..d883b8f2d 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,10 +1,9 @@ --- name: Feature request about: Suggest an idea for this project -title: '' +title: "" labels: enhancement -assignees: '' - +assignees: "" --- **Is your feature request related to a problem? Please describe.** diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index dd31a59ae..d966aee97 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -1,10 +1,9 @@ --- name: Question about: Ask a question about a feature or specific configuration -title: '' +title: "" labels: question -assignees: '' - +assignees: "" --- **Describe your question/** @@ -20,8 +19,9 @@ If applicable, add screenshots to help explain your problem. Output of docker-compose logs or kubectl logs respectively **Version and Deployment (please complete the following information):** - - authentik version: [e.g. 2021.8.5] - - Deployment: [e.g. docker-compose, helm] + +- authentik version: [e.g. 2021.8.5] +- Deployment: [e.g. docker-compose, helm] **Additional context** Add any other context about the problem here. diff --git a/.github/actions/comment-pr-instructions/action.yml b/.github/actions/comment-pr-instructions/action.yml index 0d0a5163c..b8fb31eaa 100644 --- a/.github/actions/comment-pr-instructions/action.yml +++ b/.github/actions/comment-pr-instructions/action.yml @@ -1,5 +1,5 @@ -name: 'Comment usage instructions on PRs' -description: 'Comment usage instructions on PRs' +name: "Comment usage instructions on PRs" +description: "Comment usage instructions on PRs" inputs: tag: @@ -17,7 +17,7 @@ runs: id: fc with: issue-number: ${{ github.event.pull_request.number }} - comment-author: 'github-actions[bot]' + comment-author: "github-actions[bot]" body-includes: authentik PR Installation instructions - name: Create or update comment uses: peter-evans/create-or-update-comment@v2 diff --git a/.github/actions/docker-push-variables/action.yml b/.github/actions/docker-push-variables/action.yml index 4e9c6164b..16cf648e1 100644 --- a/.github/actions/docker-push-variables/action.yml +++ b/.github/actions/docker-push-variables/action.yml @@ -1,5 +1,5 @@ -name: 'Prepare docker environment variables' -description: 'Prepare docker environment variables' +name: "Prepare docker environment variables" +description: "Prepare docker environment variables" outputs: shouldBuild: diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 8588355ca..79e1f28cc 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,5 +1,5 @@ -name: 'Setup authentik testing environment' -description: 'Setup authentik testing environment' +name: "Setup authentik testing environment" +description: "Setup authentik testing environment" inputs: postgresql_tag: @@ -18,13 +18,13 @@ runs: - name: Setup python and restore poetry uses: actions/setup-python@v3 with: - python-version: '3.11' - cache: 'poetry' + python-version: "3.11" + cache: "poetry" - name: Setup node uses: actions/setup-node@v3.1.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - name: Setup dependencies shell: bash diff --git a/.github/actions/setup/docker-compose.yml b/.github/actions/setup/docker-compose.yml index 236dd3a7b..9ddbbd23f 100644 --- a/.github/actions/setup/docker-compose.yml +++ b/.github/actions/setup/docker-compose.yml @@ -1,23 +1,23 @@ -version: '3.7' +version: "3.7" services: postgresql: container_name: postgres image: library/postgres:${PSQL_TAG:-12} volumes: - - db-data:/var/lib/postgresql/data + - db-data:/var/lib/postgresql/data environment: POSTGRES_USER: authentik POSTGRES_PASSWORD: "EK-5jnKfjrGRm<77" POSTGRES_DB: authentik ports: - - 5432:5432 + - 5432:5432 restart: always redis: container_name: redis image: library/redis ports: - - 6379:6379 + - 6379:6379 restart: always volumes: diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bacfaf537..a84165361 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,62 +1,62 @@ version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - "@goauthentik/core" - commit-message: - prefix: "ci:" - - package-ecosystem: gomod - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - "@goauthentik/core" - commit-message: - prefix: "core:" - - package-ecosystem: npm - directory: "/web" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - "@goauthentik/core" - commit-message: - prefix: "web:" - - package-ecosystem: npm - directory: "/website" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - "@goauthentik/core" - commit-message: - prefix: "website:" - - package-ecosystem: pip - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - "@goauthentik/core" - commit-message: - prefix: "core:" - - package-ecosystem: docker - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - "@goauthentik/core" - commit-message: - prefix: "core:" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + reviewers: + - "@goauthentik/core" + commit-message: + prefix: "ci:" + - package-ecosystem: gomod + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + reviewers: + - "@goauthentik/core" + commit-message: + prefix: "core:" + - package-ecosystem: npm + directory: "/web" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + reviewers: + - "@goauthentik/core" + commit-message: + prefix: "web:" + - package-ecosystem: npm + directory: "/website" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + reviewers: + - "@goauthentik/core" + commit-message: + prefix: "website:" + - package-ecosystem: pip + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + reviewers: + - "@goauthentik/core" + commit-message: + prefix: "core:" + - package-ecosystem: docker + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + reviewers: + - "@goauthentik/core" + commit-message: + prefix: "core:" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f0f6c2dfc..8de020ccc 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,15 +5,20 @@ Please check the [Contributing guidelines](https://github.com/goauthentik/authen --> # Details -* **Does this resolve an issue?** -Resolves # + +- **Does this resolve an issue?** + Resolves # ## Changes + ### New Features -* Adds feature which does x, y, and z. + +- Adds feature which does x, y, and z. ### Breaking Changes -* Adds breaking change which causes \. + +- Adds breaking change which causes \. ## Additional + Any further notes or comments you want to make. diff --git a/.github/transifex.yml b/.github/transifex.yml index 6f3e2b055..d4fb74afb 100644 --- a/.github/transifex.yml +++ b/.github/transifex.yml @@ -6,11 +6,11 @@ git: source_language: en source_file: web/src/locales/en.po # path expression to translation files, must contain placeholder - translation_files_expression: 'web/src/locales/.po' + translation_files_expression: "web/src/locales/.po" - filter_type: file # all supported i18n types: https://docs.transifex.com/formats file_format: PO source_language: en source_file: locale/en/LC_MESSAGES/django.po # path expression to translation files, must contain placeholder - translation_files_expression: 'locale//LC_MESSAGES/django.po' + translation_files_expression: "locale//LC_MESSAGES/django.po" diff --git a/.github/workflows/ci-outpost.yml b/.github/workflows/ci-outpost.yml index 1b8df0e3c..cdb680cee 100644 --- a/.github/workflows/ci-outpost.yml +++ b/.github/workflows/ci-outpost.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: "^1.17" + go-version-file: "go.mod" - name: Prepare and generate API run: | # Create folder structure for go embeds @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: "^1.17" + go-version-file: "go.mod" - name: Generate API run: make gen-client-go - name: Go unittests @@ -112,10 +112,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: "^1.17" + go-version-file: "go.mod" - uses: actions/setup-node@v3.6.0 with: - node-version: "18" + node-version: "20" cache: "npm" cache-dependency-path: web/package-lock.json - name: Generate API @@ -131,7 +131,3 @@ jobs: export GOOS=${{ matrix.goos }} export GOARCH=${{ matrix.goarch }} go build -tags=outpost_static_embed -v -o ./authentik-outpost-${{ matrix.type }}_${{ matrix.goos }}_${{ matrix.goarch }} ./cmd/${{ matrix.type }} - - uses: actions/upload-artifact@v3 - with: - name: authentik-outpost-${{ matrix.type }}_${{ matrix.goos }}_${{ matrix.goarch }} - path: ./authentik-outpost-${{ matrix.type }}_${{ matrix.goos }}_${{ matrix.goarch }} diff --git a/.github/workflows/ci-web.yml b/.github/workflows/ci-web.yml index 167891a0b..67ed36635 100644 --- a/.github/workflows/ci-web.yml +++ b/.github/workflows/ci-web.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - working-directory: web/ run: npm ci @@ -33,8 +33,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - working-directory: web/ run: npm ci @@ -49,8 +49,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - working-directory: web/ run: npm ci @@ -65,8 +65,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - working-directory: web/ run: | @@ -97,8 +97,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - working-directory: web/ run: npm ci diff --git a/.github/workflows/ci-website.yml b/.github/workflows/ci-website.yml index 522f41999..393220683 100644 --- a/.github/workflows/ci-website.yml +++ b/.github/workflows/ci-website.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: website/package-lock.json - working-directory: website/ run: npm ci @@ -31,8 +31,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: website/package-lock.json - working-directory: website/ run: npm ci @@ -52,8 +52,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: website/package-lock.json - working-directory: website/ run: npm ci diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 710a15614..dc88c2ad6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,12 +2,12 @@ name: "CodeQL" on: push: - branches: [ main, '*', next, version* ] + branches: [main, "*", next, version*] pull_request: # The branches below must be a subset of the branches above - branches: [ main ] + branches: [main] schedule: - - cron: '30 6 * * 5' + - cron: "30 6 * * 5" jobs: analyze: @@ -21,40 +21,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go', 'javascript', 'python' ] + language: ["go", "javascript", "python"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v3 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language - #- run: | - # make bootstrap - # make release + #- run: | + # make bootstrap + # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/ghcr-retention.yml b/.github/workflows/ghcr-retention.yml index cecfee9c9..308c1351a 100644 --- a/.github/workflows/ghcr-retention.yml +++ b/.github/workflows/ghcr-retention.yml @@ -2,7 +2,7 @@ name: ghcr-retention on: schedule: - - cron: '0 0 * * *' # every day at midnight + - cron: "0 0 * * *" # every day at midnight workflow_dispatch: jobs: diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index cd313e430..b54a4a956 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -57,7 +57,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: "^1.17" + go-version-file: "go.mod" - name: Set up QEMU uses: docker/setup-qemu-action@v2.1.0 - name: Set up Docker Buildx @@ -107,11 +107,11 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: "^1.17" + go-version-file: "go.mod" - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - cache: 'npm' + node-version: "20" + cache: "npm" cache-dependency-path: web/package-lock.json - name: Build web working-directory: web/ @@ -173,5 +173,5 @@ jobs: SENTRY_PROJECT: authentik with: version: authentik@${{ steps.ev.outputs.version }} - sourcemaps: './web/dist' - url_prefix: '~/static/dist' + sourcemaps: "./web/dist" + url_prefix: "~/static/dist" diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 31d59cd62..6673cc4f2 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -3,7 +3,7 @@ name: authentik-on-tag on: push: tags: - - 'version/*' + - "version/*" jobs: build: diff --git a/.github/workflows/translation-compile.yml b/.github/workflows/translation-compile.yml index fd9c13040..0b600bf81 100644 --- a/.github/workflows/translation-compile.yml +++ b/.github/workflows/translation-compile.yml @@ -1,12 +1,12 @@ name: authentik-backend-translate-compile on: push: - branches: [ main ] + branches: [main] paths: - - '/locale/' + - "/locale/" pull_request: paths: - - '/locale/' + - "/locale/" workflow_dispatch: env: diff --git a/.github/workflows/web-api-publish.yml b/.github/workflows/web-api-publish.yml index a101d7f98..1b8521d87 100644 --- a/.github/workflows/web-api-publish.yml +++ b/.github/workflows/web-api-publish.yml @@ -1,9 +1,9 @@ name: authentik-web-api-publish on: push: - branches: [ main ] + branches: [main] paths: - - 'schema.yml' + - "schema.yml" workflow_dispatch: jobs: build: @@ -14,8 +14,8 @@ jobs: token: ${{ secrets.BOT_GITHUB_TOKEN }} - uses: actions/setup-node@v3.6.0 with: - node-version: '18' - registry-url: 'https://registry.npmjs.org' + node-version: "20" + registry-url: "https://registry.npmjs.org" - name: Generate API Client run: make gen-client-ts - name: Publish package diff --git a/Dockerfile b/Dockerfile index 288e0fa24..ce0eeda46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build website -FROM --platform=${BUILDPLATFORM} docker.io/node:18 as website-builder +FROM --platform=${BUILDPLATFORM} docker.io/node:20 as website-builder COPY ./website /work/website/ COPY ./blueprints /work/blueprints/ @@ -10,7 +10,7 @@ WORKDIR /work/website RUN npm ci && npm run build-docs-only # Stage 2: Build webui -FROM --platform=${BUILDPLATFORM} docker.io/node:18 as web-builder +FROM --platform=${BUILDPLATFORM} docker.io/node:20 as web-builder COPY ./web /work/web/ COPY ./website /work/website/ diff --git a/proxy.Dockerfile b/proxy.Dockerfile index cb39d09d6..b088ae6ec 100644 --- a/proxy.Dockerfile +++ b/proxy.Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build website -FROM --platform=${BUILDPLATFORM} docker.io/node:18 as web-builder +FROM --platform=${BUILDPLATFORM} docker.io/node:20 as web-builder COPY ./web /static/ diff --git a/website/developer-docs/setup/frontend-dev-environment.md b/website/developer-docs/setup/frontend-dev-environment.md index a167eab8a..3cbed2e88 100644 --- a/website/developer-docs/setup/frontend-dev-environment.md +++ b/website/developer-docs/setup/frontend-dev-environment.md @@ -6,12 +6,12 @@ If you want to only make changes on the UI, you don't need a backend running fro ### Prerequisites -- Node (any recent version should work, we use 18.x to build) +- Node (any recent version should work, we use 20.x to build) - Make (again, any recent version should work) - Docker and docker-compose :::info -Depending on platform, some native dependencies might be required. On macOS, run `brew install node@18`, and for docker `brew install --cask docker` +Depending on platform, some native dependencies might be required. On macOS, run `brew install node@20`, and for docker `brew install --cask docker` ::: ### Instructions diff --git a/website/developer-docs/setup/full-dev-environment.md b/website/developer-docs/setup/full-dev-environment.md index f1907322f..40f16d72b 100644 --- a/website/developer-docs/setup/full-dev-environment.md +++ b/website/developer-docs/setup/full-dev-environment.md @@ -6,10 +6,10 @@ title: Full development environment - Python 3.11 - poetry, which is used to manage dependencies, and can be installed with `pip install poetry` -- Go 1.18 +- Go 1.20 +- Node 20 - PostgreSQL (any recent version will do) - Redis (any recent version will do) -- Node 16 (or later) ## Services Setup @@ -24,7 +24,7 @@ poetry install # Install all required dependencies, including development depend ``` :::info -Depending on platform, some native dependencies might be required. On macOS, run `brew install libxmlsec1 libpq`, and for the CLI tools `brew install postgresql redis node@18` +Depending on platform, some native dependencies might be required. On macOS, run `brew install libxmlsec1 libpq`, and for the CLI tools `brew install postgresql redis node@20` ::: To configure authentik to use the local databases, we need a local config file. This file can be generated by running `make gen-dev-config`. diff --git a/website/developer-docs/setup/website-dev-environment.md b/website/developer-docs/setup/website-dev-environment.md index 14acbc0ad..adffe814f 100644 --- a/website/developer-docs/setup/website-dev-environment.md +++ b/website/developer-docs/setup/website-dev-environment.md @@ -6,11 +6,11 @@ If you want to only make changes to the website, you only need node. ### Prerequisites -- Node (any recent version should work, we use 18.x to build) +- Node (any recent version should work, we use 20.x to build) - Make (again, any recent version should work) :::info -Depending on platform, some native dependencies might be required. On macOS, run `brew install node@18` +Depending on platform, some native dependencies might be required. On macOS, run `brew install node@20` ::: ### Instructions