504fe5b761
cherry pick changes from main ( #3371 )
...
* feat: remove exif data from uploaded images (#3221 )
* feat: remove exif tags from images
* feat: remove exif data
* feat: remove exif
* fix: add preferredLoginName to user grant response (#3271 )
* chore: log webauthn parse error (#3272 )
* log error
* log error
* feat: Help link in privacy policy
* fix: convert correct detail data on organization (#3279 )
* fix: handle empty editor users
* fix: add some missing translations (#3291 )
* fix: org policy translations
* fix: metadata event types translation
* fix: translations
* fix: filter resource owner correctly on project grant members (#3281 )
* fix: filter resource owner correctly on project grant members
* fix: filter resource owner correctly on project grant members
* fix: add orgIDs to zitadel permissions request
Co-authored-by: fabi <[email protected] >
* fix: get IAM memberships correctly in MyZitadelPermissions (#3309 )
* fix: correct login names on auth and notification users (#3349 )
* fix: correct login names on auth and notification users
* fix: migration
* fix: handle resource owner in action flows (#3361 )
* fix merge
* fix: exchange exif library (#3366 )
* fix: exchange exif library
* ignore tiffs
* requested fixes
* feat: Help link in privacy policy
Co-authored-by: Fabi <[email protected] >
Co-authored-by: fabi <[email protected] >
2022-03-24 14:00:24 +01:00
Livio Amstutz and GitHub
56b916a2b0
feat: projections auto create their tables ( #3324 )
...
* begin init checks for projections
* first projection checks
* debug notification providers with query fixes
* more projections and first index
* more projections
* more projections
* finish projections
* fix tests (remove db name)
* create tables in setup
* fix logging / error handling
* add tenant to views
* rename tenant to instance_id
* add instance_id to all projections
* add instance_id to all queries
* correct instance_id on projections
* add instance_id to failed_events
* use separate context for instance
* implement features projection
* implement features projection
* remove unique constraint from setup when migration failed
* add error to failed setup event
* add instance_id to primary keys
* fix IAM projection
* remove old migrations folder
* fix keysFromYAML test
2022-03-23 09:02:39 +01:00
Livio Amstutz and GitHub
5463244376
feat: encryption keys in database ( #3265 )
...
* enable overwrite of adminUser fields in defaults.yaml
* create schema and table
* cli: create keys
* cli: create keys
* read encryptionkey from db
* merge v2
* file names
* cleanup defaults.yaml
* remove custom errors
* load encryptionKeys on start
* cleanup
* fix merge
* update system defaults
* fix error message
2022-03-14 07:55:09 +01:00
389eb4a27a
feat: run on a single port ( #3163 )
...
* start v2
* start
* run
* some cleanup
* remove v2 pkg again
* simplify
* webauthn
* remove unused config
* fix login path in Dockerfile
* fix asset_generator.go
* health handler
* fix grpc web
* refactor
* merge
* build new main.go
* run new main.go
* update logging pkg
* fix error msg
* update logging
* cleanup
* cleanup
* go mod tidy
* change localDevMode
* fix customEndpoints
* update logging
* comments
* change local flag to external configs
* fix location generated go code
* fix
Co-authored-by: fforootd <[email protected] >
2022-02-14 17:22:30 +01:00
Livio Amstutz and GitHub
2d208dd8ba
fix: remove operator ( #3195 )
2022-02-11 15:00:14 +01:00
5d4351f47c
feat: merge main into v2 ( #3193 )
...
* feat(console): personal access tokens (#3185 )
* token dialog, pat module
* pat components
* i18n, warn dialog, add token dialog
* cleanup dialog
* clipboard
* return creationDate of pat
* i18n
Co-authored-by: Livio Amstutz <[email protected] >
* fix(cockroach): update to 21.2.5 (#3189 )
Co-authored-by: Max Peintner <[email protected] >
Co-authored-by: Silvan <[email protected] >
2022-02-11 13:33:31 +01:00
699fdaf68e
feat: add personal access tokens for service users ( #2974 )
...
* feat: add machine tokens
* fix test
* rename to pat
* fix merge and tests
* fix scopes
* fix migration version
* fix test
* Update internal/repository/user/personal_access_token.go
Co-authored-by: Fabi <[email protected] >
Co-authored-by: Fabi <[email protected] >
2022-02-08 09:37:28 +01:00
Livio Amstutz and GitHub
78af86db98
fix: checkAdditionalActionAllowed for unlimited ( #3165 )
2022-02-07 10:36:18 +01:00
ab62f2d79d
fix: return full url of assets in admin and mgmt api ( #3157 )
...
* fix: return full url of assets in admin and mgmt api
* remove asset loading over asset service
* remove unused code
Co-authored-by: Max Peintner <[email protected] >
2022-02-04 15:02:18 +01:00
Livio Amstutz and GitHub
1367a2e139
feat: limit amount of active actions ( #3143 )
...
* max actions
* fix: max allowed actions
* fix: max allowed actions
* fix tests
2022-02-02 09:04:05 +01:00
Livio Amstutz and GitHub
585ebf9a81
fix: user search with login_name (e.g. password reset) ( #3149 )
2022-02-02 08:21:54 +01:00
Livio Amstutz and GitHub
f96f62a1ab
fix: set correct state of idp in old view ( #3148 )
...
* fix: set correct state of idp in old view
* add italian to language selection in login
2022-02-01 18:12:18 +01:00
Livio Amstutz and GitHub
bf6cb59b87
fix: list IDPs on Org ( #3141 )
...
* fix: idp query
* fix: remove failed events
2022-02-01 08:32:59 +01:00
Livio Amstutz and GitHub
f1b02254b2
fix: update OIDC lib to handle keys without use ( #3123 )
2022-01-28 14:03:22 +00:00
Livio Amstutz and GitHub
990be687c0
fix: handle first key rotation on newly created instance ( #3118 )
2022-01-28 08:24:34 +00:00
Livio Amstutz and GitHub
e99b7f4972
fix: move activity log to queries and remove old code ( #3096 )
...
* move changes to queries and remove old code
* fix changes query
* remove unused code
* fix sorting
* fix sorting
* refactor and remove old code
* remove accidental go.mod replace
* add missing file
* remove listDetail from ChangesResponse
2022-01-26 10:16:33 +01:00
Livio Amstutz and GitHub
52da2354a3
fix: set gender correctly in userinfo ( #3112 )
2022-01-25 16:00:38 +01:00
Livio Amstutz and GitHub
542651707a
fix: state on user projection ( #3109 )
...
* fix: state on user projection
* fix: state on user projection
* don't change user state on HumanEmailVerifiedEvent
2022-01-25 11:35:38 +01:00
Livio Amstutz and GitHub
37d8e23186
fix: nil pointer in my user changes ( #3086 )
2022-01-21 12:29:40 +00:00
Livio Amstutz and GitHub
5af7d8315d
fix: metadata query ( #3084 )
2022-01-21 10:30:43 +00:00
Livio Amstutz and GitHub
3ee3b8f6d3
fix: internal api health check ( #3083 )
2022-01-21 09:32:51 +00:00
Livio Amstutz and GitHub
44d78df4d4
feat: user query ( #3075 )
...
* user queries
* user query
* user query
* user tests
* remove old code
* user metadata
* cleanup
* fix merge
* cleanup
* cleanup
* fixes
2022-01-20 14:40:25 +00:00
Livio Amstutz and GitHub
24aef8d16e
fix: cascading changes for usergrants when managing projects / projectgrants ( #3035 )
2022-01-20 08:33:51 +01:00
Livio Amstutz and GitHub
c2e6fd8f40
fix(query): add user metadata projection ( #3021 )
...
* fix: add metadata projection
* cleanup
2022-01-18 14:15:00 +01:00
Livio Amstutz and GitHub
3d14653a08
fix: panics ( #2993 )
...
* add missing return
Signed-off-by: Livio Amstutz <[email protected] >
* add nil pointer check
Signed-off-by: Livio Amstutz <[email protected] >
2022-01-12 15:31:11 +01:00
Livio Amstutz and GitHub
9ab566fdeb
fix(query): keys ( #2755 )
...
* fix: add keys to projections
* change to multiple tables
* query keys
* query keys
* fix race condition
* fix timer reset
* begin tests
* tests
* remove migration
* only send to keyChannel if not nil
2022-01-12 13:22:04 +01:00
Livio Amstutz and GitHub
2355fcb7cf
fix: handle domain remove correctly ( #2978 )
2022-01-11 11:00:42 +00:00
Livio Amstutz and GitHub
19b095e6c2
fix: check resourceowner not empty string ( #2922 )
...
* fix: check resourceowner not empty string
* fix test
* fix tests
* fix tests of command pkg
* enable RoleSelfManagementGlobal as org member role
* fix tests of query pkg
* Update eventstore_test.go
* update docusaurus
2022-01-06 08:29:58 +01:00
Livio Amstutz and GitHub
57368d151b
fix: assert roles when using refresh token ( #2868 )
2021-12-17 16:11:18 +01:00
Livio Amstutz and GitHub
8b0c3e63d6
chore(deps): update github.com/duo-labs/webauthn ( #2861 )
2021-12-17 13:36:24 +01:00
Livio Amstutz and GitHub
27f87df676
fix: setup step 21 ( #2864 )
2021-12-17 10:11:57 +00:00
Livio Amstutz and GitHub
28d7acdf99
fix: template removed events on projections ( #2863 )
2021-12-17 08:31:39 +00:00
Livio Amstutz and GitHub
ae840f364c
fix(queries): authn keys ( #2820 )
...
* begin authn keys
* single table for state change
* add key type
* begin authn keys query
* query
* tests
* fix merge
* remove wrong migration version
* improve filter
* Update projection.go
* cleanup
2021-12-14 10:57:20 +01:00
Livio Amstutz and GitHub
79f7c1198b
feat: display login succeeded page only for native apps ( #2839 )
2021-12-14 09:47:49 +01:00
Livio Amstutz and GitHub
2f7d8ca557
fix: client secret verification (for introspection) ( #2825 )
...
* fix: client secret verification (for introspection)
* revert change for ProjectIDAndOriginsByClientID
2021-12-10 09:25:17 +00:00
43f15953c3
feat: allow global org users to create org and self delete ( #2759 )
...
* fix: grant PROJECT_OWNER_VIEWER_GLOBAL org.create permission
* Update authz.yaml
* feat: delete my user
* console things
* lint
* signout after deletion
* stylelint rule
* Update authz.yaml
* Update authz.yaml
* setup step
* role SELF_MANAGEMENT_GLOBAL setup
* fix: change default role on global org
* Apply suggestions from code review
Co-authored-by: Fabi <[email protected] >
* Update console/src/assets/i18n/it.json
Co-authored-by: Fabi <[email protected] >
Co-authored-by: Max Peintner <[email protected] >
Co-authored-by: Fabi <[email protected] >
2021-12-09 08:41:21 +00:00
Livio Amstutz and GitHub
75f3067d42
chore(deps): replace "github.com/ghodss/yaml" with "sigs.k8s.io/yaml" ( #2812 )
2021-12-08 16:26:12 +01:00
Livio Amstutz and GitHub
9967a3ee5e
chore(deps): bump dependencies ( #2811 )
2021-12-08 16:25:28 +01:00
Livio Amstutz and GitHub
65a6fb638b
fix: add authnkeys projection ( #2801 )
...
* begin authn keys
* single table for state change
* add key type
* rename migration
* format imports
* fix test
2021-12-08 16:16:48 +01:00
Livio Amstutz and GitHub
211dc7c21f
fix: add workaround for org check (if projection is not up-to-date) ( #2800 )
2021-12-07 15:54:33 +01:00
Livio Amstutz and GitHub
2ad03285f1
fix: user projection ( #2795 )
...
* fix: first- and lastname changes on user
* add reset migration
2021-12-06 17:22:59 +01:00
f0a77e80bf
fix: add keys to projections ( #2728 )
...
* fix: add keys to projections
* change to multiple tables
* merge
* change migration version
* merge
* Update migrations/cockroach/V1.98__keys.sql
Co-authored-by: Silvan <[email protected] >
* Update migrations/cockroach/V1.98__keys.sql
Co-authored-by: Silvan <[email protected] >
* check keys
Co-authored-by: Silvan <[email protected] >
2021-12-06 16:57:35 +01:00
Livio Amstutz and GitHub
81efd86a8d
fix: improve db call when only count is required (on views) ( #2769 )
...
* fix: improve db call when only count is required (old views)
* Update query.go
2021-12-06 16:28:49 +01:00
Livio Amstutz and GitHub
a8eed4a215
fix: audience and empty app name ( #2775 )
2021-12-03 14:24:29 +01:00
Livio Amstutz and GitHub
d7417b6ef6
fix: filter of users uniqueness ( #2753 )
2021-11-29 18:38:11 +01:00
Livio Amstutz and GitHub
7d45ae3c6c
fix: filter of domain claimed users ( #2752 )
2021-11-29 17:36:24 +01:00
Livio Amstutz and GitHub
56e10ecf30
fix: set clustername in sql connection string ( #2703 )
2021-11-21 19:02:10 +01:00
Livio Amstutz and GitHub
004f14d1fe
docs: add openid certification ( #2705 )
2021-11-18 19:15:09 +01:00
Livio Amstutz and GitHub
b80751d7f7
fix: use PrivateLabelingOrgID for logo ( #2690 )
2021-11-15 16:18:27 +00:00
Livio Amstutz and GitHub
ebe2fbe1d5
fix: rename lifetime to expiration of pwless link in ImportHumanUserResponse ( #2687 )
2021-11-15 14:24:45 +01:00
Livio Amstutz and GitHub
bd9f621030
docs: revocation_endpoint ( #2654 )
2021-11-15 08:37:05 +00:00
Livio Amstutz and GitHub
cfdb8c3301
fix: mitigate overload risk in processProject on user memberships ( #2665 )
2021-11-12 15:06:26 +01:00
Livio Amstutz and GitHub
4fc2582b4c
fix: mitigate overload risk in processProject on user grant ( #2662 )
2021-11-12 11:11:37 +00:00
Livio Amstutz and GitHub
7324e776cf
fix: features and texts models ( #2653 )
2021-11-12 09:50:37 +01:00
Livio Amstutz and GitHub
5bc0520adb
docs: fix jwt profile iat and exp ( #2660 )
2021-11-11 17:56:30 +01:00
fef9eb91f9
docs: add swagger editor links ( #2657 )
...
* docs: add swagger editor links
* Apply suggestions from code review
Co-authored-by: Florian Forster <[email protected] >
Co-authored-by: Florian Forster <[email protected] >
2021-11-11 13:56:16 +01:00
Livio Amstutz and GitHub
037e1ab4ac
fix: add cors (*) to openAPI endpoint ( #2656 )
2021-11-11 10:58:16 +01:00
Livio Amstutz and GitHub
92e9db3fa6
fix: project grpc converter ( #2658 )
2021-11-11 07:23:19 +00:00
Livio Amstutz and GitHub
685ffc5dc7
fix: nil pointer in external providers ( #2642 )
...
* fix: nil pointer in external providers
* fix returns
2021-11-09 08:13:17 +00:00
Livio Amstutz and GitHub
af1f10b7ca
fix: check login policy before register and password check ( #2611 )
...
* fix: check login policy before register and password check
* remove accidentally pushed overwrite
* Update en.yaml
2021-11-08 07:42:07 +00:00
Livio Amstutz and GitHub
ccf4828b50
feat: allow IAM and Org Owners to generate a passwordless registration link ( #2619 )
2021-11-05 14:57:10 +01:00
Livio Amstutz and GitHub
3a7d68fccd
fix: error handling for refresh_token revocation ( #2609 )
2021-11-03 14:10:01 +01:00
Livio Amstutz and GitHub
fc6154cffc
feat: token revocation and OP certification ( #2594 )
...
* fix: try using only user session if no user is set (id_token_hint) on prompt none
* fix caos errors As implementation
* implement request mode
* return explicit error on invalid refresh token use
* begin token revocation
* token revocation
* tests
* tests
* cleanup
* set op config
* add revocation endpoint to config
* add revocation endpoint to config
* migration version
* error handling in token revocation
* migration version
* update oidc lib to 1.0.0
2021-11-03 08:35:24 +01:00
Livio Amstutz and GitHub
6ef0d92200
docs: remove client credentials from supported grant types ( #2586 )
2021-10-28 16:06:48 +02:00
Livio Amstutz and GitHub
b3b4d5dde9
fix: return auth request even on error (in next steps) ( #2588 )
...
* fix return auth request even on error (in next steps)
* Update README.md
* Update README.md
2021-10-28 14:50:29 +02:00
Livio Amstutz and GitHub
f1afdef7fb
fix: remove vulnerable dependencies ( #2577 )
...
* fix: remove vulnerable dependencies
* fix: replace vulnerable dependencies (gin-gonic)
* fix: replace vulnerable dependencies (gin-gonic)
2021-10-27 14:55:03 +02:00
Livio Amstutz and GitHub
a4127278e7
fix: client secret verification (for introspection) ( #2570 )
2021-10-26 11:33:59 +02:00
Livio Amstutz and GitHub
686c0edb5c
fix: return flow type ( #2563 )
2021-10-22 16:45:30 +02:00
Livio Amstutz and GitHub
f5661c6e61
fix: respect requested org (primary domain scope) for private labeling ( #2561 )
...
* fix: handle private labeling on login page without auth request
* fix: respect requested org (primary domain scope) for private labeling again
* respect requested org (primary domain scope) for private labeling
2021-10-22 13:53:28 +00:00
b0bcefd202
fix: actions ( #2547 )
...
* fix: external login
* fix: query flow types correct
* fix: queries of action statements
Co-authored-by: fabi <[email protected] >
2021-10-21 14:30:09 +02:00
Livio Amstutz and GitHub
b957f58e1e
fix: idp remove ( #2486 )
2021-10-06 10:16:00 +02:00
Livio Amstutz and GitHub
73a51c1544
fix: handle various nil pointers ( #2473 )
2021-10-05 08:33:20 +02:00
Livio Amstutz and GitHub
318fa25061
chore: set localhost as local default domain ( #2476 )
2021-10-05 07:52:36 +02:00
eb60fe8582
docs: improve docs with images ( #2474 )
...
* docs: exchange auth flow from mermaid to image
* docs: img
Co-authored-by: fabi <[email protected] >
2021-10-04 17:11:16 +02:00
Livio Amstutz and GitHub
18a0a16752
fix: grpc converter for idp in admin ( #2477 )
2021-10-04 16:47:59 +02:00
Livio Amstutz and GitHub
52c1494fe9
feat: choose preferred WebAuthN platform for passwordless registration ( #2469 )
...
* feat: request preferred platform type for passwordless registration when using link
* add text in console
2021-10-04 16:19:21 +02:00
Livio Amstutz and GitHub
415d0c7ab2
fix: webauthn support check ( #2450 )
2021-10-02 12:26:03 +02:00
Livio Amstutz and GitHub
4dbe68f626
fix: identifier for columns w/o table name / alias ( #2449 )
2021-10-01 07:45:45 +00:00
Livio Amstutz and GitHub
244d945886
chore: enable testExecuter to test multi statement ( #2448 )
...
* chore: enable testExecuter to test multi statement
* remove todo
2021-09-30 09:26:29 +00:00
Livio Amstutz and GitHub
5e110f0a48
fix: typo in migration 1.73 ( #2435 )
2021-09-28 12:49:09 +00:00
Livio Amstutz and GitHub
b96291ec8d
fix: save creation and change date of auth requests in db ( #2429 )
...
* fix: save creation and change date of auth requests in db (prepare for cleanup)
* Update cache.go
2021-09-28 09:34:44 +00:00
ed80a8bb1e
feat: actions ( #2377 )
...
* feat(actions): begin api
* feat(actions): begin api
* api and projections
* fix: handle multiple statements for a single event in projections
* export func type
* fix test
* update to new reduce interface
* flows in login
* feat: jwt idp
* feat: command side
* feat: add tests
* actions and flows
* fill idp views with jwt idps and return apis
* add jwtEndpoint to jwt idp
* begin jwt request handling
* add feature
* merge
* merge
* handle jwt idp
* cleanup
* bug fixes
* autoregister
* get token from specific header name
* fix: proto
* fixes
* i18n
* begin tests
* fix and log http proxy
* remove docker cache
* fixes
* usergrants in actions api
* tests adn cleanup
* cleanup
* fix add user grant
* set login context
* i18n
Co-authored-by: fabi <[email protected] >
2021-09-27 13:43:49 +02:00
Livio Amstutz and GitHub
5c32fc9c12
fix(operator): proxy and asset storage secrets handling ( #2403 )
...
* fix(operator): proxy and asset storage secrets handling
* fix test
2021-09-24 10:25:50 +02:00
Livio Amstutz and GitHub
b90d1cfaf8
chore(workflow): use event push only on main ( #2381 )
2021-09-23 10:04:46 +02:00
Livio Amstutz and GitHub
3f15d76660
docs: update rate limits ( #2382 )
...
* docs: update rate limits
* remove remark
2021-09-22 06:49:47 +00:00
Livio Amstutz and GitHub
8883d74e3d
fix: check login policy state for idp policy mgmt ( #2384 )
2021-09-17 13:45:14 +02:00
Livio Amstutz and GitHub
d090f12672
fix: set active org to local and session storage ( #2380 )
2021-09-16 09:48:56 +00:00
Livio Amstutz and GitHub
0f9a939f44
feat: set env vars for http proxy ( #2379 )
2021-09-16 08:43:04 +00:00
Livio Amstutz and GitHub
f39ff13acb
fix: check get origins and projectID only for tokens with clientID ( #2378 )
2021-09-16 08:07:48 +00:00
b6b5b1b782
feat: jwt as idp ( #2363 )
...
* feat: jwt idp
* feat: command side
* feat: add tests
* fill idp views with jwt idps and return apis
* add jwtEndpoint to jwt idp
* begin jwt request handling
* merge
* handle jwt idp
* cleanup
* fixes
* autoregister
* get token from specific header name
* error handling
* fix texts
* handle renderExternalNotFoundOption
Co-authored-by: fabi <[email protected] >
2021-09-14 15:15:01 +02:00
Livio Amstutz and GitHub
4e1d42259c
chore(workflow): enable builds on PR (for forks) ( #2364 )
2021-09-14 13:43:37 +02:00
Livio Amstutz and GitHub
257bf90f7e
fix: UserByIDAndResourceOwner query ( #2340 )
2021-09-09 11:10:06 +00:00
1ac1492fd3
fix: handle multiple statements for a single event in projections ( #2313 )
...
* fix: handle multiple statements for a single event in projections
* export func type
* fix test
* Update internal/eventstore/handler/crdb/statement.go
Co-authored-by: Silvan <[email protected] >
* Update internal/eventstore/handler/crdb/statement.go
Co-authored-by: Silvan <[email protected] >
* change to pointers
* add error test case
Co-authored-by: Silvan <[email protected] >
2021-09-08 13:54:31 +02:00
Livio Amstutz and GitHub
b5a6e25e9d
fix: handle private labeling on login page without auth request ( #2309 )
...
* fix: handle private labeling on login page without auth request
* fix: respect requested org (primary domain scope) for private labeling again
2021-09-02 18:29:42 +02:00
Livio Amstutz and GitHub
34002ec834
fix: check domain of username not claimed by other organisation and cleanup ( #2265 )
...
* fix: register human
* fix: check domain of username not claimed by other organisation
* fix: create setup step to create domain claimed events for invalid users
* Update setup_step19.go
2021-08-25 09:12:24 +00:00
Livio Amstutz and GitHub
961cd4bff6
docs: fix jwt profile requests ( #2227 )
2021-08-19 16:22:56 +02:00
Livio Amstutz and GitHub
9ba8184829
fix: remove duplicate pw and otp verification ( #2226 )
...
* fix: save data (userAgentID) of otp verified event
* fix: change event to human.seftregistered on org setup
* fix: change event to human.seftregistered on org setup only from login
* fix: set password
2021-08-18 17:04:56 +02:00
Livio Amstutz and GitHub
0b3155b8ab
fix: error page ( #2205 )
2021-08-18 06:39:26 +00:00
Livio Amstutz and GitHub
261b652b82
fix: set correct enum type for u2f and otp init ( #2224 )
2021-08-18 08:08:50 +02:00
Livio Amstutz and GitHub
490d087d45
fix: set correct username / preferred login name after idp callback ( #2189 )
2021-08-16 07:05:56 +02:00