Commit Graph
100 Commits
Author SHA1 Message Date
SilvanandGitHub c8b9b0ac75 docs: replace fix cockroachdb version with latest stable (#6803) 2023-10-25 14:20:55 +00:00
SilvanandGitHub 459761d99a docs: correct title of tech advisory 06 (#6759) 2023-10-19 14:55:09 +00:00
SilvanandGitHub 4d4f649eda fix(db): allow unlimited connections (#6758) 2023-10-19 13:37:22 +00:00
SilvanandGitHub 3a01558c61 docs: add technical advisory 06 (#6756) 2023-10-19 15:13:50 +02:00
SilvanandGitHub e8b25f3143 merge 'next' into main (#6754) 2023-10-19 13:39:23 +02:00
adlerhurst cc56eeadca Merge branch 'main' into next-to-main 2023-10-19 12:41:09 +02:00
adlerhurst bd23a7a56f merge main into next 2023-10-19 12:34:00 +02:00
SilvanandGitHub b5564572bc feat(eventstore): increase parallel write capabilities (#5940)
This implementation increases parallel write capabilities of the eventstore.
Please have a look at the technical advisories: [05](https://zitadel.com/docs/support/advisory/a10005) and  [06](https://zitadel.com/docs/support/advisory/a10006).
The implementation of eventstore.push is rewritten and stored events are migrated to a new table `eventstore.events2`.
If you are using cockroach: make sure that the database user of ZITADEL has `VIEWACTIVITY` grant. This is used to query events.
2023-10-19 12:19:10 +02:00
SilvanandGitHub 259faba3f0 merge 'main' into next 2023-10-19 11:29:44 +02:00
adlerhurst 9c069806c4 ci(lint): use ref_base instead of main 2023-10-19 10:47:37 +02:00
adlerhurst 46187f7619 Merge branch 'main' into next-merge 2023-10-19 10:11:02 +02:00
adlerhurst 9a7517dd2c Merge branch 'main' into next-merge 2023-10-19 10:08:05 +02:00
SilvanandGitHub fb2bd15780 ci: allow restore errors (#6740) 2023-10-17 15:53:00 +00:00
2fba12d5c2 docs: add technical advisories for eventstore (#6702)
* docs: add technical advisories for eventstore

---------

Co-authored-by: Florian Forster <[email protected]>
2023-10-11 09:13:11 +00:00
SilvanandLivio Spring e64428b8d4 fix: TestCRDB_CreateInstance (#6522)
(cherry picked from commit 856d0d12e8)
2023-09-12 17:06:01 +02:00
SilvanandGitHub 856d0d12e8 fix: TestCRDB_CreateInstance (#6522) 2023-09-08 10:27:52 +00:00
Silvan 2d75576864 fix(scheduler): add span to trigger method (#6513) 2023-09-07 11:01:18 +02:00
SilvanandGitHub c3c2a43d46 fix(scheduler): add span to trigger method (#6513) 2023-09-07 10:59:44 +02:00
SilvanandLivio Spring f72560291e fix(eventstore): cache instances (#6501)
* fix(eventstore): cache instances

* fix: consider succeeded once during instance ids query

* fix(eventstore): return correct instances

(cherry picked from commit 0f06e84f40)
2023-09-07 06:23:28 +02:00
SilvanandGitHub 0f06e84f40 fix(eventstore): cache instances (#6501)
* fix(eventstore): cache instances

* fix: consider succeeded once during instance ids query

* fix(eventstore): return correct instances
2023-09-06 14:34:07 +00:00
SilvanandGitHub 22af4dcd97 feat(storage): read only transactions (#6417)
feat(storage): read only transactions for queries (#6415)

* fix: tests

* bastle wie en grosse

* fix(database): scan as callback

* fix tests

* fix merge failures

* remove as of system time

* refactor: remove unused test

* refacotr: remove unused lines
2023-08-22 14:49:02 +02:00
SilvanandGitHub 99e1c654a3 feat(storage): read only transactions for queries (#6415)
* fix: tests

* bastle wie en grosse

* fix(database): scan as callback

* fix tests

* fix merge failures

* remove as of system time

* refactor: remove unused test

* refacotr: remove unused lines
2023-08-22 10:49:22 +00:00
6672dcd87d fix: add spans in auth requests (#6368)
Co-authored-by: Livio Spring <[email protected]>
2023-08-18 07:21:31 +00:00
ebb7a90ca7 ci: run pipeline on every push (#6221)
* ci: run pipeline on every push

* ci: run pipeline on every push on all branches

---------

Co-authored-by: Stefan Benz <[email protected]>
2023-07-18 14:32:23 +02:00
SilvanandGitHub ecf9835cb8 ci: run pipeline on every push (#6219) 2023-07-17 10:55:41 +02:00
SilvanandGitHub 1c354ca977 ci: improve performance (#5953)
* pipeline runs on ubuntu instead of docker
* added Makefile to build zitadel core (backend) and console (frontend)
* pipeline runs in parallel where possible
* pipeline is split into multiple jobs
* removed goreleaser
* added command to check if zitadel instance is running
2023-07-17 10:08:20 +02:00
SilvanandGitHub d0cda1b479 fix(migration): speed up step 11 (#6086) 2023-06-27 11:56:17 +02:00
SilvanandGitHub 9020c9d94f fix(migration): speed up step 11 (#6085) 2023-06-27 08:48:49 +00:00
adlerhurst c8b4ef28bd fix(migration): speed up update and add logs 2023-06-24 09:06:21 +02:00
SilvanandGitHub 55d589cd44 chore: merge rc into next (#6037)
### Definition of Ready

- [ ] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr
description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and
justified
- [ ] Deviations from the acceptance criteria and design are agreed with
the PO and documented.
- [ ] No debug or dead code
- [ ] My code has no repetitions
- [ ] Critical parts are tested automatically
- [ ] Where possible E2E tests are implemented
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] Functionality of the acceptance criteria is checked manually on
the dev system.
2023-06-15 17:29:20 +02:00
adlerhurst 6e510505a1 Merge branch 'main' into rc 2023-06-09 08:49:16 +02:00
adlerhurst 8c0db9a611 fix: empty commit 2023-06-08 10:19:47 +02:00
adlerhurst 0c561bbbf7 Merge branch 'next' into rc 2023-06-08 10:15:53 +02:00
SilvanandGitHub eee4450a05 chore: merge main (#5991)
### Definition of Ready

- [ ] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr
description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and
justified
- [ ] Deviations from the acceptance criteria and design are agreed with
the PO and documented.
- [ ] No debug or dead code
- [ ] My code has no repetitions
- [ ] Critical parts are tested automatically
- [ ] Where possible E2E tests are implemented
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] Functionality of the acceptance criteria is checked manually on
the dev system.
2023-06-08 10:14:43 +02:00
adlerhurst b43f32eba1 chore: merge main 2023-06-08 10:13:25 +02:00
adlerhurst c39193b1ed Merge branch 'next' into rc 2023-06-08 09:46:04 +02:00
adlerhurst 8d05a0d6d8 Merge branch 'main' into rc 2023-06-08 09:30:12 +02:00
Silvan 9af066d53c fix(setup): steps 10 and 11 (#5987)
* fix(step10): count amount of wrong_events manually

* fix(step11): create index for better performance
2023-06-08 08:11:50 +02:00
adlerhurst 6a3ed2f8f7 chore: merge branch 'main' into rc 2023-06-08 08:04:19 +02:00
SilvanandGitHub 6be41ea257 fix(setup): steps 10 and 11 (#5987)
* fix(step10): count amount of wrong_events manually

* fix(step11): create index for better performance
2023-06-07 16:30:19 +00:00
SilvanandGitHub 743c77a729 fix(setup): update chunks in step 11 (#5965) (#5966) 2023-06-02 10:04:03 +00:00
SilvanandGitHub ebca7b6e3d fix(setup): update chunks in step 11 (#5965) 2023-06-02 09:31:18 +00:00
SilvanandGitHub 91f4f99957 chore: merge rc in next (#5963) 2023-06-01 14:34:57 +02:00
adlerhurst e3987d6555 Merge branch 'rc' into next-rc 2023-06-01 13:12:00 +02:00
adlerhurst f41f9a0b02 chore: rc as prerelease 2023-05-25 08:32:51 +02:00
adlerhurst c20cfd5a2c Merge branch 'main' into rc 2023-05-25 08:31:04 +02:00
Silvan 32d33d3145 fix: render authrequest id only if possible (#5823) 2023-05-11 18:08:34 +02:00
SilvanandGitHub 098c27d3da fix: render authrequest id only if possible (#5823) 2023-05-11 16:02:34 +00:00
adlerhurst 4d7a733e11 fix(step11): execute step 10 to make sure events are in correct order 2023-05-11 11:53:52 +02:00
SilvanandGitHub defa429eb7 Merge branch 'main' into eventstore-created-at 2023-05-11 11:24:23 +02:00
adlerhurst b9a3fac3d2 fix(eventstore): backfill column 2023-05-11 11:14:42 +02:00
adlerhurst 5a3d09d3a3 fix(eventstore): use creation_date for existing columns 2023-05-11 10:31:33 +02:00
adlerhurst c6d29fc201 fix(eventstore): new column to test clock_timestamp() 2023-05-11 10:04:35 +02:00
SilvanandGitHub 40bf7e49cc fix: correct tracing in access interceptor (#5766) 2023-05-02 08:46:44 +00:00
SilvanandGitHub a506b5c54f chore: merge main (#5776) 2023-04-28 17:34:32 +02:00
adlerhurst 0a88b27bd0 Merge branch 'main' into merge-main 2023-04-28 17:07:48 +02:00
39bdef35e7 chore: merge (#5773)
* feat: allow skip of success page for native apps (#5627)

add possibility to return to callback directly after login without rendering the successful login page

* build next

* fix(console): disallow inline fonts, critical styles (#5714)

fix: disallow inline

* fix(setup): step 10 for postgres (#5717)

* fix(setup): smaller transactions (#5743)

* fix: order by sequence by default

* test: add allowCreationDateFilter

* fix(step10): separate executions (#5754)

* feat: allow skip of success page for native apps (#5627)

add possibility to return to callback directly after login without rendering the successful login page

* build next

* fix(console): disallow inline fonts, critical styles (#5714)

fix: disallow inline

* fix(setup): step 10 for postgres (#5717)

* fix(setup): smaller transactions (#5743)

* fix(step10): split statements

* fix(step10): split into separate execs

* chore: prerelease

* add truncate before insert

* fix: add truncate

* Merge branch 'main' into optimise-step-10

* chore: reset release definition

---------

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

---------

Co-authored-by: Livio Spring <[email protected]>
Co-authored-by: Max Peintner <[email protected]>
2023-04-28 14:56:51 +00:00
SilvanandGitHub c8c5cf3c5f feat(cli): add setup cleanup sub command (#5770)
* feat(cli): add `setup cleanup` sub command

* chore: logging

* chore: logging
2023-04-28 11:55:35 +00:00
86f4477ae1 fix(step10): separate executions (#5754)
* feat: allow skip of success page for native apps (#5627)

add possibility to return to callback directly after login without rendering the successful login page

* build next

* fix(console): disallow inline fonts, critical styles (#5714)

fix: disallow inline

* fix(setup): step 10 for postgres (#5717)

* fix(setup): smaller transactions (#5743)

* fix(step10): split statements

* fix(step10): split into separate execs

* chore: prerelease

* add truncate before insert

* fix: add truncate

* Merge branch 'main' into optimise-step-10

* chore: reset release definition

---------

Co-authored-by: Livio Spring <[email protected]>
Co-authored-by: Max Peintner <[email protected]>
2023-04-27 08:28:26 +00:00
SilvanandGitHub 13f6b4686a fix(setup): smaller transactions (#5742) 2023-04-25 08:12:53 +00:00
SilvanandGitHub 6bce14edad fix(setup): smaller transactions (#5743) 2023-04-25 09:48:32 +02:00
095ec21678 feat: user v2alpha email API (#5708)
* chore(proto): update versions

* change protoc plugin

* some cleanups

* define api for setting emails in new api

* implement user.SetEmail

* move SetEmail buisiness logic into command

* resuse newCryptoCode

* command: add ChangeEmail unit tests

Not complete, was not able to mock the generator.

* Revert "resuse newCryptoCode"

This reverts commit c89e90ae35ae924a3f706a0a7394f933910c2e65.

* undo change to crypto code generators

* command: use a generator so we can test properly

* command: reorganise ChangeEmail

improve test coverage

* implement VerifyEmail

including unit tests

* add URL template tests

* proto: change context to object

* remove old auth option

* remove old auth option

* fix linting errors

run gci on modified files

* add permission checks and fix some errors

* comments

* comments

---------

Co-authored-by: Livio Spring <[email protected]>
Co-authored-by: Tim Möhlmann <[email protected]>
2023-04-25 09:02:29 +02:00
SilvanandGitHub 5d6399da24 fix(projection): implement GoStringer for postgres (#5716) 2023-04-21 06:58:04 +00:00
SilvanandGitHub e083092605 docs(azure): update tenant id (#5720) 2023-04-20 10:55:19 +02:00
Silvan 08236b0d12 fix(setup): step 10 for postgres (#5717) 2023-04-20 09:08:07 +02:00
SilvanandGitHub 41025271f4 fix(setup): step 10 for postgres (#5717) 2023-04-20 07:31:18 +02:00
SilvanandGitHub ef656c68ee chore: merge (#5713)
```[tasklist]

### Definition of Ready

- [ ] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and justified
- [ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
- [ ] No debug or dead code
- [ ] Critical parts are tested automatically
- [ ] Where possible E2E tests are implemented
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] Functionality of the acceptance criteria is checked manually on the dev system.
```
2023-04-19 10:14:28 +02:00
SilvanandGitHub 15c4e20508 Merge branch 'next-bla' into main-into-next 2023-04-19 10:11:50 +02:00
SilvanandGitHub 3cd2cecfdf chore: releaserc 2023-04-19 10:01:27 +02:00
SilvanandGitHub 85054e8d2b chore: next as pre release 2023-04-19 09:41:33 +02:00
SilvanandGitHub 8da8fbe6ce fix(eventstore): correct creation date of events (#5683)
* fix: add setup step to correct creation dates

* fix(eventstore): replace now with statement ts

* fix(step10): correct number

* fix: handle wrong instance domain removed events
2023-04-18 19:29:04 +02:00
SilvanandGitHub ed2588f13d fix(idp): handle scopes in azureAD (#5665) 2023-04-12 07:27:07 +02:00
SilvanandGitHub c216d6effd fix(mfa): correct change url (#5663) 2023-04-11 19:27:18 +02:00
SilvanandGitHub 698f46fe6a chore: update dependencies (#5401)
* chore(backend): update dependencies

* chore(pipeline): update golangci-lint
2023-04-06 06:29:55 +00:00
SilvanandGitHub 5c8748d769 chore: change action timeout (#5604) 2023-04-05 16:27:48 +02:00
SilvanandGitHub 8b5217c06d fix(query): only active by org by primary domain (#5610) 2023-04-05 12:06:26 +00:00
SilvanandGitHub d981f0d348 fix(saml): correct handling of remove (#5606) 2023-04-05 11:42:00 +00:00
4c1169b562 feat(eventstore): order by creation_date and sequence (#5568)
* feat(eventstore): order by `creation_date` and `sequence`

* fix(logstore): use correct event type

---------

Co-authored-by: Livio Spring <[email protected]>
2023-04-05 09:34:24 +00:00
SilvanandGitHub d515e1a004 docs(actions): correct tokens in post authentication (#5600)
* docs(actions): correct tokens in post authentication

* docs(actions): correct context fields in complement token
2023-04-03 15:32:40 +00:00
SilvanandGitHub dd84b93ac3 fix(token): filter users by instance id (#5596)
* fix(token): filter users by instance id
2023-04-03 12:56:37 +00:00
SilvanandGitHub e688954308 feat: role claims for service user tokens (#5577)
tokens of service users can now contain role claims by requesting them through scopes
2023-04-03 14:26:51 +02:00
a3b36a0138 refactor(changes): use queries.SearchEvents (#5388)
* refactor(changes): use `queries.SearchEvents`

---------

Co-authored-by: Livio Spring <[email protected]>
2023-03-17 09:14:06 +00:00
9ff810eb92 fix(roles): remove org.create permission from org owner (#5444)
Co-authored-by: Livio Spring <[email protected]>
2023-03-14 16:48:39 +00:00
SilvanandGitHub eb4f7c5d7c fix(auth): update user grants before check (#5406) 2023-03-13 08:03:49 +01:00
SilvanandGitHub c8f206c438 fix(setup): check if indexes exist in step 9 (#5400)
* fix(setup): check if indexes exist in step 9

* fix(setup09): ignore the inverted index
2023-03-08 15:19:12 +00:00
SilvanandGitHub 20e4f1ce57 feat(actions): add fields to complement token flow (#5336)
* deprecated `ctx.v1.userinfo`-field in "pre userinfo creation" trigger in favour of `ctx.v1.claims`. The trigger now behaves the same as "pre access token creation"
* added `ctx.v1.claims` to "complement tokens" flow
* added `ctx.v1.grants` to "complement tokens" flow
* document `ctx.v1.getUser()` in "complement tokens" flow

* feat(actions): add getUser() and grant

* map user grants

* map claims

* feat(actions): claims in complement token ctx

* docs(actions): add new fields of complement token

* docs(actions): additions to complement token

* docs(actions): correct field names
2023-03-08 15:26:28 +01:00
SilvanandGitHub c8142030e9 fix(postgres): set dbname=postgres in admin mode (#5346) 2023-03-03 09:26:50 +00:00
SilvanandGitHub ed4983d3fd fix: emit only if data and marshal invalid metadata
* fix(emitter): only emit if there are log records

* fix(actions): marshal invalid metadata value into string
2023-03-01 17:05:12 +00:00
SilvanandGitHub 3dbb6f7c67 fix(setup): optimise events indexes (#5316) 2023-03-01 00:11:23 +00:00
SilvanandGitHub e38abdcdf3 perf: query data AS OF SYSTEM TIME (#5231)
Queries the data in the storage layser at the timestamp when the call hit the API layer
2023-02-27 22:36:43 +01:00
SilvanandGitHub 94116fa04b fix(storage): add indexes for auth.tokens (#5259)
* fix(storage): add indexes for `auth.tokens`

* refactor: naming
2023-02-21 14:46:47 +00:00
SilvanandGitHub 5cf27d7959 fix(defaults): tracing fraction as float (#5194)
Changes the type of the default tracing fraction to float so that it can get changed to less than every trace in the configuration
2023-02-17 14:32:52 +00:00
SilvanandGitHub c54ddc71a2 feat(actions): local users (#5089)
Actions are extended to to local users. It's possible to run custom code during registration and authentication of local users.
2023-01-25 13:08:01 +00:00
SilvanandGitHub 7b5135e637 fix(adminAPI): localize event type (#5059)
* fix(adminAPI): localisation of event types, aggregate types
* fix(adminAPI): validations of ListEvent request
* implement caching of editor user information
2023-01-19 15:50:05 +00:00
SilvanandGitHub 71bd19d690 fix: login name case insensitive (#5032)
checks for login names case insensitive during login
2023-01-16 13:07:31 +00:00
SilvanandGitHub 1bf1f335dc feat(admin-api): list events (#4989)
* docs: update cockroachdb version to 22.2
* feat(adminAPI): ListEventTypes returns the list of event types ZITADEL implements
* feat(adminAPI): ListAggregateTypes returns the list of aggregate types ZITADEL implements
* feat(adminAPI): ListEvents allows `IAM_OWNERS` to search for events
2023-01-16 11:30:03 +00:00
SilvanandGitHub 74c1c39207 fix: org unique check (#5033)
- all verified of domains are checked
- domains are checked case insensitive
- name is checked case insensitive
2023-01-16 09:55:19 +00:00
SilvanandGitHub 5c8cfa4167 docs(self-hosting): add env vars for proxy configuration (#4916) 2022-12-22 13:42:44 +01:00
SilvanandGitHub 188ff2be53 docs(scopes): improve description of org:id scope (#4911) 2022-12-21 11:33:31 +01:00
SilvanandGitHub fabecca4e4 fix(database): add MaxIdleConns configuration (#4856) 2022-12-08 15:22:39 +00:00