Commit Graph

4015 Commits

Author SHA1 Message Date
Stefan Benz
416a35537f feat: actions context information add clientID (#10339)
# Which Problems Are Solved

There is no information contained in the context info sent to Actions
v2.

# How the Problems Are Solved

Add application information to the context information sent to Actions
v2, to give more information about the execution.

# Additional Changes

None

# Additional Context

Closes #9377
2025-07-29 00:08:12 +02:00
Livio Spring
5d2d1d6da6 feat(OIDC): handle logout hint on end_session_endpoint (#10039)
# Which Problems Are Solved

The OIDC session endpoint allows to pass a `id_token_hint` to identify
the session to terminate. In case the application is not able to pass
that, e.g. Console currently allows multiple sessions to be open, but
will only store the id_token of the current session, allowing to pass
the `logout_hint` to identify the user adds some new possibilities.

# How the Problems Are Solved

In case the end_session_endpoint is called with no `id_token_hint`, but
a `logout_hint` and the v2 login UI is configured, the information is
passed to the login UI also as `login_hint` parameter to allow the login
UI to determine the session to be terminated, resp. let the user decide.

# Additional Changes

Also added the `ui_locales` as parameter to handle and pass to the V2
login UI.

# Dependencies ⚠️ 

~These changes depend on https://github.com/zitadel/oidc/pull/774~

# Additional Context

closes #9847

---------

Co-authored-by: Marco Ardizzone <marco@zitadel.com>
2025-07-28 13:55:55 +00:00
Max Peintner
e4f633bcb3 chore: cleanup scripts, v1.3.1 @zitadel/client @zitadel/proto (#10329)
This PR includes scripts for cleaning up workspaces, and changes the
versions of @zitadel/client and /proto to v1.3.0
2025-07-28 13:32:41 +02:00
Elio Bischof
bc5c5789c8 setup buildx 2025-07-28 13:19:43 +02:00
Elio Bischof
94ecf2c2c0 depot 2025-07-26 14:31:30 +02:00
Elio Bischof
1eebde0b22 oidc 2025-07-26 14:23:13 +02:00
Elio Bischof
8c320fba17 depot 2025-07-26 14:21:23 +02:00
Elio Bischof
615a8d70b2 depot 2025-07-26 14:18:30 +02:00
Elio Bischof
ad77289e3e Merge branch 'main' into fix-login-integration 2025-07-26 11:20:02 +02:00
Elio Bischof
3070ed45c0 npm 2025-07-26 09:44:39 +02:00
Elio Bischof
3452ff2ab5 npm 2025-07-26 09:32:37 +02:00
Elio Bischof
1c559a316e fix login containers 2025-07-26 09:22:41 +02:00
Emma Henderson
1b7f95c364 docs: Changed externalUser() to externalUser in External Authentication documentation (#9982)
Changed externalUser() to externalUser in external-authentication.md
file.

<!--
Please inform yourself about the contribution guidelines on submitting a
PR here:
https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md#submit-a-pull-request-pr.
Take note of how PR/commit titles should be written and replace the
template texts in the sections below. Don't remove any of the sections.
It is important that the commit history clearly shows what is changed
and why.
Important: By submitting a contribution you agree to the terms from our
Licensing Policy as described here:
https://github.com/zitadel/zitadel/blob/main/LICENSING.md#community-contributions.
-->

# Which Problems Are Solved

Replace this example text with a concise list of problems that this PR
solves.
For example:
- External Authentication documentation states that to retrieve the
external user in the post authentication flow, use externalUser().
However, it needs to be externalUser (the method).

# How the Problems Are Solved

Replace this example text with a concise list of changes that this PR
introduces.
For example:
- Changing externalUser() to externalUser in the
external-authentication.md file solves this issue.

# Additional Changes

Replace this example text with a concise list of additional changes that
this PR introduces, that are not directly solving the initial problem
but are related.
For example:
- No additional changes were made.

# Additional Context

Replace this example with links to related issues, discussions, discord
threads, or other sources with more context.
Use the Closing #issue syntax for issues that are resolved with this PR.
- Closes #9893
2025-07-25 19:36:50 +00:00
Stefan Benz
f0fa89747d fix: actions v2beta with api design for GA (#10303)
# Which Problems Are Solved

Actions v2beta API does not adhere to the [API
design](https://github.com/zitadel/zitadel/blob/main/API_DESIGN.md)
fully.

# How the Problems Are Solved

- Correct body usage for ListExecutions
- Correct REST path for ListTargets and ListExecutions
- Correct attribute names for ListTargetsResponse and
ListExecutionsResponse

# Additional Changes

- Remove unused object import.

# Additional Context

Closes #10138

---------

Co-authored-by: Marco A. <marco@zitadel.com>
2025-07-25 16:20:58 +00:00
Elio Bischof
e0b0fd2128 fix workflow 2025-07-25 16:13:04 +02:00
Elio Bischof
bc580c9c85 reuse built prod image 2025-07-25 16:10:25 +02:00
Elio Bischof
6d22b90fa6 require login integration before release 2025-07-25 16:08:03 +02:00
Elio Bischof
15eee73df3 use gh runner 2025-07-25 15:59:13 +02:00
Elio Bischof
c041edac1f update main 2025-07-25 15:54:22 +02:00
Elio Bischof
cf1941f028 integration on localhost 2025-07-25 15:48:37 +02:00
Elio Bischof
7e04fc5dcf call integration test workflow 2025-07-25 14:21:26 +02:00
Max Peintner
c46fd01947 fix(packages): cjs, and module resolution fix (#10322)
This PR introduces CJS support for @zitadel/client and @zitadel/proto
from https://github.com/zitadel/zitadel/pull/10290
and fixes a module resolution error of @zitadel/client

---------

Co-authored-by: reluc <relu.cri@gmail.com>
2025-07-25 11:42:48 +00:00
Elio Bischof
78798013f3 timeouts 2025-07-25 13:35:10 +02:00
Elio Bischof
7a9e4bc84c fix dev container 2025-07-25 02:08:57 +02:00
Elio Bischof
8129632461 Merge branch 'main' into fix-login-integration 2025-07-25 01:01:12 +02:00
Elio Bischof
8ca26d69a7 fix runs and contexts 2025-07-25 01:00:36 +02:00
Elio Bischof
b43c627c74 chore: remove redundant readme (#10324)
# Which Problems Are Solved

Since #10305 we have the following two files in `/apps/login`
- /apps/login/README.md
- /apps/login/readme.md

This confused case insensitive file systems, causing strange Git
behavior.

# How the Problems Are Solved

We remove the obsolete /apps/login/README.md file.
2025-07-24 22:29:38 +00:00
Elio Bischof
ef94668136 chore: use ephemeral GitHub runners (#10325)
# Which Problems Are Solved

The persistent depot runner lost connection to GitHub.

# How the Problems Are Solved

We mitigate by switching to GitHub ephemeral runners.

# Additional Context

- Example of a failing run
https://github.com/zitadel/zitadel/actions/runs/16505756293/job/46675827321
- Might be caused by
https://github.com/zitadel/zitadel/actions/runs/16500656577/job/46658046270
2025-07-24 21:24:56 +00:00
Elio Bischof
eb8271a01d no pnpm cache 2025-07-24 22:29:17 +02:00
Gayathri Vijayan
fe3ccc85d6 fix: invite code generation after multiple verification failures (#10323)
<!--
Please inform yourself about the contribution guidelines on submitting a
PR here:
https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md#submit-a-pull-request-pr.
Take note of how PR/commit titles should be written and replace the
template texts in the sections below. Don't remove any of the sections.
It is important that the commit history clearly shows what is changed
and why.
Important: By submitting a contribution you agree to the terms from our
Licensing Policy as described here:
https://github.com/zitadel/zitadel/blob/main/LICENSING.md#community-contributions.
-->

# Which Problems Are Solved

If a wrong verification code is used three or more times during
verification, or if the verification code is expired, the user state is
marked as
[deleted](https://github.com/zitadel/zitadel/blob/main/internal/command/user_v2_invite_model.go#L69).
This prevents the creation of a new code with the following
[error](https://github.com/zitadel/zitadel/blob/main/internal/command/user_v2_invite.go#L60):
`Errors.User.NotFound`.
This PR aims to fix this bug.  

# How the Problems Are Solved

This issue is solved by invalidating the previously issued invite code
and setting the value of `UserV2InviteWriteModel.CodeReturned` as
`false`

# Additional Changes
N/A

# Additional Context
- Closes #9860 
- Follow-up: API doc update
2025-07-24 21:09:48 +02:00
Elio Bischof
a581670ac9 root 2025-07-24 19:06:20 +02:00
Elio Bischof
7b8cc2934e cache target dir 2025-07-24 18:53:26 +02:00
Elio Bischof
2dab3eae49 devcontainer build ctx 2025-07-24 18:49:25 +02:00
Elio Bischof
30f22a0013 tmp store 2025-07-24 17:07:40 +02:00
Elio Bischof
9171459403 use npm 2025-07-24 16:43:34 +02:00
Elio Bischof
4e614df637 use depot persistent build cache 2025-07-24 16:32:01 +02:00
Elio Bischof
c98bddfae1 npm run 2025-07-24 16:18:49 +02:00
Elio Bischof
b6346446ff npm store as build cache 2025-07-24 16:13:13 +02:00
Elio Bischof
33d3dac6e5 PNPM_HOME 2025-07-24 16:01:23 +02:00
Elio Bischof
47d658cf45 use npm for devcontainer cli 2025-07-24 15:56:31 +02:00
Elio Bischof
f43ffa2010 run the pipeline like in dev 2025-07-24 15:20:56 +02:00
Elio Bischof
dbe2c7aa48 pnpm version 2025-07-24 14:53:15 +02:00
Elio Bischof
2c50f0efd4 pnpm binary 2025-07-24 14:49:10 +02:00
Elio Bischof
7a7b46e02d lock 2025-07-24 14:40:12 +02:00
Elio Bischof
0781e21805 update main 2025-07-24 14:37:31 +02:00
Elio Bischof
b10455b51f chore: reproducible pipeline with dev containers (#10305)
# Which Problems Are Solved

- The previous monorepo in monorepo structure for the login app and its
related packages was fragmented, complicated and buggy.
- The process for building and testing the login container was
inconsistent between local development and CI.
- Lack of clear documentation as well as easy and reliable ways for
non-frontend developers to reproduce and fix failing PR checks locally.

# How the Problems Are Solved

- Consolidated the login app and its related npm packages by moving the
main package to `apps/login/apps/login` and merging
`apps/login/packages/integration` and `apps/login/packages/acceptance`
into the main `apps/login` package.
- Migrated from Docker Compose-based test setups to dev container-based
setups, adding support for multiple dev container configurations:
  - `.devcontainer/base`
  - `.devcontainer/turbo-lint-unit`
  - `.devcontainer/turbo-lint-unit-debug`
  - `.devcontainer/login-integration`
  - `.devcontainer/login-integration-debug`
- Added npm scripts to run the new dev container setups, enabling exact
reproduction of GitHub PR checks locally, and updated the pipeline to
use these containers.
- Cleaned up Dockerfiles and docker-bake.hcl files to only build the
production image for the login app.
- Cleaned up compose files to focus on dev environments in dev
containers.
- Updated `CONTRIBUTING.md` with guidance on running and debugging PR
checks locally using the new dev container approach.
- Introduced separate Dockerfiles for the login app to distinguish
between using published client packages and building clients from local
protos.
- Ensured the login container is always built in the pipeline for use in
integration and acceptance tests.
- Updated Makefile and GitHub Actions workflows to use
`--frozen-lockfile` for installing pnpm packages, ensuring reproducible
installs.
- Disabled GitHub release creation by the changeset action.
- Refactored the `/build` directory structure for clarity and
maintainability.
- Added a `clean` command to `docks/package.json`.
- Experimentally added `knip` to the `zitadel-client` package for
improved linting of dependencies and exports.

# Additional Changes

- Fixed Makefile commands for consistency and reliability.
- Improved the structure and clarity of the `/build` directory to
support seamless integration of the login build.
- Enhanced documentation and developer experience for running and
debugging CI checks locally.

# Additional Context

- See updated `CONTRIBUTING.md` for new local development and debugging
instructions.
- These changes are a prerequisite for further improvements to the CI
pipeline and local development workflow.
- Closes #10276
2025-07-24 14:22:32 +02:00
Elio Bischof
33d08860bc ci 2025-07-24 14:03:54 +02:00
Elio Bischof
6ae1db50ad review 2025-07-24 11:20:35 +02:00
Elio Bischof
426656ea47 pnpm generate 2025-07-24 08:17:43 +00:00
Elio Bischof
774b075b77 fix proto generation 2025-07-24 02:34:33 +02:00