core: bump python from 3.10.7-slim-bullseye to 3.11.0-slim-bullseye (#3864)
* core: bump python from 3.10.7-slim-bullseye to 3.11.0-slim-bullseye Bumps python from 3.10.7-slim-bullseye to 3.11.0-slim-bullseye. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * bump project Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * bump deps Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * bump ci to 3.11 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix tests Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * cleanup Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix formatting Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/actions/setup/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/actions/setup/action.yml
									
									
									
									
										vendored
									
									
								
							| @ -13,7 +13,7 @@ runs: | ||||
|     - name: Setup python and restore poetry | ||||
|       uses: actions/setup-python@v3 | ||||
|       with: | ||||
|         python-version: '3.10' | ||||
|         python-version: '3.11' | ||||
|         cache: 'poetry' | ||||
|     - name: Setup node | ||||
|       uses: actions/setup-node@v3.1.0 | ||||
| @ -25,7 +25,7 @@ runs: | ||||
|       shell: bash | ||||
|       run: | | ||||
|         docker-compose -f .github/actions/setup/docker-compose.yml up -d | ||||
|         poetry env use python3.10 | ||||
|         poetry env use python3.11 | ||||
|         poetry install | ||||
|         cd web && npm ci | ||||
|     - name: Generate config | ||||
|  | ||||
							
								
								
									
										28
									
								
								.github/workflows/ci-main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/ci-main.yml
									
									
									
									
										vendored
									
									
								
							| @ -83,17 +83,10 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Setup authentik env | ||||
|         uses: ./.github/actions/setup | ||||
|       - uses: testspace-com/setup-testspace@v1 | ||||
|         with: | ||||
|           domain: ${{github.repository_owner}} | ||||
|       - name: run unittest | ||||
|         run: | | ||||
|           poetry run make test | ||||
|           poetry run coverage xml | ||||
|       - name: run testspace | ||||
|         if: ${{ always() }} | ||||
|         run: | | ||||
|           testspace [unittest]unittest.xml --link=codecov | ||||
|       - if: ${{ always() }} | ||||
|         uses: codecov/codecov-action@v3 | ||||
|         with: | ||||
| @ -104,19 +97,12 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Setup authentik env | ||||
|         uses: ./.github/actions/setup | ||||
|       - uses: testspace-com/setup-testspace@v1 | ||||
|         with: | ||||
|           domain: ${{github.repository_owner}} | ||||
|       - name: Create k8s Kind Cluster | ||||
|         uses: helm/kind-action@v1.4.0 | ||||
|       - name: run integration | ||||
|         run: | | ||||
|           poetry run make test-integration | ||||
|           poetry run coverage xml | ||||
|       - name: run testspace | ||||
|         if: ${{ always() }} | ||||
|         run: | | ||||
|           testspace [integration]unittest.xml --link=codecov | ||||
|       - if: ${{ always() }} | ||||
|         uses: codecov/codecov-action@v3 | ||||
|         with: | ||||
| @ -127,9 +113,6 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Setup authentik env | ||||
|         uses: ./.github/actions/setup | ||||
|       - uses: testspace-com/setup-testspace@v1 | ||||
|         with: | ||||
|           domain: ${{github.repository_owner}} | ||||
|       - name: Setup e2e env (chrome, etc) | ||||
|         run: | | ||||
|           docker-compose -f tests/e2e/docker-compose.yml up -d | ||||
| @ -149,10 +132,6 @@ jobs: | ||||
|         run: | | ||||
|           poetry run make test-e2e-provider | ||||
|           poetry run coverage xml | ||||
|       - name: run testspace | ||||
|         if: ${{ always() }} | ||||
|         run: | | ||||
|           testspace [e2e-provider]unittest.xml --link=codecov | ||||
|       - if: ${{ always() }} | ||||
|         uses: codecov/codecov-action@v3 | ||||
|         with: | ||||
| @ -163,9 +142,6 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Setup authentik env | ||||
|         uses: ./.github/actions/setup | ||||
|       - uses: testspace-com/setup-testspace@v1 | ||||
|         with: | ||||
|           domain: ${{github.repository_owner}} | ||||
|       - name: Setup e2e env (chrome, etc) | ||||
|         run: | | ||||
|           docker-compose -f tests/e2e/docker-compose.yml up -d | ||||
| @ -185,10 +161,6 @@ jobs: | ||||
|         run: | | ||||
|           poetry run make test-e2e-rest | ||||
|           poetry run coverage xml | ||||
|       - name: run testspace | ||||
|         if: ${{ always() }} | ||||
|         run: | | ||||
|           testspace [e2e-rest]unittest.xml --link=codecov | ||||
|       - if: ${{ always() }} | ||||
|         uses: codecov/codecov-action@v3 | ||||
|         with: | ||||
|  | ||||
| @ -19,7 +19,7 @@ WORKDIR /work/web | ||||
| RUN npm ci && npm run build | ||||
|  | ||||
| # Stage 3: Poetry to requirements.txt export | ||||
| FROM docker.io/python:3.10.7-slim-bullseye AS poetry-locker | ||||
| FROM docker.io/python:3.11.0-slim-bullseye AS poetry-locker | ||||
|  | ||||
| WORKDIR /work | ||||
| COPY ./pyproject.toml /work | ||||
| @ -46,7 +46,7 @@ COPY ./go.sum /work/go.sum | ||||
| RUN go build -o /work/authentik ./cmd/server/ | ||||
|  | ||||
| # Stage 5: Run | ||||
| FROM docker.io/python:3.10.7-slim-bullseye AS final-image | ||||
| FROM docker.io/python:3.11.0-slim-bullseye AS final-image | ||||
|  | ||||
| LABEL org.opencontainers.image.url https://goauthentik.io | ||||
| LABEL org.opencontainers.image.description goauthentik.io Main server image, see https://goauthentik.io for more info. | ||||
|  | ||||
| @ -9,7 +9,6 @@ | ||||
| [](https://github.com/goauthentik/authentik/actions/workflows/ci-outpost.yml) | ||||
| [](https://github.com/goauthentik/authentik/actions/workflows/ci-web.yml) | ||||
| [](https://codecov.io/gh/goauthentik/authentik) | ||||
| [](https://goauthentik.testspace.com/) | ||||
|  | ||||
|  | ||||
| [](https://www.transifex.com/beryjuorg/authentik/) | ||||
|  | ||||
| @ -46,15 +46,13 @@ class AuthenticatorValidateStageDuoTests(FlowTestCase): | ||||
|         with patch( | ||||
|             "authentik.stages.authenticator_duo.models.AuthenticatorDuoStage.auth_client", | ||||
|             MagicMock( | ||||
|                 MagicMock( | ||||
|                     return_value=MagicMock( | ||||
|                         auth=MagicMock( | ||||
|                             return_value={ | ||||
|                                 "result": "allow", | ||||
|                                 "status": "allow", | ||||
|                                 "status_msg": "Success. Logging you in...", | ||||
|                             } | ||||
|                         ) | ||||
|                 return_value=MagicMock( | ||||
|                     auth=MagicMock( | ||||
|                         return_value={ | ||||
|                             "result": "allow", | ||||
|                             "status": "allow", | ||||
|                             "status_msg": "Success. Logging you in...", | ||||
|                         } | ||||
|                     ) | ||||
|                 ) | ||||
|             ), | ||||
|  | ||||
							
								
								
									
										1136
									
								
								poetry.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1136
									
								
								poetry.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -12,12 +12,12 @@ reportOptionalMemberAccess = false | ||||
| # so we have to disable those for now | ||||
| reportGeneralTypeIssues = false | ||||
| verboseOutput = false | ||||
| pythonVersion = "3.10" | ||||
| pythonVersion = "3.11" | ||||
| pythonPlatform = "All" | ||||
|  | ||||
| [tool.black] | ||||
| line-length = 100 | ||||
| target-version = ['py310'] | ||||
| target-version = ['py311'] | ||||
| exclude = 'node_modules' | ||||
|  | ||||
| [tool.isort] | ||||
| @ -136,7 +136,7 @@ paramiko = "*" | ||||
| psycopg2-binary = "*" | ||||
| pycryptodome = "*" | ||||
| pyjwt = "*" | ||||
| python = "^3.10" | ||||
| python = "^3.11" | ||||
| pyyaml = "*" | ||||
| requests-oauthlib = "*" | ||||
| sentry-sdk = "*" | ||||
|  | ||||
| @ -4,7 +4,7 @@ title: Full development environment | ||||
|  | ||||
| ## Requirements | ||||
|  | ||||
| -   Python 3.10 | ||||
| -   Python 3.11 | ||||
| -   poetry, which is used to manage dependencies, and can be installed with `pip install poetry` | ||||
| -   Go 1.18 | ||||
| -   PostgreSQL (any recent version will do) | ||||
|  | ||||
| @ -28,5 +28,5 @@ Update your values to use the new images: | ||||
| ```yaml | ||||
| image: | ||||
|     repository: ghcr.io/goauthentik/server | ||||
|     tag: xxxx.x.1 | ||||
|     tag: xxxx.x.0 | ||||
| ``` | ||||
|  | ||||
							
								
								
									
										34
									
								
								website/docs/releases/v2022.11.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								website/docs/releases/v2022.11.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| --- | ||||
| title: Release 2022.11 | ||||
| slug: "2022.11" | ||||
| --- | ||||
|  | ||||
| ## Breaking changes | ||||
|  | ||||
| -   authentik now runs on Python 3.11 | ||||
|  | ||||
| ## New features | ||||
|  | ||||
| ## API Changes | ||||
|  | ||||
| _Insert output of `make gen-diff` here_ | ||||
|  | ||||
| ## Minor changes/fixes | ||||
|  | ||||
| ## Upgrading | ||||
|  | ||||
| This release does not introduce any new requirements. | ||||
|  | ||||
| ### docker-compose | ||||
|  | ||||
| Download the docker-compose file for 2022.11 from [here](https://goauthentik.io/version/2022.11/docker-compose.yml). Afterwards, simply run `docker-compose up -d`. | ||||
|  | ||||
| ### Kubernetes | ||||
|  | ||||
| Update your values to use the new images: | ||||
|  | ||||
| ```yaml | ||||
| image: | ||||
|     repository: ghcr.io/goauthentik/server | ||||
|     tag: 2022.11.1 | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user
	![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) dependabot[bot]
					dependabot[bot]