Commit Graph
100 Commits
Author SHA1 Message Date
Livio AmstutzandGitHub a3fb49db2c chore: test angular on PR (#3541)
* chore: test angular on PR

* publish go test coverage

* fix gorelease

* update node version
2022-04-29 14:08:42 +02:00
Livio AmstutzandGitHub 2af3e228e4 feat: set service name in tracing (#3533) 2022-04-28 17:35:56 +02:00
Livio AmstutzandGitHub 44a2b81bef feat: enable tracing (#3528) 2022-04-28 14:44:13 +02:00
Livio AmstutzandGitHub 00f7dbe875 fix: setup instance domain handling (#3529) 2022-04-28 10:30:41 +02:00
Livio AmstutzandGitHub fd1150f628 fix: check http methods on specific http2 routes (#3527)
* fix: check headers lowercase

* Update .releaserc.js

* fix: check http methods on specific http2 routes
2022-04-27 13:10:44 +02:00
Livio AmstutzandGitHub ab04655019 chore(v2): fix .goreleaser.yaml 2022-04-27 09:08:54 +00:00
Livio AmstutzandGitHub 9ffd83af7d fix: header matcher of grpc-web route (#3524) 2022-04-27 08:10:54 +00:00
Livio AmstutzandGitHub b867eff84c test: ensure consistency of update multiple sequences test (#3501) 2022-04-26 19:41:11 +00:00
Livio AmstutzandGitHub e9e332b909 feat: handle CORS for grpc-web (#3498) 2022-04-26 16:50:41 +02:00
Livio AmstutzandGitHub 32986aa60a feat: handle missing trailing slashes for console and login (#3490)
* handle calls without trailing slash

* build redirect uris correctly

* handle missing trailing slash for login

* sentry as http middleware

* import

* fix build origin
2022-04-26 12:13:16 +02:00
7a507fe63c fix: use correct encryption keys in addHuman and set primary instance domain (#3486)
Co-authored-by: Fabi <[email protected]>
2022-04-25 14:36:10 +00:00
Livio AmstutzandGitHub 81c010adaa fix(console): remove clear view (#3483) 2022-04-25 11:34:08 +00:00
Livio AmstutzandGitHub 2c4799c223 feat: complete dynamic domain handling (#3482)
* feat: dynamic issuer

* feat: default language from context

* remove zitadel docs from defaults

* remove ConsoleOverwriteDir

* remove notification endpoints from defaults

* custom domains in emails

* remove (external) domain

* external domain completely removed, console handling fixed

* fix test

* fix defaults.yaml
2022-04-25 11:16:36 +02:00
Livio AmstutzandGitHub 75ec73ca4a feat: dynamic issuer (#3481)
* feat: dynamic issuer

* dynamic domain handling

* key rotation durations

* feat: dynamic issuer

* make webauthn displayname dynamic
2022-04-25 10:01:17 +02:00
Livio AmstutzandGitHub a7816a43b1 refactor: remove commandNew struct (#3465)
* refactor: remove commandNew struct

* requested fixes
2022-04-20 14:59:37 +00:00
Livio AmstutzandGitHub 1305c14e49 feat: handle instanceID in projections (#3442)
* feat: handle instanceID in projections

* rename functions

* fix key lock

* fix import
2022-04-19 08:26:12 +02:00
Livio AmstutzandGitHub 4a0d61d75a feat: store assets in database (#3290)
* feat: use database as asset storage

* being only uploading assets if allowed

* tests

* fixes

* cleanup after merge

* renaming

* various fixes

* fix: change to repository event types and removed unused code

* feat: set default features

* error handling

* error handling and naming

* fix tests

* fix tests

* fix merge

* rename
2022-04-06 06:13:40 +00:00
Livio AmstutzandGitHub b949b8fc65 chore(deps): update oidc to 1.2.0 (#3363)
* chore(deps): update oidc to 1.2.0

* add comment
2022-04-05 07:22:00 +00:00
Livio AmstutzandGitHub 7d6a10015a feat: read masterkey from file or env (#3389)
* feat: read masterkey from file

* add read from env
2022-04-04 08:10:57 +00:00
Livio AmstutzandGitHub 5112aae177 feat: embed console into go binary (#3391) 2022-04-04 09:51:35 +02:00
Livio AmstutzandGitHub 87560157c1 fix: change to repository event types and removed unused code (#3386)
* fix: change to repository event types and removed unused code

* some fixes

* remove unused code
2022-03-31 11:36:26 +02:00
958362e6c9 feat: handle instance from context (#3382)
* commander

* commander

* selber!

* move to packages

* fix(errors): implement Is interface

* test: command

* test: commands

* add init steps

* setup tenant

* add default step yaml

* possibility to set password

* merge v2 into v2-commander

* fix: rename iam command side to instance

* fix: rename iam command side to instance

* fix: rename iam command side to instance

* fix: rename iam command side to instance

* fix: search query builder can filter events in memory

* fix: filters for add member

* fix(setup): add `ExternalSecure` to config

* chore: name iam to instance

* fix: matching

* remove unsued func

* base url

* base url

* test(command): filter funcs

* test: commands

* fix: rename orgiampolicy to domain policy

* start from init

* commands

* config

* fix indexes and add constraints

* fixes

* fix: merge conflicts

* fix: protos

* fix: md files

* setup

* add deprecated org iam policy again

* typo

* fix search query

* fix filter

* Apply suggestions from code review

* remove custom org from org setup

* add todos for verification

* change apps creation

* simplify package structure

* fix error

* move preparation helper for tests

* fix unique constraints

* fix config mapping in setup

* fix error handling in encryption_keys.go

* fix projection config

* fix query from old views to projection

* fix setup of mgmt api

* set iam project and fix instance projection

* fix tokens view

* fix steps.yaml and defaults.yaml

* fix projections

* change instance context to interface

* instance interceptors and additional events in setup

* cleanup

* tests for interceptors

* fix label policy

* add todo

* single api endpoint in environment.json

Co-authored-by: adlerhurst <[email protected]>
Co-authored-by: fabi <[email protected]>
2022-03-29 11:53:19 +02:00
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 AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub 585ebf9a81 fix: user search with login_name (e.g. password reset) (#3149) 2022-02-02 08:21:54 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub bf6cb59b87 fix: list IDPs on Org (#3141)
* fix: idp query

* fix: remove failed events
2022-02-01 08:32:59 +01:00
Livio AmstutzandGitHub f1b02254b2 fix: update OIDC lib to handle keys without use (#3123) 2022-01-28 14:03:22 +00:00
Livio AmstutzandGitHub 990be687c0 fix: handle first key rotation on newly created instance (#3118) 2022-01-28 08:24:34 +00:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 52da2354a3 fix: set gender correctly in userinfo (#3112) 2022-01-25 16:00:38 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 37d8e23186 fix: nil pointer in my user changes (#3086) 2022-01-21 12:29:40 +00:00
Livio AmstutzandGitHub 5af7d8315d fix: metadata query (#3084) 2022-01-21 10:30:43 +00:00
Livio AmstutzandGitHub 3ee3b8f6d3 fix: internal api health check (#3083) 2022-01-21 09:32:51 +00:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 24aef8d16e fix: cascading changes for usergrants when managing projects / projectgrants (#3035) 2022-01-20 08:33:51 +01:00
Livio AmstutzandGitHub c2e6fd8f40 fix(query): add user metadata projection (#3021)
* fix: add metadata projection

* cleanup
2022-01-18 14:15:00 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub 2355fcb7cf fix: handle domain remove correctly (#2978) 2022-01-11 11:00:42 +00:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 57368d151b fix: assert roles when using refresh token (#2868) 2021-12-17 16:11:18 +01:00
Livio AmstutzandGitHub 8b0c3e63d6 chore(deps): update github.com/duo-labs/webauthn (#2861) 2021-12-17 13:36:24 +01:00
Livio AmstutzandGitHub 27f87df676 fix: setup step 21 (#2864) 2021-12-17 10:11:57 +00:00
Livio AmstutzandGitHub 28d7acdf99 fix: template removed events on projections (#2863) 2021-12-17 08:31:39 +00:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 79f7c1198b feat: display login succeeded page only for native apps (#2839) 2021-12-14 09:47:49 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 75f3067d42 chore(deps): replace "github.com/ghodss/yaml" with "sigs.k8s.io/yaml" (#2812) 2021-12-08 16:26:12 +01:00
Livio AmstutzandGitHub 9967a3ee5e chore(deps): bump dependencies (#2811) 2021-12-08 16:25:28 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 211dc7c21f fix: add workaround for org check (if projection is not up-to-date) (#2800) 2021-12-07 15:54:33 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub a8eed4a215 fix: audience and empty app name (#2775) 2021-12-03 14:24:29 +01:00
Livio AmstutzandGitHub d7417b6ef6 fix: filter of users uniqueness (#2753) 2021-11-29 18:38:11 +01:00
Livio AmstutzandGitHub 7d45ae3c6c fix: filter of domain claimed users (#2752) 2021-11-29 17:36:24 +01:00
Livio AmstutzandGitHub 56e10ecf30 fix: set clustername in sql connection string (#2703) 2021-11-21 19:02:10 +01:00
Livio AmstutzandGitHub 004f14d1fe docs: add openid certification (#2705) 2021-11-18 19:15:09 +01:00
Livio AmstutzandGitHub b80751d7f7 fix: use PrivateLabelingOrgID for logo (#2690) 2021-11-15 16:18:27 +00:00
Livio AmstutzandGitHub ebe2fbe1d5 fix: rename lifetime to expiration of pwless link in ImportHumanUserResponse (#2687) 2021-11-15 14:24:45 +01:00
Livio AmstutzandGitHub bd9f621030 docs: revocation_endpoint (#2654) 2021-11-15 08:37:05 +00:00
Livio AmstutzandGitHub cfdb8c3301 fix: mitigate overload risk in processProject on user memberships (#2665) 2021-11-12 15:06:26 +01:00
Livio AmstutzandGitHub 4fc2582b4c fix: mitigate overload risk in processProject on user grant (#2662) 2021-11-12 11:11:37 +00:00
Livio AmstutzandGitHub 7324e776cf fix: features and texts models (#2653) 2021-11-12 09:50:37 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 037e1ab4ac fix: add cors (*) to openAPI endpoint (#2656) 2021-11-11 10:58:16 +01:00
Livio AmstutzandGitHub 92e9db3fa6 fix: project grpc converter (#2658) 2021-11-11 07:23:19 +00:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub ccf4828b50 feat: allow IAM and Org Owners to generate a passwordless registration link (#2619) 2021-11-05 14:57:10 +01:00
Livio AmstutzandGitHub 3a7d68fccd fix: error handling for refresh_token revocation (#2609) 2021-11-03 14:10:01 +01:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 6ef0d92200 docs: remove client credentials from supported grant types (#2586) 2021-10-28 16:06:48 +02:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 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 AmstutzandGitHub a4127278e7 fix: client secret verification (for introspection) (#2570) 2021-10-26 11:33:59 +02:00
Livio AmstutzandGitHub 686c0edb5c fix: return flow type (#2563) 2021-10-22 16:45:30 +02:00
Livio AmstutzandGitHub 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 AmstutzandGitHub b957f58e1e fix: idp remove (#2486) 2021-10-06 10:16:00 +02:00
Livio AmstutzandGitHub 73a51c1544 fix: handle various nil pointers (#2473) 2021-10-05 08:33:20 +02:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 18a0a16752 fix: grpc converter for idp in admin (#2477) 2021-10-04 16:47:59 +02:00
Livio AmstutzandGitHub 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 AmstutzandGitHub 415d0c7ab2 fix: webauthn support check (#2450) 2021-10-02 12:26:03 +02:00
Livio AmstutzandGitHub 4dbe68f626 fix: identifier for columns w/o table name / alias (#2449) 2021-10-01 07:45:45 +00:00