Commit Graph

6037 Commits

Author SHA1 Message Date
Stefan Benz
ad225836d5 chore: deprecated skip-dirs move to exclude-dirs (#9370)
Moved the deprecated skip-dirs option to the exclude-dirs
2025-02-17 16:06:55 +00:00
Iraq
0cb0380826 feat: updating eventstore.permitted_orgs sql function (#9309)
# Which Problems Are Solved

Performance issue for GRPC call `zitadel.user.v2.UserService.ListUsers`
due to lack of org filtering on `ListUsers`

# 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 https://github.com/zitadel/zitadel/issues/9191

---------

Co-authored-by: Iraq Jaber <IraqJaber@gmail.com>
Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
2025-02-17 11:55:28 +02:00
Max Peintner
762993bd41 cleanup 2025-02-17 09:51:26 +01:00
Max Peintner
ee898c447d login route handler 2025-02-17 09:23:46 +01:00
Max Peintner
734426c116 fix build 2025-02-17 09:09:55 +01:00
Max Peintner
ba3c3d596d form post 2025-02-14 16:38:03 +01:00
Max Peintner
8bd673dd28 Merge branch 'main' into saml-2 2025-02-14 13:41:16 +01:00
Max Peintner
5c5a8d5395 Merge pull request #366 from zitadel/dev
fix(multitenancy): remove region context, nextjs specific context for cloud run
2025-02-14 12:19:29 +01:00
Elio Bischof
4969a665ad fix path 2025-02-14 12:03:07 +01:00
Fabienne Bühler
7c96dcd9a2 docs: update readme with features and new login gif (#9357)
# Which Problems Are Solved

SCIM 2.0 Server was not listed in the readme of Zitadel
New Login was not listed

# How the Problems Are Solved

Added scim 2.0 as a feature to the list
Added new login, including a gif to showcase
2025-02-14 10:48:16 +00:00
Max Peintner
7d249bfcdc lint 2025-02-14 11:47:51 +01:00
Elio Bischof
59f7f0b9d7 Reapply "enable static api url"
This reverts commit beffae47af.
2025-02-14 11:43:51 +01:00
Max Peintner
4a791c5d24 allow hostname *.zitadel.* as image source 2025-02-14 08:48:03 +01:00
Max Peintner
37e98b61e8 lint 2025-02-14 08:30:15 +01:00
Max Peintner
3088198613 remove headers route 2025-02-14 08:23:08 +01:00
Max Peintner
c2041abca1 Update apps/login/src/app/login/route.ts
Co-authored-by: Elio Bischof <elio@zitadel.com>
2025-02-14 08:22:09 +01:00
Max Peintner
9050d9bf50 Update .github/workflows/docker.yml
Co-authored-by: Elio Bischof <elio@zitadel.com>
2025-02-14 08:22:02 +01:00
Max Peintner
601b441a8e Update apps/login/src/lib/service.ts
Co-authored-by: Elio Bischof <elio@zitadel.com>
2025-02-14 08:21:51 +01:00
Max Peintner
c5884b2d8d Update apps/login/src/lib/service.ts
Co-authored-by: Elio Bischof <elio@zitadel.com>
2025-02-14 08:21:44 +01:00
Max Peintner
870736fe9e Update apps/login/src/lib/service.ts
Co-authored-by: Elio Bischof <elio@zitadel.com>
2025-02-14 08:21:37 +01:00
Elio Bischof
c2ad1712ae cleanup regional env vars 2025-02-14 07:26:55 +01:00
Elio Bischof
beffae47af Revert "enable static api url"
This reverts commit 20c170bbd5.
2025-02-14 07:25:40 +01:00
Elio Bischof
20c170bbd5 enable static api url 2025-02-13 21:47:56 +01:00
Stefan Benz
49de5c61b2 feat: saml application configuration for login version (#9351)
# Which Problems Are Solved

OIDC applications can configure the used login version, which is
currently not possible for SAML applications.

# How the Problems Are Solved

Add the same functionality dependent on the feature-flag for SAML
applications.

# Additional Changes

None

# Additional Context

Closes #9267
Follow up issue for frontend changes #9354

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2025-02-13 16:03:05 +00:00
Max Peintner
f0d5d17de4 Merge branch 'main' into dev 2025-02-13 10:33:23 +01:00
Max Peintner
72f1b7cca4 cleanup 2025-02-13 10:33:01 +01:00
Max Peintner
3696978824 lint 2025-02-13 10:31:21 +01:00
Iraq
66296db971 fix: custom userID not being added when specified in zitadel.org.v2.AddOrganizationRequest.AddOrganization() request (#9334)
# Which Problems Are Solved

When specifying a `user_id` as a human admin in
`zitadel.org.v2.AddOrganizationRequest.AddOrganization()` the `user_id`
specified in the request should have been used, before it was being
ignored, this has been fixed with this PR

# Additional Context
- Closes https://github.com/zitadel/zitadel/issues/9308

---------

Co-authored-by: Iraq Jaber <IraqJaber@gmail.com>
2025-02-13 09:17:05 +00:00
Elio Bischof
1c3d0db5ee Merge branch 'dev' of github.com:zitadel/typescript into dev 2025-02-12 18:14:09 +01:00
Elio Bischof
0e52f989e9 fall back to host 2025-02-12 18:14:01 +01:00
Iraq
bd4e53314d doc: Updating LDAP config documentation (#9303)
# Which Problems Are Solved

Adding `docker-compose` setup to
[docs/docs/guides/integrate/identity-providers/openldap.mdx](https://github.com/zitadel/zitadel/compare/ldap_doc?expand=1#diff-6105dfa1b0b954ae5a6c914edaa6912715a1bba75bf75b1a722043edb8d429f9)

---------

Co-authored-by: Iraq Jaber <IraqJaber@gmail.com>
Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
2025-02-12 15:50:56 +00:00
Silvan
415bc32ed6 feat: add task queue (#9321)
# Which Problems Are Solved

To integrate river as a task queue we need to ensure the migrations of
river are executed.

# How the Problems Are Solved

- A new schema was added to the Zitadel database called "queue"
- Added a repeatable setup step to Zitadel which executes the
[migrations of
river](https://riverqueue.com/docs/migrations#go-migration-api).

# Additional Changes

- Added more hooks to the databases to properly set the schema for the
task queue

# Additional Context

- Closes https://github.com/zitadel/zitadel/issues/9280
2025-02-12 14:51:55 +00:00
Max Peintner
6c56efeea7 build:standalone for docker 2025-02-12 13:51:43 +01:00
Max Peintner
b91785b09e remove region context 2025-02-12 13:35:04 +01:00
Stefan Benz
0ea42f1ddf fix: no project owner at project creation and cleanup (#9317)
# Which Problems Are Solved

Project creation always requires a user as project owner, in case of a
system user creating the project, there is no valid user existing at
that moment.

# How the Problems Are Solved

Remove the initially created project owner membership, as this is
something which was necessary in old versions, and all should work
perfectly without.
The call to add a project automatically designates the calling user as
the project owner, which is irrelevant currently, as this user always
already has higher permissions to be able to even create the project.

# Additional Changes

Cleanup of the existing checks for the project, which can be improved
through the usage of the fields table.

# Additional Context

Closes #9182
2025-02-12 11:48:28 +00:00
Tim Möhlmann
bcc6a689fa fix(setup): use template for in_tx_order type (#9346)
# Which Problems Are Solved

Systems running with PostgreSQL before Zitadel v2.39 are likely to have
a wrong type for the `in_tx_order` column in the `eventstore.event2`
table. The migration at the time used the `event_sequence` as default
value without typecast, which results in a `bigint` type for that
column. However, when creating the table from scratch, we explicitly
specify the type to be `integer`.

Starting from Zitadel v2.67 we use a Pl/PgSQL function to push events.
The function requires the types from `eventstore.events2` to the same as
the `select` destinations used in the function. In the function
`in_tx_order` is also expected to by of `integer` type.

CochroachDB systems are not affected because `bigint` is an alias to the
`int` type. In other words, CockroachDB uses `int8` when specifying type
`int`. Therefore the types already match.

# How the Problems Are Solved

Retrieve the actual column type currently in use. A template is used to
assign the type to the `ordinality` column returned as `in_tx_order`.

# Additional Changes

- Detailed logging on migration failure

# Additional Context

- Closes #9180

---------

Co-authored-by: Silvan <27845747+adlerhurst@users.noreply.github.com>
2025-02-12 11:06:34 +00:00
Stefan Benz
39a7977e34 test: session v2beta corrected like v2 (#9350)
# Which Problems Are Solved

Ordering of sessions in v2beta is still relevant in the integration
tests.

# How the Problems Are Solved

Correct the integration tests on session service v2beta like in v2.

# Additional Changes

None

# Additional Context

Failing integration tests in pipeline.
2025-02-12 10:46:14 +00:00
Elio Bischof
533e8a2360 allow .env in different folder 2025-02-11 21:14:43 +01:00
Stefan Benz
840da5be2d feat: permission check on OIDC and SAML service session API (#9304)
# Which Problems Are Solved

Through configuration on projects, there can be additional permission
checks enabled through an OIDC or SAML flow, which were not included in
the OIDC and SAML services.

# How the Problems Are Solved

Add permission check through the query-side of Zitadel in a singular SQL
query, when an OIDC or SAML flow should be linked to a SSO session. That
way it is eventual consistent, but will not impact the performance on
the eventstore. The permission check is defined in the API, which
provides the necessary function to the command side.

# Additional Changes

Added integration tests for the permission check on OIDC and SAML
service for every combination.
Corrected session list integration test, to content checks without
ordering.
Corrected get auth and saml request integration tests, to check for
timestamp of creation, not start of test.

# Additional Context

Closes #9265

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2025-02-11 18:45:09 +00:00
Vlad Zagvozdkin
13f9d2d142 Add uid to few events (#9332)
# Which Problems Are Solved

When implementing simple stateless event processor, `the
user.grant.changed` bears too little information: just grant id and list
of role keys. This makes it impossible to change a users permissions
solely based on available role keys and requires to either:

- Store a mapping grant id -> user id, making a service stateful
- Make an extra call to zitadel to resolve user id by grant id (And it
doesn't seem that such an endpoint exists)

Same with `user.grant.removed` events.

# How the Problems Are Solved

Added `userId` field to `user.grant.changed` and `user.grant.removed`
events

# Additional Changes

`user.grant.removed` now has `projectId` and `grantId` as well

# Additional Context

- Closes #9113
2025-02-11 18:09:50 +00:00
Elio Bischof
c74e825495 try symlink 2025-02-11 19:01:24 +01:00
Fabienne Bühler
6ef0fcb4d6 docs: Mark beta features (#9337)
# Which Problems Are Solved

Currently it is not always obvious if a feature is in beta state, also I
don't know where I can add my feedback if I test the feature.

# How the Problems Are Solved

- Mark beta features with [beta] in sidenav
- Add note on feature description where to add feedback
2025-02-11 19:55:03 +02:00
Elio Bischof
269b7df90f use repo pnpm version 2025-02-11 17:49:38 +01:00
Elio Bischof
cc2f603a67 docker 2025-02-11 17:48:11 +01:00
Jim Morrison
824228736c docs: Zitadel README.md Community Call Ref (#9339)
# Which Problems Are Solved
Removal of Community Call reference for the moment until further
reviewed on next steps forward from group.


# How the Problems Are Solved

Removed table and text of Community call out.
2025-02-11 08:52:38 +01:00
Elio Bischof
6f30c8a2ac Merge branch 'dev' of github.com:zitadel/typescript into dev 2025-02-10 17:55:03 +01:00
Max Peintner
78a6c1765d fix condition 2025-02-10 17:55:00 +01:00
Elio Bischof
28d7887c09 Merge branch 'dev' of github.com:zitadel/typescript into dev 2025-02-10 17:46:39 +01:00
Max Peintner
cc356d868e check for forward-host again 2025-02-10 17:45:53 +01:00
Elio Bischof
fd05df93a0 Merge branch 'dev' of github.com:zitadel/typescript into dev 2025-02-10 17:41:28 +01:00