Commit Graph

6037 Commits

Author SHA1 Message Date
Max Peintner
b7ac828a0f Merge pull request #337 from zitadel/acceptence-tests
test: acceptence tests
2025-01-10 12:48:27 +01:00
Max Peintner
de407cd3d0 trigger 2025-01-10 12:46:24 +01:00
Lars
9c7f2a7d50 feat: get user scim v2 endpoint (#9161)
# Which Problems Are Solved
- Adds support for the get user SCIM v2 endpoint

# How the Problems Are Solved
- Adds support for the get user SCIM v2 endpoint under `GET
/scim/v2/{orgID}/Users/{id}`

# Additional Context
Part of #8140
Replaces https://github.com/zitadel/zitadel/pull/9154 as requested by
the maintainers, discussions see
https://github.com/zitadel/zitadel/pull/9154.
2025-01-10 11:15:06 +00:00
Denis Dvornikov
b0bcb051fc docs: update external-login.mdx according to api spec (#9058)
# Which Problems Are Solved

Documentation update

# Additional Context

The guide is outdate, a few fields from the given example confuse and
must be update according to the api spec:
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-add-human-user

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2025-01-10 10:30:26 +00:00
github-actions[bot]
b358f49ff8 Version Packages 2025-01-10 08:45:44 +00:00
Max Peintner
44ce3ac662 Merge pull request #336 from zitadel/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2025-01-10 09:45:10 +01:00
Stefan Benz
3443482d2b test: add verify email and password change required 2025-01-09 15:49:44 +01:00
Stefan Benz
11c6c9ed16 test: add verify email and password change required 2025-01-09 15:42:30 +01:00
Lars
af09e51b1e feat: delete user scim v2 endpoint (#9151)
# Which Problems Are Solved
- Adds support for the user delete SCIM v2 endpoint

# How the Problems Are Solved
- Adds support for the user delete SCIM v2 endpoint under `DELETE
/scim/v2/{orgID}/Users/{id}`

# Additional Context
Part of #8140
2025-01-09 15:12:13 +01:00
Max Peintner
a85e3b1d3b clean 2025-01-09 14:48:48 +01:00
Max Peintner
21f59826d1 fix result 2025-01-09 14:48:18 +01:00
dependabot[bot]
0b6f245135 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-09 13:38:02 +00:00
Max Peintner
e554c383c4 cleanup 2025-01-09 14:12:49 +01:00
Max Peintner
c7a31b6b43 suffix search 2025-01-09 14:01:46 +01:00
Max Peintner
dc6454bc7d implement org suffix 2025-01-09 13:38:00 +01:00
Lars
e621224ab2 feat: create user scim v2 endpoint (#9132)
# Which Problems Are Solved
- Adds infrastructure code (basic implementation, error handling,
middlewares, ...) to implement the SCIM v2 interface
- Adds support for the user create SCIM v2 endpoint

# How the Problems Are Solved
- Adds support for the user create SCIM v2 endpoint under `POST
/scim/v2/{orgID}/Users`

# Additional Context

Part of #8140
2025-01-09 12:46:36 +01:00
Max Peintner
c93f21174b rm logs 2025-01-09 10:05:32 +01:00
Max Peintner
36b6362974 recheck settings 2025-01-09 09:47:58 +01:00
Max Peintner
3809b8dc93 change search user 2025-01-09 09:38:29 +01:00
Max Peintner
dd3e501817 Merge branch 'main' into user-discovery 2025-01-09 08:48:42 +01:00
Silvan
829f4543da perf(eventstore): redefine current sequences index (#9142)
# Which Problems Are Solved

On Zitadel cloud we found changing the order of columns in the
`eventstore.events2_current_sequence` index improved CPU usage for the
`SELECT ... FOR UPDATE` query the pusher executes.

# How the Problems Are Solved

`eventstore.events2_current_sequence`-index got replaced

# Additional Context

closes https://github.com/zitadel/zitadel/issues/9082
2025-01-08 16:54:17 +00:00
Elio Bischof
a56afd0d32 Merge pull request #334 from zitadel/fix-missing-client-transport
fix: add grpc-web transport, fix release pnpm version
2025-01-08 15:43:18 +01:00
Max Peintner
1c668f278c revert pnpm version 2025-01-08 15:00:35 +01:00
Max Peintner
7703685b84 ? 2025-01-08 14:57:09 +01:00
Max Peintner
82efbb7824 Merge branch 'main' into user-discovery 2025-01-08 14:42:00 +01:00
Max Peintner
ef1c8013eb add grpc-web transport, fix release pnpm version 2025-01-08 14:20:16 +01:00
Max Peintner
6ce3b62dc2 Merge pull request #333 from zitadel/release-fix
chore(release-workflow): setup pnpm
2025-01-08 14:15:01 +01:00
Max Peintner
84972ef8c3 Merge branch 'main' into release-fix 2025-01-08 14:08:01 +01:00
Max Peintner
665df33fb0 Merge pull request #332 from zitadel/1.0.2
publish /client and /proto v1.0.2
2025-01-08 14:07:48 +01:00
Max Peintner
e8797524da Merge branch 'main' into 1.0.2 2025-01-08 13:12:19 +01:00
Tim Möhlmann
df2c6f1d4c perf(eventstore): optimize commands to events function (#9092)
# Which Problems Are Solved

We were seeing high query costs in a the lateral join executed in the
commands_to_events procedural function in the database. The high cost
resulted in incremental CPU usage as a load test continued and less
req/sec handled, sarting at 836 and ending at 130 req/sec.

# How the Problems Are Solved

1. Set `PARALLEL SAFE`. I noticed that this option defaults to `UNSAFE`.
But it's actually safe if the function doesn't `INSERT`
2. Set the returned `ROWS 10` parameter.
3. Function is re-written in Pl/PgSQL so that we eliminate expensive
joins.
4. Introduced an intermediate state that does `SELECT DISTINCT` for the
aggregate so that we don't have to do an expensive lateral join.

# Additional Changes

Use a `COALESCE` to get the owner from the last event, instead of a
`CASE` switch.

# Additional Context

- Function was introduced in
https://github.com/zitadel/zitadel/pull/8816
- Closes https://github.com/zitadel/zitadel/issues/8352

---------

Co-authored-by: Silvan <27845747+adlerhurst@users.noreply.github.com>
2025-01-08 11:59:44 +00:00
Livio Spring
c966446f80 fix: correctly get x-forwarded-for for browser info in events (#9149)
# Which Problems Are Solved

Events like "password check succeeded" store some information about the
caller including their IP.
The `X-Forwarded-For` was not correctly logged, but instead the
RemoteAddress.

# How the Problems Are Solved

- Correctly get the `X-Forwarded-For` in canonical form.

# Additional Changes

None

# Additional Context

closes [#9106](https://github.com/zitadel/zitadel/issues/9106)
2025-01-08 09:30:12 +00:00
Max Peintner
5ea893ea70 Merge branch 'main' into user-discovery 2025-01-08 09:55:22 +01:00
Max Peintner
a7acca52ca update zitadel binary 2025-01-08 09:54:43 +01:00
Max Peintner
c923e87ac9 Merge pull request #86 from zitadel/dependabot/github_actions/actions/add-to-project-1.0.2
Bump actions/add-to-project from 0.5.0 to 1.0.2
2025-01-08 09:54:09 +01:00
Max Peintner
2f94e873eb Merge branch 'main' into user-discovery 2025-01-08 09:51:18 +01:00
Max Peintner
1337986186 Merge branch 'main' into dependabot/github_actions/actions/add-to-project-1.0.2 2025-01-08 09:45:05 +01:00
Tim Möhlmann
db8d794794 fix(oidc): ignore algorithm for legacy signer (#9148)
# Which Problems Are Solved

It was possible to set a diffent algorithm for the legacy signer. This
is not supported howerver and breaks the token endpoint.

# How the Problems Are Solved

Remove the OIDC.SigningKeyAlgorithm config option and hard-code RS256
for the legacy signer.

# Additional Changes

- none

# Additional Context

Only RS256 is supported by the legacy signer. It was mentioned in the
comment of the config not to use it and use the webkeys resource
instead.

- closes #9121
2025-01-08 08:40:33 +00:00
Max Peintner
c9136d481c fix: setup pnpm 2025-01-08 09:26:15 +01:00
Max Peintner
e20c7e8cd7 publish /client and /proto v1.0.2 2025-01-08 09:14:48 +01:00
Max Peintner
56db60b8d0 Merge pull request #330 from LufyCZ/proto-include-validate-folder
fix: include validate folder in proto release
2025-01-08 09:11:34 +01:00
Max Peintner
289daab51c Merge branch 'main' into proto-include-validate-folder 2025-01-08 09:04:23 +01:00
Alexey Morozov
42cc6dce79 fix(i18n): typo in Russian login description (#9100)
# Which Problems Are Solved

Typo in RU localization on login page.

# How the Problems Are Solved

Fixed typo by replacing to correct text.

# Additional Changes

n/a

# Additional Context

n/a

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
2025-01-07 20:32:19 +00:00
Stefan Benz
8d8f38fb4c fix: only allowed idps in login step (#9136)
# Which Problems Are Solved

If a not allowed IDP is selected or now not allowed IDP was selected
before at login, the login will still try to use it as fallback.
The same goes for the linked IDPs which are not necessarily active
anymore, or disallowed through policies.

# How the Problems Are Solved

Check all possible or configured IDPs if they can be used.

# Additional Changes

None

# Additional Context

Addition to #6466

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2025-01-07 16:34:59 +00:00
Silvan
f320d18b1a perf(fields): create index for instance domain query (#9146)
# Which Problems Are Solved

get instance by domain cannot provide an instance id because it is not
known at that time. This causes a full table scan on the fields table
because current indexes always include the `instance_id` column.

# How the Problems Are Solved

Added a specific index for this query.

# Additional Context

If a system has many fields and there is no cache hit for the given
domain this query can heaviuly influence database CPU usage, the newly
added resolves this problem.
2025-01-07 16:06:33 +00:00
Elio Bischof
11d36fcd00 feat(console): allow to configure PostHog (#9135)
# Which Problems Are Solved

The console has no information about where and how to send PostHog
events.

# How the Problems Are Solved

A PostHog API URL and token are passed through as plain text from the
Zitadel runtime config to the environment.json. By default, no values
are configured and the keys in the environment.json are omitted.

# Additional Context

- Closes https://github.com/zitadel/zitadel/issues/9070
- Complements https://github.com/zitadel/zitadel/pull/9077
2025-01-07 14:38:13 +00:00
Tim Möhlmann
56427cca50 fix(cache): convert expiry to number (#9143)
# Which Problems Are Solved

When `LastUseAge` was configured properly, the Redis LUA script uses
manual cleanup for `MaxAge` based expiry. The expiry obtained from Redis
apears to be a string and was compared to an int, resulting in a script
error.

# How the Problems Are Solved

Convert expiry to number.

# Additional Changes

- none

# Additional Context

- Introduced in #8822
- LastUseAge was fixed in #9097
- closes https://github.com/zitadel/zitadel/issues/9140
2025-01-07 12:51:06 +01:00
Florian Forster
a54bb2977b docs: change scope for zitadel audience (#9117)
# Which Problems Are Solved

- This replaces the old aud claim from Zitadel in two places.

# Additional Context

- Relates to [this discord
thread](https://discord.com/channels/927474939156643850/1305853084743766067)
2025-01-07 09:12:39 +00:00
Oleg Lavrovsky
c687d6769b docs(adopters):Dribdat (#9021)
Added a note on Zitadel support in Dribdat, which explicitly mentions it
in the [install notes](https://dribdat.cc/deploy.html#authentication)
and soon in a blog post or screencast.

---------

Co-authored-by: Swarna Podila <swarnap@users.noreply.github.com>
2025-01-06 23:21:09 +00:00
Livio Spring
8d7a1efd4a fix(idp): correctly get data from cache before parsing (#9134)
# Which Problems Are Solved

IdPs using form callback were not always correctly handled with the
newly introduced cache mechanism
(https://github.com/zitadel/zitadel/pull/9097).

# How the Problems Are Solved

Get the data from cache before parsing it.

# Additional Changes

None

# Additional Context

Relates to https://github.com/zitadel/zitadel/pull/9097
2025-01-06 14:48:32 +01:00