Commit Graph
100 Commits
Author SHA1 Message Date
Livio SpringandGitHub aa4df33b62 docs(oidc): use correct audience (issuer) for JWT Profile (#4336) 2022-09-07 15:27:29 +02:00
Livio SpringandGitHub 04ce8b2479 fix: remove idps from org login policy after reset (#4327) 2022-09-07 14:17:52 +02:00
Livio SpringandGitHub 4723e911f4 fix: provider type column in idp_login_policy_links projection (#4325) 2022-09-06 06:39:03 +00:00
Livio SpringandGitHub 279b487961 fix: use correct db schema (#4308) 2022-09-05 08:29:32 +00:00
Livio SpringandGitHub 5aa91ad105 fix: improve performance (#4300)
## Note

This release requires a setup step to fully improve performance.
Be sure to start ZITADEL with an appropriate command (zitadel start-from-init / start-from-setup)

## Changes

- fix: only run projection scheduler on active instances
- fix: set default for concurrent instances of projections to 1 (for scheduling)
- fix: create more indexes on eventstore.events table
- fix: get current sequence for token check (improve reread performance)
2022-09-02 14:05:13 +00:00
adb5394ae3 fix: login text changes (#4269)
* fix: omit empty (zero) dates

* overwrite current date on save

* update date on reset

* smtp

* disable reset

Co-authored-by: Max Peintner <[email protected]>
2022-09-02 10:29:06 +02:00
Livio SpringandGitHub bee616c11a fix: SMTP config setup (#4272)
* fix: change default for SMTPSenderAddressMatchesInstanceDomain to false

* fix: handle error in console
2022-09-02 09:04:29 +02:00
Livio SpringandGitHub 32b751a3a0 fix: WebAuthN (registration / login) and list on users (#4290)
* fix: WebAuthN when running under non default port

* fix: remove notification schema from list of views / failed events

* fix: auth method column type in user auth methods
2022-09-01 09:10:07 +02:00
Livio SpringandGitHub 64f589c435 fix: read custom texts for pages called directly form mail link (#4255)
* fix: read custom texts for pages called directly form mail link

* log errors
2022-08-26 08:53:11 +00:00
Livio SpringandGitHub e1a981928c fix: action query (#4257) 2022-08-26 08:38:41 +00:00
Livio SpringandGitHub 47930c6a85 fix: handle instanceID correctly in auth projections (#4252) 2022-08-25 13:38:35 +00:00
Livio SpringandGitHub cb8e6c9f24 chore: update stable to 2.2.0 (#4246) 2022-08-25 11:17:47 +02:00
Livio SpringandGitHub 4c26665b93 fix: improve user grants precondition checks (#4237)
* fix: improve user grants precondition checks

* build rc

* fix prerelease

* fix: build image

* remove branch from releaserc
2022-08-24 11:38:59 +02:00
Livio SpringandGitHub 06fd70d457 chore: always push docker image (#4236)
(only skip latest manifest on prereleases)
2022-08-24 09:53:14 +02:00
69534a2f7a feat: allow JWT for ZITADEL APIs (#4206)
* feat: allow JWT for ZITADEL APIs

* improve getTokenIDAndSubject

* comment

Co-authored-by: Silvan <[email protected]>
2022-08-23 08:02:36 +02:00
Livio SpringandGitHub cc612fed07 fix: trim spaces for usernames and organization names (#4217) 2022-08-19 15:00:14 +02:00
Livio SpringandGitHub d656b3f3c9 fix: instance interceptors return NotFound (404) error for unknown hosts (#4184)
* fix: instance interceptors return "NotFound" (404) error for unknown hosts

* fix tests
2022-08-17 06:07:41 +00:00
Livio SpringandGitHub 9c37f39d43 docs: better distinct JWT Profile grant and assertion (#4201)
docs: update JWT Profile grant
2022-08-16 14:49:37 +02:00
dcac08b1d5 fix: caching of assets (correct headers and versioned avatar and variables.css url) (#4118)
* fix: caching of assets (correct headers and versioned avatar url)

* serve variables.css versioned and extend shared max age of assets

* fix TestCommandSide_AddHumanAvatar

* refactor: const types

* refactor: return values

Co-authored-by: Fabi <[email protected]>
Co-authored-by: adlerhurst <[email protected]>
2022-08-16 05:04:36 +00:00
Livio SpringandGitHub 90cec44de4 chore: remove stale bot (#4156) 2022-08-10 06:55:10 +00:00
Livio SpringandGitHub c5b4441373 chore: add stale bot (#4153) 2022-08-09 16:14:16 +02:00
Livio SpringandGitHub 02d2032790 feat: add ZITADEL project id scope (#4146)
* feat: add ZITADEL project id scope

* update documentation

* documentation

* fix scopes

* change to lowercase
2022-08-09 09:45:59 +02:00
Livio SpringandGitHub d4d39dbd80 docs: document authentication for system api (#4140)
* docs: add authentication for system api

* update defaults.yaml
2022-08-08 14:52:59 +02:00
Livio SpringandGitHub 64508c42ea chore: fix .goreleaser.yaml (#4109) 2022-08-03 10:55:54 +00:00
Livio SpringandGitHub dba0fdcf7b fix: handle user metadata projection correctly (#4098) 2022-08-03 09:50:23 +02:00
Livio SpringandGitHub 6b30be77e6 fix: restrict domain names to alphanumeric characters (#4104)
* fix: restrict domain names to alphanumeric characters

* improve error message
2022-08-03 07:25:25 +00:00
Livio SpringandGitHub fbd04d399d fix: hide / show username suffix correctly on registration pages (#4097) 2022-08-02 16:31:35 +02:00
Livio SpringandGitHub 459779ae3a docs: update db config in example configs (#4077)
* docs: update db config in example configs

* fix version

* more cockroach
2022-07-29 15:45:38 +00:00
Livio SpringandGitHub 6e6f5d5f17 docs: fix broken links in examples overview (#4074) 2022-07-29 14:12:52 +02:00
Livio SpringandGitHub f610d48569 feat: prepare for multiple database types (#4068)
BREAKING CHANGE: the database and admin user config has changed.
2022-07-28 16:25:42 +02:00
Livio SpringandGitHub d620126aab fix: handle nil pointer when login hint is invalid (#4066)
* fix: handle nil pointer when login hint is invalid

* mention encoding for login_hint
2022-07-28 14:11:10 +02:00
Livio SpringandGitHub 096e12d3d0 fix: set domain verified if domain policy does not require validation (#4061)
* fix: set domain verified if domain policy does not require validation

* handle domain claimed
2022-07-28 13:18:31 +02:00
5bd9badbcf fix: project grants (#4031)
* fix: filter granted memberships correctly

* fix: only show changes of granted project

* Apply suggestions from code review

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

* Update internal/query/user_membership.go

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

Co-authored-by: Fabi <[email protected]>
2022-07-27 07:55:44 +00:00
Livio SpringandGitHub c15577c1f9 fix: use default redirect uri when not passed on end_session endpoint (#4054)
* fix: use default redirect uri when not passed on end_session endpoint

* instance state
2022-07-27 09:49:16 +02:00
Livio SpringandGitHub ccde49b323 feat: extend claims of introspection response (#4018)
* feat: extend claims of introspection response

* update oidc lib
2022-07-25 09:38:15 +02:00
Livio SpringandGitHub 9fc8a43642 fix: handle events of PATs correctly (#4024) 2022-07-22 13:47:55 +02:00
aed7010508 fix: scheduling (#3978)
* fix: improve scheduling

* build pre-release

* fix: locker

* fix: user handler and print stack in case of panic in reducer

* chore: remove sentry

* fix: improve handler projection and implement tests

* more tests

* fix: race condition in tests

* Update internal/eventstore/repository/sql/query.go

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

* fix: implemented suggested changes

* fix: lock statement

Co-authored-by: Silvan <[email protected]>
2022-07-22 10:08:39 +00:00
Livio SpringandGitHub 91206967b4 fix: reset custom org domain policy (#4014) 2022-07-21 13:46:59 +02:00
Livio SpringandGitHub 95481c2e0b feat: allow system config changes (#3876)
* feat: run repeatable setup steps

* feat: react to system config changes

* renaming
2022-07-20 11:20:49 +02:00
9b6dad18cb feat: provide metrics endpoint (#3902)
* feat: provide metrics endpoint

* config

* enable otel metrics by default

Co-authored-by: Florian Forster <[email protected]>
2022-07-18 10:42:32 +02:00
Livio SpringandGitHub fa4bc47b3e feat: specify org member roles in org setup (#3950) 2022-07-12 13:38:47 +00:00
Livio SpringandGitHub 6463b716ce fix: handle org de-/reactivate correctly (#3924) 2022-07-07 13:13:17 +00:00
Livio SpringandGitHub 427d21ad45 fix: (french) translations (#3922) 2022-07-07 10:58:24 +00:00
a1d404291d fix(notify): notify user in projection (#3889)
* start implement notify user in projection

* fix(stmt): add copy to multi stmt

* use projections for notify users

* feat: notifications from projections

* feat: notifications from projections

* cleanup

* pre-release

* fix tests

* fix types

* fix command

* fix queryNotifyUser

* fix: build version

* fix: HumanPasswordlessInitCodeSent

Co-authored-by: adlerhurst <[email protected]>
2022-07-06 14:09:49 +02:00
Livio SpringandGitHub 8434eaa9c0 fix: require user verification for passwordless authentication (#3896) 2022-07-06 08:32:05 +02:00
Livio SpringandGitHub 12d4d3ea0b fix: enable env vars in setup steps (and deprecate admin subcommand) (#3871)
* fix: enable env vars in setup steps (and deprecate admin subcommand)

* fix tests and error text
2022-06-27 10:32:34 +00:00
Livio SpringandGitHub 30f553dea1 feat: provide instance info on admin api and return version on instances responses (admin and system api) (#3802)
* feat: provide instance info on admin api and return version on instances responses (admin and system api)

* fix GetMyInstance
2022-06-27 09:12:06 +00:00
Livio SpringandGitHub 1b4740c78f fix: primary domain scope (handle context correctly) (#3872) 2022-06-27 09:24:23 +02:00
Livio SpringandGitHub ed5721d39e feat: TLS support (#3862)
* feat: TLS support

* add comment

* fix comment
2022-06-24 12:38:22 +00:00
Livio SpringandGitHub f4e91f0b5b fix: update oidc pkg (state and redirect_uri handling) (#3853) 2022-06-22 07:31:36 +00:00
Livio SpringandGitHub 1daa924fa3 docs: update api introduction (#3781) 2022-06-21 08:03:30 +00:00
Livio SpringandGitHub c2e0c8c37c docs: add curl for introspection_endpoint with basic auth (#3851) 2022-06-21 09:50:23 +02:00
Livio SpringandGitHub f57e3df39d fix: sms providers (#3801) 2022-06-13 08:34:11 +02:00
Livio SpringandGitHub 504d91d424 fix: allow env vars to override setup defaults (#3800) 2022-06-10 13:34:52 +00:00
6bd5799770 fix: idp styling (#3797)
* fix: idp styling

* escape idp a color

* elevation on hover

* css gen

Co-authored-by: Max Peintner <[email protected]>
2022-06-10 13:17:33 +00:00
Livio SpringandGitHub 7b0f0b81a3 fix: set instanceID correctly in org project mapping (#3789) 2022-06-10 13:12:07 +00:00
Livio SpringandGitHub 03a77b381e fix: password check policy correctly (#3787)
* fix: password check policy correctly

* fix: password check policy correctly
2022-06-09 13:48:57 +00:00
Livio SpringandGitHub 7f34ce1891 fix: allow project grants without roles in database (#3786) 2022-06-09 11:48:54 +02:00
Livio SpringandGitHub a377f2816c feat: return instance domains on list instances, fix: login policy and avatar url in oidc responses (#3785)
* feat: return instance domains on list instances

* fix: filter login policy idps correctly

* remove debug

* fix: absolute avatar url in oidc responses
2022-06-08 13:46:24 +02:00
Livio SpringandGitHub ace94917da test: ensure consistency of TestSpooler_awaitError (#3750) 2022-06-07 11:40:46 +00:00
Livio SpringandGitHub 5e4b38d69b fix: improve oidc issuer / endpoints (#3753)
* fix: improve oidc issuer / endpoints

* docs: update endpoints
2022-06-07 10:04:51 +02:00
Livio AmstutzandGitHub 3a1569bd94 fix: grpc gateway interceptors (#3767) 2022-06-03 12:44:04 +00:00
Livio AmstutzandGitHub da1f74fde0 fix: update user sessions after avatar or primary domain change (#3768) 2022-06-03 12:37:24 +00:00
Livio AmstutzandGitHub 0baaaf8a05 fix: handle default org id (#3769) 2022-06-03 14:30:39 +02:00
Livio AmstutzandGitHub 6506ce537d fix: sql error check (#3762) 2022-06-01 16:00:25 +00:00
Livio AmstutzandGitHub d65761f388 fix: render only base language in html (#3759) 2022-06-01 15:32:18 +02:00
32afa77b97 fix: compatibility for cockroach v22.1 (#3754)
* fix: compatability for cockroach v22.1

* update cr version in docs and compose

* bind dev cockroach to 127.0.0.1

* Revert "bind dev cockroach to 127.0.0.1"

This reverts commit 1c7c6304ae6682801f8475a8eac91569442b6b8d.

* remove --listen-addr flag

* use v2.0.0-v2-alpha.16

* use v2.0.0-v2-alpha.17

Co-authored-by: Elio Bischof <[email protected]>
2022-06-01 11:41:01 +02:00
Livio AmstutzandGitHub 21a0e4a972 feat: get current label and privacy policies (#3748) 2022-06-01 09:50:28 +02:00
Livio AmstutzandGitHub b0436c995b fix: return correct empty flow if not found (#3749) 2022-06-01 08:11:48 +02:00
Livio AmstutzandGitHub 81c0ca3337 fix: use issuer for jwt profile check on system api (#3741) 2022-05-31 13:11:49 +02:00
Livio AmstutzandGitHub 992892a8bb fix: read key data for system api users from config (#3731) 2022-05-30 12:53:21 +00:00
b3f50702f8 feat: directly specify factors/idps on addCustomLoginPolicy and return on LoginPolicy responses (#3711)
* feat: directly specify factors on addCustomLoginPolicy and return on LoginPolicy responses

* fix proto

* update login policy

* feat: directly specify idp on addCustomLoginPolicy and return on LoginPolicy responses

* fix: tests

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Fabi <[email protected]>
2022-05-30 11:51:07 +00:00
Livio AmstutzandGitHub 2fc39c0da0 feat: system api requires authenticated requests (#3570)
* begin auth

* feat: system api requires authenticated requests

* fix tests
2022-05-30 13:38:30 +02:00
Livio AmstutzandGitHub 41d78ef523 fix: return absolute url for avatar in user sessions (#3724)
* fix: return absolute url for avatar in user sessions

* fix: refresh token unique constraint
2022-05-30 11:27:52 +00:00
Livio AmstutzandGitHub 737e01bfd2 fix: fix and improve primary keys on projections (#3708)
* fix: org_domain projection

* fix: projection reset

* fix test

* improve foreign keys on suffixed tables
2022-05-25 14:15:13 +02:00
Livio AmstutzandGitHub 79452da7d6 fix: check membership from projection (#3710)
* fix: check membership from projection

* remove authz setup
2022-05-25 14:07:16 +02:00
Livio AmstutzandGitHub e1ee89982a fix: unify commands (and remove todos for checking existence) (#3696) 2022-05-24 09:28:17 +00:00
Livio AmstutzandGitHub cf6f4d6894 fix(tracing): parsing of fraction (#3705)
* fix(tracing): parsing of fraction

* log id
2022-05-24 09:18:25 +00:00
Livio AmstutzandGitHub 62c4a4d08d fix: return absolute asset urls (#3676) 2022-05-20 10:30:12 +02:00
Livio AmstutzandGitHub 0906c2d513 fix: CORS on assets api (#3659) 2022-05-19 14:09:02 +00:00
c71ccc8a80 fix: improve context handling in projections (#3638)
* fix: improve context handling in projections

* fix tests

* use as of system time for current sequence

* use as of system time for current sequence

Co-authored-by: Silvan <[email protected]>
2022-05-19 08:25:19 +00:00
Livio AmstutzandGitHub 5901991dd3 fix: asset service (CORS and path in console) and user init (#3655)
* fix: asset service (CORS and path in console) and user init

* fix tests

* improve comment
2022-05-18 14:10:49 +02:00
Livio AmstutzandGitHub 616b31c959 fix: token check and error unwrapping (#3648)
* fix: token check and error unwrapping

* remove unused code
2022-05-18 10:49:16 +02:00
Livio AmstutzandGitHub 4ec006dd02 fix: remove custom domain from default instance (#3653) 2022-05-17 19:23:51 +02:00
Livio AmstutzandGitHub 3a63fb765a fix: cleanup some todos (#3642)
* cleanup todo

* fix: some todos
2022-05-16 16:35:49 +02:00
411d7c6c5c feat: add default redirect uri and handling of unknown usernames (#3616)
* feat: add possibility to ignore username errors on first login screen

* console changes

* fix: handling of unknown usernames (#3445)

* fix: handling of unknown usernames

* fix: handle HideLoginNameSuffix on unknown users

* feat: add default redirect uri on login policy (#3607)

* feat: add default redirect uri on login policy

* fix tests

* feat: Console login policy default redirect (#3613)

* console default redirect

* placeholder

* validate default redirect uri

* allow empty default redirect uri

Co-authored-by: Max Peintner <[email protected]>

* remove wonrgly cherry picked migration

Co-authored-by: Max Peintner <[email protected]>
2022-05-16 13:39:09 +00:00
Livio AmstutzandGitHub f1fa74a2c0 fix: loginnames in login and mails (eventstore v1 queries) (#3636)
* fix: loginnames in login and mails (eventstore v1 queries)

* fix: loginnames in login and mails (eventstore v1 queries)
2022-05-16 13:10:10 +00:00
Livio AmstutzandGitHub 8bcea0ef1a docs: add assets (#3639) 2022-05-16 12:29:09 +00:00
Livio AmstutzandGitHub d401439427 fix: unique constraints on instance domain events (#3635) 2022-05-16 11:52:54 +02:00
Livio AmstutzandGitHub 4fcf03c9c8 fix: email sender and template (#3633) 2022-05-16 09:52:10 +02:00
024eedc1b5 feat: enable default smtp config on setup (#3622)
* feat: enable default smtp config on setup

* fix tests

* fix channel order

Co-authored-by: Fabi <[email protected]>
2022-05-13 12:13:07 +00:00
Livio AmstutzandGitHub 5571db3e1b feat: improve console caching and provide build info (#3621)
* feat: improve console caching and provide build info

* Update info.go
2022-05-13 14:06:44 +02:00
Livio AmstutzandGitHub 734cfdddae fix: return userID on org setup (#3623) 2022-05-13 13:54:48 +02:00
Livio AmstutzandGitHub f70990709b fix: allow single parameter in org unique request (#3620) 2022-05-13 11:25:45 +02:00
Livio AmstutzandGitHub 94e420bb24 fix: env.json caching, readiness and unique lockerIDs (#3596)
* fix: readiness check

* disable cache for env.json

* always generate unique lockerID

* fix tests
2022-05-04 17:09:49 +02:00
Livio AmstutzandGitHub 79db247801 feat: set default language on instance (#3594) 2022-05-03 15:58:38 +02:00
06a1b52adf fix: improve interceptor handling (#3578)
* fix: improve interceptor handling

* fix: improve interceptor handling

Co-authored-by: Florian Forster <[email protected]>
2022-05-02 15:26:54 +00:00
Livio AmstutzandGitHub ef6fd5a843 fix: remove 3rd party assets from mail (#3569) 2022-05-02 14:41:57 +00:00
Livio AmstutzandGitHub 648dd34b0c chore(coverage): upload code coverage correctly (#3568) 2022-05-02 12:31:49 +02:00
Livio AmstutzandGitHub d78e020b0c fix: remove old feature references in console (#3567)
* feat: permit all features to every instance and organisation

* remove old references in console
2022-05-02 09:51:37 +00:00