Commit Graph
100 Commits
Author SHA1 Message Date
Livio SpringandGitHub 4c945f8bdc chore(workflow): stop previous GH action pipeline on new changes and move back to public runners (#7659)
* chore(workflow): stop previous GH action pipeline on new changes

* skip previous code ql actions

* try running e2e on gh runner again
2024-03-28 07:15:03 +00:00
Livio SpringandGitHub 1e53aab4b4 fix: properly handle otp sms challenge notification in session api (#7653)
* fix: properly handle otp sms challenge notification in session api

* small fix
2024-03-27 19:48:14 +02:00
Livio SpringandGitHub 841e79357a fix: detect mime type of uploaded asset (#7648) 2024-03-27 10:41:10 +01:00
Livio SpringandGitHub 1121ebfdb8 fix: prevent custom urn:zitadel:iam claims (#7647) 2024-03-27 08:26:14 +01:00
Livio SpringandGitHub a83829b5ff fix(API): remove deprecated organisation_id from user factor in session service (#7631) 2024-03-26 11:25:40 +00:00
Livio SpringandGitHub 30ff0dd1ed chore: update stable to 2.42.16 (#7629) 2024-03-25 08:53:04 +00:00
Livio SpringandGitHub 2bcc42c4cd chore(workflow): fix homebrew update (#7630) 2024-03-25 09:29:54 +01:00
Livio SpringandGitHub d313e6d498 fix(setup): enable init-projection by default (#7616)
* fix(setup): enable init-projection by default

* update A10008
2024-03-23 12:52:52 +01:00
Livio SpringandGitHub 7494a7b6d9 feat(api): add possibility to retrieve user schemas (#7614)
This PR extends the user schema service (V3 API) with the possibility to ListUserSchemas and GetUserSchemaByID.
The previously started guide is extended to demonstrate how to retrieve the schema(s) and notes the generated revision property.
2024-03-22 13:26:13 +00:00
Livio SpringandGitHub 7e24a1adbc fix: allow login by email case-insensitive (#7578)
A customer noted that the login by email was case-sensitive, which differs to the handling of the loginname.

This PR changes the email check to be case-insensitive (which it was already in same parts) and improve the search for this as well.
2024-03-20 15:51:26 +00:00
Livio SpringandGitHub b2d7352a5a fix(login): display username after registration with idp (#7598)
It was noticed multiple time (incl. customers) that the loginname is sometimes not rendered in the UI.

This PR fixes such an issue after registration of a new user from an IdP.
2024-03-20 15:02:57 +01:00
Livio SpringandGitHub 6c3f48f496 fix(login): (re)allow HTML in custom login texts (#7575)
fix: allow HTML in custom login texts
2024-03-15 16:29:10 +01:00
Livio SpringandGitHub 529b52f028 chore: update stable to 2.41.x (#7547) 2024-03-15 08:17:40 +00:00
Livio SpringandGitHub 20d1d56669 fix: enable resend code in user initialization without auth request (#7568) 2024-03-15 06:50:55 +01:00
Livio SpringandGitHub bbb4dea0bd chore: fix artifact upload for container build (#7565) 2024-03-14 11:10:53 +00:00
Livio SpringandGitHub 5d2cfc06d5 chore: update github actions (#7564) 2024-03-14 09:26:31 +00:00
Livio SpringandGitHub 252e59d5cd fix: get orgID when missing on trigger logs (#7555) 2024-03-14 08:49:10 +00:00
Livio SpringandGitHub 266abcb23b docs: describe session validation (#7548)
* docs: describe session validation

* typo

* resolve comments
2024-03-13 07:24:33 +00:00
Livio SpringandGitHub a28b3a1c2d fix: rendering of TOTP QR code (#7549) 2024-03-12 16:20:42 +00:00
Livio SpringandGitHub 0e181b218c feat: implement user schema management (#7416)
This PR adds the functionality to manage user schemas through the new user schema service.
It includes the possibility to create a basic JSON schema and also provides a way on defining permissions (read, write) for owner and self context with an annotation.

Further annotations for OIDC claims and SAML attribute mappings will follow.

A guide on how to create a schema and assign permissions has been started. It will be extended though out the process of implementing the schema and users based on those.

Note:
This feature is in an early stage and therefore not enabled by default. To test it out, please enable the UserSchema feature flag on your instance / system though the feature service.
2024-03-12 13:50:13 +00:00
Livio SpringandGitHub 860b80c9ee refactor: copy only required frameworks icons from docs in console (#7538) 2024-03-11 08:33:05 +00:00
Livio SpringandGitHub 07ec2efa9d fix: use correct template package (#7522) 2024-03-11 07:52:02 +01:00
Livio SpringandGitHub 98bd355ce2 chore(workflow): update github actions (#7508) 2024-03-07 15:38:38 +00:00
ef8d0c86f7 chore: update stable (#7370)
* chore: update stable

* Update release-channels.yaml

---------

Co-authored-by: Silvan <[email protected]>
2024-02-29 16:13:20 +00:00
Livio SpringandGitHub 60a73df459 chore: add github-actions to dependabot (#7468) 2024-02-29 09:17:38 +00:00
Livio SpringandGitHub 68af4f59c9 fix(api): handle user disabling events correctly in session API (#7380)
This PR makes sure that user disabling events (deactivate, locked, ...) are correctly checked for sessions.
2024-02-28 09:30:05 +00:00
b877abd7a2 fix(login): ignore domain suffix for email / phone check (#7446)
Co-authored-by: Tim Möhlmann <[email protected]>
2024-02-26 14:05:18 +00:00
Livio SpringandGitHub 462f5462dc docs: improve apis description (#7400)
* docs: improve apis description

* focus on version

* link to state
2024-02-19 15:39:36 +01:00
00d245eaf3 chore(codeql): use go version from go.mod (#6807)
* chore(codeql): use go version from go.mod

* try 2.15.0 explicitly

* tag version

* Update codeql.yml

* Update codeql.yml

* try make

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* use make compile and remove matrix check

* Update codeql.yml

* Update codeql.yml

* retry autobuild

* Update codeql.yml

* try autobuild with generated stub

* chore: change init step for codeQL

* chore: codeql

* chore: try new codeql version

* chore: new codeql-action version

* chore: new codeql-action version

* chore: new codeql-action version

* chore: new codeql-action version

---------

Co-authored-by: Stefan Benz <[email protected]>
2024-02-16 10:54:41 +00:00
Livio SpringandGitHub 104034c628 chore(api): initial definition of API for user schemas (user v3 and user schema v3 service) (#7372)
Adds the initial proto definition for a new user service (v3) based on user schema and it's corresponding user schema service (v3)
2024-02-15 11:22:48 +01:00
Livio SpringandGitHub d5266ea51c fix: set user agent cookie on host only (without subdomains) (#7297)
This PR changes the domain / prefix of the user agent cookie from including the subdomain to the domain only and therefore changing the prefix from __Secure to __Host.

Note:
As the cookie is used to determine existing session on the login UI, applying the change will require end-users to start a new session on the next login, since the existing ones cannot be retrieved anymore.
2024-02-15 07:53:59 +01:00
Livio SpringandGitHub 7f7fb55f34 fix: use configured binding on SAML IDPs and make sure CSP doesn't block POST binding (#7341)
fix: use configured binding on SAML IDPs and make sure CSP doesn't block POST binding
2024-02-05 14:45:15 +00:00
Livio SpringandGitHub 6bfa66cfa3 docs: fix init-projections flag value (#7325) 2024-02-01 07:12:29 +00:00
Livio SpringandGitHub e000fdd792 fix: handle context correctly in processEvents (#7320) 2024-01-31 11:25:28 +01:00
Livio SpringandGitHub c20204d84d fix: set userAgentID in password change event if available (#7319) 2024-01-30 15:36:34 +01:00
Livio SpringandGitHub 121f9f8da1 feat(actions): add org metadata in complement token and saml response flows (#7263)
* feat(actions): add org metadata in complement token and saml response flows

* document actions
2024-01-26 08:56:10 +00:00
Livio SpringandGitHub 94b3799690 docs: update links of examples (#7273) 2024-01-23 15:29:50 +01:00
Livio SpringandGitHub 8470649ecb chore: pin crdb version for unit tests (#7260)
* chore: pin crdb version for unit tests

* use latest 23.1 version

* use latest available 23.1 version
2024-01-18 08:16:54 +00:00
57f40a3c50 docs(examples): adds java spring boot examples (#7226)
* docs(examples): adds java spring boot examples

* add code highlighting for java and php

* Apply suggestions from code review

Co-authored-by: Tim Möhlmann <[email protected]>

* update references

---------

Co-authored-by: Silvan <[email protected]>
Co-authored-by: Tim Möhlmann <[email protected]>
2024-01-16 11:02:58 +00:00
Livio SpringandGitHub 96d0291848 fix: enable iframe use on http://localhost (#7152)
* fix: enable iframe use on http://localhost

* docs(iframe): add info about cookies

* improve comments
2024-01-16 11:28:56 +01:00
Livio SpringandGitHub 7c592ce638 fix(idp): provide id_token for tenant id based azure ad (#7188)
* fix(idp): provide id_token for tenant based azure ad

* comments

* remove unintentional changes
2024-01-10 15:02:17 +00:00
Livio SpringandGitHub 1a1bb564b9 docs(complement token): clarify when pre userinfo creation is executed (#7189) 2024-01-10 15:29:33 +01:00
Livio SpringandGitHub c0cef4983a fix: correctly respect maxFailureCount (#7143) 2024-01-04 15:46:25 +00:00
Livio Spring acb604c045 docs: fix link to enterprise features 2023-12-21 07:47:06 +01:00
Livio SpringandGitHub f4e73b9b75 docs: update go api client guide (#7099)
* docs: update go api client guide

* update branch reference
2023-12-20 15:56:48 +00:00
Livio SpringandGitHub 7dc8c19f39 docs: add go authentication example (#7034)
* docs: add go authentication example

* update sdks and example overview

* update branch name
2023-12-19 12:22:32 +00:00
Livio SpringandGitHub edaa41903e fix(projections): handle every instance by default and randomize start (#7093) 2023-12-19 13:32:08 +02:00
Livio SpringandGitHub 19d9b8ad41 fix: reduce eventual consistency (#7075)
* fix: reduce eventual consistency

* fix tests

* fix linting
2023-12-14 11:07:47 +01:00
Livio SpringandGitHub 831bb88ec4 fix: correctly delete sessions created before 2.42 (#7050)
* fix: correctly delete sessions created before 2.42

* fix test

* fix linting

* fixes requested from review
2023-12-09 08:59:51 +00:00
Livio SpringandGitHub aa3c352ae7 fix: update external username on idp if auto update is enabled (#7048)
* fix: update external username on idp if auto update is enabled

* update errors package
2023-12-08 18:22:07 +01:00
Livio SpringandGitHub 6f3afb810d fix: use host with potential port for instance context (#7022) 2023-12-06 16:53:41 +00:00
Livio SpringandGitHub a87f54b328 docs: update go authorization example to the new version (#7015)
* docs: update go authorization example to the new version

* fix reference to code
2023-12-06 18:32:43 +02:00
Livio SpringandGitHub 970c062307 fix: projection version of restrictions (#7028) 2023-12-06 10:30:56 +00:00
Livio SpringandGitHub 236930f109 docs(api): add session lifetime format for REST calls (#7019) 2023-12-05 10:25:52 +01:00
Livio SpringandGitHub e57076430b fix: handle context when locking for trigger (#7006) 2023-12-01 11:13:57 +01:00
Livio SpringandGitHub 1ef186e338 docs: update session termination documentation (#6966) 2023-11-23 11:10:14 +00:00
b563041103 fix: ensure uniqueness (#6956)
* fix: ensure uniqueness

* only update wrong ones

* Update cmd/setup/16.go

Co-authored-by: Silvan <[email protected]>

---------

Co-authored-by: Silvan <[email protected]>
2023-11-22 12:05:14 +00:00
Livio SpringandGitHub ad3563d58b fix: handle project deactivate and remove correctly on tokens (#6947) 2023-11-21 10:05:22 +01:00
Livio SpringandGitHub 492b7d8676 docs(security.md): update link to disclosure policy (#6948) 2023-11-21 09:15:51 +01:00
Livio SpringandGitHub 2e8c3b5a53 feat: allow session deletion without session token (#6889)
* fix: add resource owner of user and change the one of session to instance

* use user resource owner from session projection

* fix session permission check

* integration tests and fixes

* update api docs
2023-11-16 07:35:50 +01:00
Livio SpringandGitHub 3bc9a60986 fix: allow webauthn checks for users of other orgs (#6915) 2023-11-14 09:42:39 +00:00
Livio SpringandGitHub 1344760369 fix: set samesite mode for CSRF cookie based on security policy (#6914) 2023-11-14 10:01:59 +01:00
Livio SpringandGitHub 0386fe7f96 fix: improve login_hint usage on IDPs (#6899)
* only set prompt if no login_hint is set

* update to current state and cleanup
2023-11-13 09:25:26 +01:00
Livio SpringandGitHub 22e2d55999 Merge pull request from GHSA-7h8m-vrxx-vr4m
* fix: handle locking policy correctly for multiple simultaneous password checks

* recheck events
2023-11-08 14:19:13 +01:00
Livio SpringandGitHub e342e3d99b fix: prevent panic in loginNameInformation (#6876) 2023-11-07 11:16:49 +01:00
Livio SpringandGitHub f3b8a3aece feat: add possibility to set an expiration to a session (#6851)
* add lifetime to session api

* extend session with lifetime

* check session token expiration

* fix typo

* integration test to check session token expiration

* integration test to check session token expiration

* i18n

* cleanup

* improve tests

* prevent negative lifetime

* fix error message

* fix lifetime check
2023-11-06 10:48:28 +01:00
Livio SpringandGitHub ce322323aa perf(oidc): remove db call for discovery configuration (#6857) 2023-11-03 15:18:57 +00:00
Livio SpringandGitHub 9378e19090 fix: payload (de)serialization of some events (#6858) 2023-11-03 11:02:17 +00:00
Livio SpringandGitHub 585c8af5f2 docs(technical advisory): add version to console branding (#6852) 2023-11-02 16:18:14 +01:00
Livio SpringandGitHub 34e9748cba chore: update dependencies (#6826) 2023-10-26 15:03:57 +00:00
Livio SpringandGitHub 73dbf31368 Merge pull request from GHSA-954h-jrpm-72pm 2023-10-25 11:15:22 +02:00
Livio Springandadlerhurst 426c4acbfe fix(notification): get origin from all relevant events and fix nil pointer (#6726) 2023-10-19 10:34:52 +02:00
cb0a0f996e fix(api): add remove otp sms and email to management api (#6721)
* fix(api): add remove otp sms and email to management api

* fix(console): remove otpsms and otpemail from user

---------

Co-authored-by: peintnermax <[email protected]>
2023-10-16 10:49:02 +03:00
Livio SpringandGitHub ce719a3fa4 fix(notification): get origin from all relevant events and fix nil pointer (#6726) 2023-10-13 14:45:38 +00:00
Livio SpringandGitHub 95889cf576 fix(api): use organization instead of organisation (#6720)
* fix(api): use organization instead of organisation

* fix test

* docs: add deprecation notice

* remove validation
2023-10-13 12:37:35 +00:00
Livio SpringandGitHub 27e03120dc fix(api): extend client_secret length for generic oauth and oidc providers to 1000 (#6722) 2023-10-13 14:31:39 +03:00
Livio SpringandGitHub a272b1201f fix(api): use (provided) organisation instead of resourceOwner of caller (#6714) 2023-10-12 10:00:36 +02:00
f2d1cd2045 docs(technical advisory): add login ui default context (#6695)
* docs(technical advisory): add login ui default context

* Update docs/docs/support/advisory/a10003.md

Co-authored-by: Fabi <[email protected]>

---------

Co-authored-by: Fabi <[email protected]>
2023-10-11 08:20:48 +02:00
Livio SpringandGitHub 4d85013ffb chore: update stable (#6690) 2023-10-10 08:28:09 +02:00
Livio Spring 907a1611ac fix(login): error case for unknown usernames correctly (#6689)
(cherry picked from commit 8549dd7a3d)
2023-10-10 07:41:16 +02:00
Livio SpringandGitHub 8549dd7a3d fix(login): error case for unknown usernames correctly (#6689) 2023-10-09 15:05:25 +00:00
Livio Spring dee9d8d3a7 Merge branch 'main' into next
# Conflicts:
#	cmd/start/start.go
#	internal/auth/repository/eventsourcing/eventstore/auth_request.go
#	internal/auth/repository/eventsourcing/repository.go
#	internal/command/main_test.go
#	internal/command/quota.go
#	internal/command/quota_model.go
#	internal/command/quota_model_test.go
2023-10-09 14:18:29 +02:00
Livio SpringandGitHub 827ce8809d fix: use enum for instance feature in system api (#6682)
* fix: use enum for instance feature in system api

* add feature.proto to lint ignore
2023-10-09 12:33:23 +02:00
Livio Spring 8ca053fad3 fix: respect "Ignore unknown usernames" on password reset
Merge pull request from GHSA-v683-rcxx-vpff

(cherry picked from commit 54676eda98)
2023-10-09 12:12:16 +02:00
Livio SpringandGitHub 9696fde676 fix: reduce origin check to tokens issued through code and implicit flow (#6681)
fix: only check origin for tokens issued to users through apps (code / implicit flow)
2023-10-09 10:08:18 +00:00
Livio SpringandGitHub 54676eda98 Merge pull request from GHSA-v683-rcxx-vpff 2023-10-09 11:47:43 +02:00
Livio SpringandGitHub e3ac217424 fix: ensure no events are skipped on token check (#6663)
fix: ensure no events are skipped on token check
2023-10-09 09:26:27 +02:00
Livio SpringandGitHub 2e99d0fe1b fix(email): UTF-8 "Q" encode subject header (#6637)
fix(email): UTF-8 "Q" encode subject header
2023-09-29 08:53:45 +00:00
Livio SpringandGitHub 68bfab2fb3 feat(login): use default org for login without provided org context (#6625)
* start feature flags

* base feature events on domain const

* setup default features

* allow setting feature in system api

* allow setting feature in admin api

* set settings in login based on feature

* fix rebasing

* unit tests

* i18n

* update policy after domain discovery

* some changes from review

* check feature and value type

* check feature and value type
2023-09-29 08:21:32 +00:00
Livio Spring 41e31aad41 fix: only reuse active session and use correct policies (from user org) (#6603)
(cherry picked from commit 593d1605ab)
2023-09-21 16:57:03 +02:00
Livio SpringandGitHub 593d1605ab fix: only reuse active session and use correct policies (from user org) (#6603) 2023-09-21 16:45:41 +02:00
Livio Spring b688d6f842 Merge branch 'main' into next 2023-09-15 15:46:06 +02:00
Livio SpringandGitHub b4d0d2c9a7 chore(webauthn): add logs (#6569) 2023-09-15 13:43:38 +00:00
Livio SpringandGitHub be81570fb5 feat(api): move resource apis to beta (#6530)
Moves UserService, SessionService, SettingsService and OIDCService to beta state. This includes gRPC and HTTP path changes.
2023-09-13 12:43:01 +00:00
Livio SpringandGitHub c790715628 fix: improve autofill values (#6541) 2023-09-13 08:16:57 +02:00
523dee8801 chore: remove postgres beta warning (#6394)
fix: remove postgres beta warning

Co-authored-by: Fabi <[email protected]>
2023-09-08 15:44:34 +00:00
Livio Springandadlerhurst f5060d70d7 fix: handle password data correct on user creation (#6515) 2023-09-07 16:21:10 +02:00
Livio SpringandGitHub 62d679e553 fix: handle password data correct on user creation (#6515) 2023-09-07 14:06:11 +00:00
Livio Spring 3b0be67627 cleanup merge 2023-09-05 07:18:47 +02:00
Livio Spring 38f7b1bd06 Merge branch 'main' into next
# Conflicts:
#	docs/docs/guides/integrate/login-ui/external-login.mdx
#	internal/command/idp_model.go
#	proto/zitadel/user/v2alpha/user_service.proto
2023-09-05 07:04:42 +02:00