Commit Graph
100 Commits
Author SHA1 Message Date
SilvanandGitHub 1f30776fc2 fix(login): correct rendering of idps (#7151) 2024-01-05 14:35:51 +00:00
a5d4b08a99 fix(cleanup): cleanup all stuck states (#7145)
* fix(setup): unmarshal of failed step

* fix(cleanup): cleanup all stuck states

* use lastRun for repeatable steps

* typo

---------

Co-authored-by: Livio Spring <[email protected]>
2024-01-05 09:01:48 +00:00
SilvanandGitHub 41215bdc0a fix(setup): unmarshal of failed step (#7144) 2024-01-05 06:29:57 +00:00
SilvanandGitHub aa2d642e97 fix(handler): updated failed events (#7146) 2024-01-04 21:36:08 +00:00
SilvanandGitHub b7d027e2fd fix(db): always use begin tx (#7142)
* fix(db): always use begin tx

* fix(handler): timeout for begin
2024-01-04 16:12:20 +00:00
SilvanandGitHub 8bc56f6fe7 fix(query): escape wildcards in text search (#7131) (#7135)
* fix(query): escape like wildcards

* test: search query wildcards

* add do nothing
2024-01-02 16:27:36 +01:00
SilvanandGitHub 9892fd92b6 refactor: cleanup unused code (#7130)
* refactor: drop unused code

* refactor: drop unused code
2024-01-02 14:26:31 +00:00
SilvanandGitHub 4e3936b5bf ci: publish sha to docker registry (#7127) 2024-01-02 14:03:23 +00:00
SilvanandGitHub a8b8c89f73 perf(query): increase speed of user queries (#7126) (#7128)
* perf(query): increase speed of user queries
2024-01-02 14:41:46 +01:00
SilvanandGitHub cc2dd8b20b fix(eventstore): increase performance on push (#7125) 2023-12-31 15:30:25 +01:00
SilvanandGitHub 6d3ce8d5ab fix(projection): correct type cast of user grant reactivated (#7123)
* fix(projection): correct type cast of user grant reactivated

* test: correct mapper
2023-12-31 14:03:23 +01:00
SilvanandGitHub 5ce542b959 fix(handler): allow uint32 offset for migration scenarios (#7103) 2023-12-21 10:40:51 +00:00
ddbea119f1 fix(query): user performance (#6537)
* start user by id

* ignore debug bin

* use new user by id

* new sql

* fix(sql): replace STRING with text for psql compatabilit

* some changes

* fix: correct user queries

* fix tests

* unify sql statements

* use specific get user methods

* search login name case insensitive

* refactor: optimise user statements

* add index

* fix queries

* fix: correct domain segregation

* return all login names

* fix queries

* improve readability

* query should be correct now

* cleanup statements

* fix username / loginname handling

* fix: psql doesn't support create view if not exists

* fix: create pre-release

* ignore release comments

* add lower fields

* fix: always to lower

* update to latest projection

---------

Co-authored-by: Livio Spring <[email protected]>
2023-12-08 13:14:22 +01:00
SilvanandGitHub 060b4ab2f0 docs(10006): clarify required crdb versions (#7012) 2023-12-04 11:24:36 +01:00
SilvanandGitHub e3d1ca4d58 fix(eventstore): improve pagination of handler filter (#6968)
* fix(setup): add filter_offset to `projections.current_states`

* fix(eventstore): allow offset in query

* fix(handler): offset for already processed events
2023-12-01 12:25:41 +00:00
SilvanandGitHub 2ca88956b4 docs: add tracing.endpoint to defaults.yaml (#6824)
* docs: add `tracing.endpoint` to defaults.yaml

* docs: describe tracing types in defaults.yaml
2023-11-24 13:38:52 +01:00
SilvanandGitHub 9ed956383f fix(eventstore): correct handling of wrong unique fields (#6961) 2023-11-23 06:15:40 +01:00
SilvanandGitHub 0948a0b9ae ci: set runner group on parallel jobs (#6916) 2023-11-14 10:48:41 +00:00
SilvanandGitHub f8bf8ea256 fix(eventstore): differentiate unique constraint error (#6832)
* fix(eventstore): differentiate unique constraint error format

* docs: add comment to eventstore vars

* fix(eventstore): return correct error type if unique constraint already exists
2023-10-27 14:10:01 +02:00
SilvanandGitHub 0187487f26 chore: correct tracing of trigger function (#6825)
* chore: correct tracing of trigger function

* refactor: remove import
2023-10-26 17:07:56 +02:00
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