Commit Graph
100 Commits
Author SHA1 Message Date
Livio SpringandGitHub 236cea5b74 chore: set specific go version (#7873)
* chore: set specific go version

* chore: set specific go version

* chore: set specific go version
2024-05-07 08:44:39 +00:00
Livio SpringandGitHub 5bf195d374 fix: allow other users to set up MFAs (#7914)
* fix: allow other users to set up MFAs

* update tests

* update integration tests
2024-05-07 05:38:26 +00:00
Livio SpringandGitHub 2648db694d chore(stable): v2.46.7 (#7901) 2024-05-03 11:29:11 +00:00
Livio SpringandGitHub d177b82d2d fix(login): check for error before automatic idp redirect (#7891)
* fix(login): check for error before automatic idp redirect

* hide next button on login page if username password is not enabled
2024-05-03 07:57:24 +00:00
Livio SpringandGitHub 900894161f fix(login): prevent init mail on idp registration (#7895) 2024-05-03 07:23:40 +00:00
Livio SpringandGitHub 482a46b198 fix: user registration through IdP (#7893)
* fix: user registration through idp

* fix more nil pointer issues
2024-05-02 13:21:03 +00:00
43da9225be fix: check password complexity policy and respect changeRequired on password change (#7884)
* fix: check password complexity policy on password change and respect require_change

* pass changeRequired where available and add tests

* fix requested changes

---------

Co-authored-by: Stefan Benz <[email protected]>
2024-05-02 11:50:13 +02:00
Livio SpringandGitHub 9950cafafc fix: improve information on unsupported hash algorithms (#7870)
* fix: improve information on unsupported hash algorithms

* Update de.yaml
2024-04-30 17:50:33 +00:00
Livio SpringandGitHub 6ab06aa249 fix: improve secret generation for apple idp (#7843)
* fix: improve secret generation for apple idp

* remove accidental commit

* change exp time

* change exp time

* change exp time

* change exp time
2024-04-26 15:46:15 +00:00
Livio SpringandGitHub 4f3564e4e9 fix: disable auth cache by default (#7845) 2024-04-26 09:30:35 +02:00
Livio SpringandGitHub d016379e2a feat: pass and handle auth request context for email links (#7815)
* pass and handle auth request context

* tests and cleanup

* cleanup
2024-04-24 17:50:58 +02:00
Livio SpringandGitHub ac985e2dfb fix(login): correctly reload policies on auth request (#7839) 2024-04-24 08:44:55 +00:00
Livio SpringandGitHub cc0c06f225 fix: exclude db connection error details (#7785)
* fix: exclude db connection error details

* remove potential recursive error
2024-04-23 08:35:25 +00:00
Livio SpringandGitHub 74624018c2 feat(actions): allow getting metadata of organizations from user grants (#7782)
* feat(actions): allow getting metadata of (other) organizations from user grants

* docs add action example
2024-04-22 11:34:23 +00:00
Livio SpringandGitHub 9d754d84b3 chore: update stable to v2.45.6 (#7818) 2024-04-22 11:05:01 +00:00
Livio SpringandGitHub 6e5e8d06b4 chore(stable): update to 2.44.7 (#7770) 2024-04-15 09:56:22 +02:00
Livio SpringandGitHub dcfa2f7955 feat(idp): provide option to auto link user (#7734)
* init auto linking

* prompt handling

* working

* translations

* console

* fixes

* unify

* custom texts

* fix tests

* linting

* fix check of existing user

* fix bg translation

* set unspecified as default in the form
2024-04-10 15:46:30 +00:00
Livio SpringandGitHub 3711130d42 fix(idp): use persistent nameid-format in saml request (#7745) 2024-04-10 10:05:07 +00:00
Livio SpringandGitHub a282ac09a1 feat: provide option to limit (T)OTP checks (#7693)
* feat: provide option to limit (T)OTP checks

* fix requests in console

* update errors pkg

* cleanup

* cleanup

* improve naming of existing config
2024-04-10 09:15:25 +00:00
Livio SpringandGitHub 153df2e12f feat: provide option to limit (T)OTP checks (#7693)
* feat: provide option to limit (T)OTP checks

* fix requests in console

* update errors pkg

* cleanup

* cleanup

* improve naming of existing config
2024-04-10 09:14:55 +00:00
Livio SpringandGitHub e3f10f7e23 fix: correctly check user by loginname (#7740) 2024-04-10 07:18:57 +00:00
Livio SpringandGitHub 2566f33aa2 docs(actions): describe user grant list (#7687) 2024-04-10 09:02:13 +02:00
Livio SpringandGitHub 5931fb8f28 chore: update stable to 2.43.11 (#7705) 2024-04-04 18:06:36 +00:00
Livio SpringandGitHub 29ad51b0e3 fix(oidc): correctly return new refresh token on refresh token grant (#7707)
* fix(oidc): correctly return new refresh token on refresh token grant

* fix import
2024-04-04 15:58:40 +00:00
f862e43ede chore(workflow): run e2e on non standard runners (#7698)
Co-authored-by: Elio Bischof <[email protected]>
2024-04-03 22:15:00 +00:00
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