Commit Graph
100 Commits
Author SHA1 Message Date
Livio AmstutzandGitHub e89b2be1f1 fix: eventListener in input_suffix_offset.js (#2053) 2021-07-21 09:23:55 +00:00
Livio AmstutzandGitHub 21001862ae fix: update oidc lib to fix userinfo claims in id_token (#2052) 2021-07-21 09:00:04 +02:00
Livio AmstutzandGitHub 413ed80611 fix: custom message texts (#2046)
* fix: grpc implementation of custom message texts

* fix: proto definition of RemoveHumanAvatar in mgmt api

* fix: DeleteCustomText in view (respect key)
2021-07-20 11:40:53 +02:00
Livio AmstutzandGitHub 9413fc19ff fix: parsing of ip address (#2045) 2021-07-20 10:10:48 +02:00
Livio AmstutzandGitHub 87ef8f454a fix: grpc status in sentry and validation interceptors (#2012) 2021-07-13 15:42:41 +02:00
Livio AmstutzandGitHub 7ebf0333c3 fix: filter event_data (#2011) 2021-07-12 14:26:54 +00:00
Livio AmstutzandGitHub f7aa2f6b25 fix: handle closed channels on unsubscribe (#1995) 2021-07-09 11:33:43 +02:00
Livio AmstutzandGitHub 09b5c964cc feat: handle ui_locales in login (#1994)
* fix: handle ui_locales in login

* move supportedlanguage func into i18n package

* update oidc pkg
2021-07-09 07:45:31 +00:00
Livio AmstutzandGitHub f93337e99b fix: race condition in auth request unmarshalling (#1993) 2021-07-08 16:38:34 +00:00
Livio AmstutzandGitHub 10cae58505 fix: log error reason on terminate session (#1973) 2021-07-08 13:55:21 +02:00
Livio AmstutzandGitHub 38a4683bab fix: role assertion (#1986)
* fix: enum to display access token role assertion

* improve assertion descriptions

* fix nil pointer
2021-07-07 09:51:20 +00:00
Livio AmstutzandGitHub 0e472a347f fix: add sentry in ui, http and projection handlers (#1977)
* fix: add sentry in ui, http and projection handlers

* fix test
2021-07-06 13:36:35 +02:00
Livio AmstutzandGitHub 20f84ef469 fix: template names in login (#1974)
* fix: template names in login

* fix: error.html
2021-07-06 11:56:43 +02:00
Livio AmstutzandGitHub 7c0bc8f63d chore: add generated asset files to .gitignore (#1971) 2021-07-05 11:08:58 +00:00
Livio AmstutzandGitHub 820df1571b fix: migration version of privacy policy (#1968) 2021-07-05 09:00:22 +00:00
Livio AmstutzandGitHub 91f1c88d4e fix: add option to disable asset storage (#1878)
* fix: add no storage option

* improve error handling
2021-07-02 13:55:52 +02:00
Livio AmstutzandGitHub 62b4df8c09 fix: user grant change (#1953) 2021-07-01 15:08:40 +00:00
Livio AmstutzandGitHub c6ad784a6c fix: check oidc / api config (#1940) 2021-06-27 09:20:59 +00:00
Livio AmstutzandGitHub 4ecbb932e8 chore(issues): add links to discussions for feature requests (#1934)
* add links to discussions in issues

* delete feature request template

* add emoji to bug report template
2021-06-25 12:04:36 +02:00
Livio AmstutzandGitHub c93e3370d2 chore(dependencies): set labels for dependabot PR (#1930)
* chore(dependencies): set labels for dependabot PR

* Update dependabot.yml
2021-06-24 15:44:18 +00:00
Livio AmstutzandGitHub 3fde4aa1c2 chore: align go.mod version for pipeline (#1922) 2021-06-22 15:18:22 +02:00
Livio AmstutzandGitHub 796cbc8998 fix: subscription (#1918)
* fix: disable button until redirect is ready

* fix: hide unnecessary button

* fix: format audit log retention

* fix: enable descriptions to be empty

* fix: enable descriptions to be empty
2021-06-21 15:35:00 +00:00
Livio AmstutzandGitHub ab88d311f3 fix: create label policy if not exists on font upload (#1898) 2021-06-18 08:12:40 +00:00
Livio AmstutzandGitHub 32f8545082 fix: label policy fixes (#1886)
* fix: check correct permission for label policy in console policy grid

* fix: add next steps for label policy detail

* fix: add label policy link in console home

* fix: i18n of EN features

* fix: set font color on preview

* fix: handle label policy remove in write model

* fix: add more content-types for font upload

* fix: add label policy link in console home

* fix: dont return error when bucket does not exists

* fix: iam access pref

* fix: EN i18n for apply button
2021-06-17 14:10:14 +02:00
Livio AmstutzandGitHub 82ae9dd459 chore(workflow): add possibility for manual pipeline trigger (#1889) 2021-06-17 10:57:47 +02:00
Livio AmstutzandGitHub 3062a6cf9b chore(workflow): push images only on main branch (#1873)
* chore(workflow): push images only on CAOS repositories

* chore(workflow): push images only on CAOS repositories

* chore(workflow): push images only on CAOS repositories

* chore(workflow): push images only on CAOS repositories

* chore(workflow): push images only on not forked repositories

* print full repo name

* print full repo name

* print full repo name

* print full repo name

* print full repo name

* print full event

* print full event

* print full event

* use separate workflows for release and PR

* use separate workflows for release and PR
2021-06-16 12:01:29 +02:00
Livio AmstutzandGitHub 4a2ca5a1e8 fix: handle reauth correctly (max_age=0 or prompt=login) (#1870)
* max age

* merge main

* fix when no prompt is set

* fix: update oidc pkg

* fix tests
2021-06-16 10:02:15 +02:00
Livio AmstutzandGitHub 1e1ded440c chore(workflow): run on pullrequest (#1871) 2021-06-15 14:27:54 +02:00
Livio AmstutzandGitHub ab78b34c6c feat: request registration process by prompt (#1798)
* feat: request registration process by prompt

* fix merge

* add prompt create to docs
2021-06-14 10:40:38 +02:00
Livio AmstutzandGitHub 770994e143 fix: add avatar url in members, user grants, session and oidc responses (#1852)
* fix: add avatar url in members, user grants, session and oidc responses

* fix auth request tests
2021-06-11 13:20:39 +02:00
Livio AmstutzandGitHub 6830de6385 feat: login success page (#1849)
* feat: login success page

* fix: script import on mfa verify
2021-06-10 14:18:07 +02:00
Livio AmstutzandGitHub 67462eefe0 fix: add preferred login name of editor to changes (#1847)
* fix: add preferred login name of editor to changes

* proto linting
2021-06-10 11:29:34 +02:00
Livio AmstutzandGitHub 255139862d fix: email template (#1830)
* fix: email template

* fix: email template
2021-06-08 15:12:52 +02:00
81974b977d fix: label policy (#1828)
* fix: font color

* fix: assets from iam when policy is default

* fix: remove multiple files

* fix mock storage

* doc: add asset api

* build assets docs

* fix operator test

* docs

* fix remove assets from org label policy and not default

* fix remove label policy assets and feature downgrade correctly

* fix storage mock

* Update docs/docs/apis/apis.md

Co-authored-by: fabi <[email protected]>
Co-authored-by: Fabi <[email protected]>
2021-06-08 09:48:44 +02:00
Livio AmstutzandGitHub 0ed722395e fix: english translation file (#1825) 2021-06-07 08:19:51 +02:00
Livio AmstutzandGitHub 9ffc9d9330 fix: check if org exists when setting features (#1813)
* fix: check if org exists when setting features

* fix tests
2021-06-04 15:44:45 +02:00
Livio AmstutzandGitHub 3dba12c0d4 fix: handle logout correctly on tokens (#1809) 2021-06-03 08:37:58 +02:00
Livio AmstutzandGitHub a107bb5fd9 fix: generate statik for console (#1808) 2021-06-02 17:41:39 +02:00
Livio AmstutzandGitHub 92506d69c0 fix: handle logout correctly on tokens (#1803) 2021-06-01 13:30:29 +02:00
Livio AmstutzandGitHub 4fde6df477 fix: check refresh token grant type (#1796) 2021-05-31 12:27:32 +02:00
Livio AmstutzandGitHub f8ab1f5b7b fix: refresh token activation (#1795)
* fix: oidc grant type check

* docs: add offline_access scope

* docs: update refresh token status in supported grant types

* fix: update oidc pkg
2021-05-31 11:06:01 +02:00
Livio AmstutzandGitHub bf4c4d881d fix: access tokens for service users and refresh token infos (#1779)
* fix: access token for service user

* handle info from refresh request

* uniqueness

* postpone access token uniqueness change
2021-05-26 09:01:07 +02:00
Livio AmstutzandGitHub a8ff292470 fix: migration version (#1767) 2021-05-20 14:24:36 +00:00
Livio AmstutzandGitHub 8e19dc1868 fix: correct json name of clientId in key.json (#1760) 2021-05-20 13:47:22 +00:00
ec5020bebc feat: refresh token (#1728)
* begin refresh tokens

* refresh tokens

* list and revoke refresh tokens

* handle remove

* tests for refresh tokens

* uniqueness and default expiration

* rename oidc token methods

* cleanup

* migration version

* Update internal/static/i18n/en.yaml

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

* fixes

* feat: update oidc pkg for refresh tokens

Co-authored-by: Fabi <[email protected]>
2021-05-20 11:33:35 +00:00
Livio AmstutzGitHubMax PeintnerSilvandependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2e8fa82261 feat: add additional origins on applications (#1691)
* feat: add additional origins on applications

* app additional redirects

* chore(deps-dev): bump @angular/cli from 11.2.8 to 11.2.11 in /console (#1706)

* fix: show org with regex (#1688)

* fix: flag mapping (#1699)

* chore(deps-dev): bump @angular/cli from 11.2.8 to 11.2.11 in /console

Bumps [@angular/cli](https://github.com/angular/angular-cli) from 11.2.8 to 11.2.11.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v11.2.8...v11.2.11)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Silvan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump stylelint from 13.10.0 to 13.13.1 in /console (#1703)

* fix: show org with regex (#1688)

* fix: flag mapping (#1699)

* chore(deps-dev): bump stylelint from 13.10.0 to 13.13.1 in /console

Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.10.0 to 13.13.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.10.0...13.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Silvan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/node from 14.14.37 to 15.0.1 in /console (#1702)

* fix: show org with regex (#1688)

* fix: flag mapping (#1699)

* chore(deps-dev): bump @types/node from 14.14.37 to 15.0.1 in /console

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Silvan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump ts-protoc-gen from 0.14.0 to 0.15.0 in /console (#1701)

* fix: show org with regex (#1688)

* fix: flag mapping (#1699)

* chore(deps): bump ts-protoc-gen from 0.14.0 to 0.15.0 in /console

Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/improbable-eng/ts-protoc-gen/compare/0.14.0...0.15.0)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Silvan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.6.10 in /console (#1682)

Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.6.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @types/google-protobuf in /console (#1681)

Bumps [@types/google-protobuf](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/google-protobuf) from 3.7.4 to 3.15.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/google-protobuf)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump grpc from 1.24.5 to 1.24.7 in /console (#1666)

Bumps [grpc](https://github.com/grpc/grpc-node) from 1.24.5 to 1.24.7.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/[email protected]@1.24.7)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* lock

* chore(deps-dev): bump @angular/language-service from 11.2.9 to 11.2.12 in /console (#1704)

* fix: show org with regex (#1688)

* fix: flag mapping (#1699)

* chore(deps-dev): bump @angular/language-service in /console

Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 11.2.9 to 11.2.12.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/11.2.12/packages/language-service)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Silvan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* package lock

* downgrade grpc

* downgrade protobuf types

* revert npm packs 🥸

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Silvan <[email protected]>
2021-05-19 09:17:38 +02:00
Livio AmstutzandGitHub f34b5b72b3 chore: add GH Token to sem rel (#1746)
* chore: add GH Token to sem rel

* try branch

* add GH Token

* remove test branch again
2021-05-19 08:11:42 +02:00
Livio AmstutzandGitHub 62457f3075 fix: use email as username on global org (#1738)
* fix: use email as username on global org

* Update user_human.go

* Update register_handler.go
2021-05-17 11:39:51 +00:00
bc633627c4 fix: handle domain claimed event correctly for service users (#1711)
* fix: handle domain claimed event correctly on user view

* fix: ignore domain claimed events for email notifications

* fix: change org

* handle org changed in read models correctly

* fix: change org in user grant handler

Co-authored-by: fabi <[email protected]>
2021-05-04 14:57:11 +02:00
87c1dfa3aa fix: uniqueness (#1710)
* fix: uniqueconstraint to lower

* feat: change org

* feat: org change test

* feat: change org

* fix: tests

* fix: handle domain claims correctly

* feat: update org

Co-authored-by: fabi <[email protected]>
2021-05-04 09:09:24 +00:00
Livio AmstutzandGitHub 5277dd0818 fix: add loopback for native apps redirect_uri (#1690)
* fix: allow loopback redirect_uri for native apps

* add loopback to native redirect_uri

* fix loopback

* update oidc pkg

* merge

* fix: oidc compliance in read model
2021-05-03 09:07:54 +02:00
Livio AmstutzandGitHub 920ada55fc fix: update oidc pkg for jwt profile fix (#1659) 2021-04-23 12:13:18 +02:00
Livio AmstutzandGitHub dcf1d86e7b fix: enable all features possible in step 12 (#1656) 2021-04-23 08:30:56 +00:00
Livio AmstutzandGitHub 06281b5ccb fix: improve performance on db insert (#1649) 2021-04-22 15:06:23 +00:00
Livio AmstutzandGitHub 9d778fa67c docs: add quickstart for go (#1635)
* docs: add quickstart for go

* some improvements

* change to md links
2021-04-22 16:58:33 +02:00
Livio AmstutzandGitHub 3f90d620b8 fix: ignore otp.verified v1 event for usersessions (#1633)
* remove MFAOTPVerified from user session projection

* add tracing for VerifyOIDCClientSecret in commands

* fix test
2021-04-21 13:23:05 +02:00
Livio AmstutzandGitHub 5279379469 fix: setup org and pipeline badge (#1626)
* chore: fix pipeline badge

* remove required init password from setup org
2021-04-20 14:02:17 +02:00
Livio AmstutzandGitHub f5a8cb20a5 fix: set custom domains feature on orgs (#1623) 2021-04-20 10:46:09 +02:00
Livio AmstutzandGitHub b04c97d21e fix: update oidc to encrypt code and tokens url safe (#1616) 2021-04-20 10:01:47 +02:00
Livio AmstutzandGitHub eb75ba87fb fix: ignore unknown field in json gateway (#1619) 2021-04-19 17:20:18 +02:00
6863aeac59 feat: custom domain feature (#1618)
* fix: custom domain

* fix: custom domain

* fix: custom domain

* fix: custom domain feature in proto

* fix: remove custom domains on feature downgrade

* fix test

* fix: custom domain feature in proto

* ensure tests work

Co-authored-by: fabi <[email protected]>
2021-04-19 16:43:36 +02:00
Livio AmstutzandGitHub 8da733315a fix: noopener in template (#1615) 2021-04-19 15:38:14 +02:00
Livio AmstutzandGitHub edc0958e41 fix: features (#1611) 2021-04-19 09:19:10 +02:00
Livio AmstutzandGitHub b172cc2a82 fix: reset login_policy views (to ensure defaults) (#1605)
* fix: reset login_policy views (to ensure defaults)

* fix: migration 1.37
2021-04-17 17:23:37 +02:00
Livio AmstutzandGitHub 26e1b80c1c fix: drop unused column from current_sequences (#1592) 2021-04-16 06:54:29 +02:00
Livio AmstutzandGitHub b0681a0bbe fix: ensure event order in setDefaultAuthFactorsInCustomLoginPolicy (for testability) (#1595)
* fix: ensure event order (for testability)

* fix: error handling (incl. imports of wrong pkgs)
2021-04-15 15:30:19 +02:00
Livio AmstutzandGitHub c7e7ef8e74 feat: make x-zitadel-orgid optional (resource owner by default) (#1591) 2021-04-15 10:57:01 +02:00
Livio AmstutzandGitHub 75d4b33281 fix: handle org features downgrades (#1578)
* features

* features

* features

* fix json tags

* add features handler to auth

* mocks for tests

* add setup step

* fixes

* add featurelist to auth api

* fx proto merge

* remove policies

* factors

* handle auth factors

* test org features

* cleanup
2021-04-12 17:03:09 +02:00
Livio AmstutzandGitHub 0e1e7bb382 docs: update site component to edit main branch (#1577) 2021-04-12 13:19:42 +02:00
Livio AmstutzandGitHub dd9f1d3c17 chore(workflow): run docs on any branch (#1580)
* chore(workflow): run docs on any branch

* Update README.md
2021-04-12 13:15:17 +02:00
Livio AmstutzandGitHub 0fe325bdd7 chore(workflow): ignore tags for docs and codecov flows (#1564) 2021-04-09 13:51:27 +02:00
Livio AmstutzandGitHub 188938e937 fix: remove app name check on ChangeAPIApplication (#1561)
* fix: remove app name check on ChangeAPIApplication

* fix APIConfigInvalid message
2021-04-09 11:50:06 +02:00
Livio AmstutzandGitHub 3487a7a713 chore: rename master to main (#1550)
* chore: rename master to main

* docs
2021-04-07 16:07:15 +02:00
3c790d996e docs: update readme (#1460) (#1545)
* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>
2021-04-07 14:26:21 +02:00
Livio AmstutzandGitHub b96d158484 fix: pass necessary webauthn data through events (#1544) 2021-04-07 14:19:01 +02:00
Livio AmstutzandGitHub f889b85d42 fix: pass necessary webauthn data through events (#1541) 2021-04-07 12:56:59 +02:00
Livio AmstutzandGitHub f9286574a9 fix: sort admin orgs by name (#1536)
* fix: sort admin orgs by name

* handle nil pointer in webauthn methods

* rename
2021-04-07 09:56:45 +02:00
Livio AmstutzandGitHub 2e02f2a695 fix: webauthn event types (#1535) 2021-04-07 08:12:55 +02:00
Livio AmstutzandGitHub efc90b382c fix: ignore undecryptable keys from view (#1528) 2021-04-06 13:49:16 +02:00
Livio AmstutzandGitHub a393d549fb fix: decrypt of access token in token verifier (#1527) 2021-04-06 11:38:39 +02:00
Livio AmstutzandGitHub 27fcf4739d fix: bearer token encryption (#1524)
* fix: bearer token encryption

* remove some todos
2021-04-06 08:31:18 +02:00
Livio AmstutzandGitHub fa6fb92c7e fix: add order by for max previous sequence (#1501) 2021-03-30 19:28:00 +02:00
Livio AmstutzandGitHub c6ea230a56 fix: unique constrains of org domain (#1500)
* fix: unique constrains of project grant

* fix: unique constrains of org domain
2021-03-30 15:00:57 +02:00
Livio AmstutzandGitHub 868749e9c0 fix: unique constrains of project grant (#1497) 2021-03-30 13:01:14 +02:00
Livio AmstutzandGitHub 2d65b94df3 fix: handle possible nil pointer (#1491) 2021-03-29 14:50:58 +02:00
48456b84b9 fix: changes (#1482)
* fix: changes

* change listquery to changequery

* fix: changes in auth

Co-authored-by: Max Peintner <[email protected]>
2021-03-29 10:32:23 +02:00
c0b37924c8 fix: backend (#1481)
* fix: check ids in proto

* fix sign out

* improve displayed login name after user selection

* fix init user in login

* fix init password in login

Co-authored-by: fabi <[email protected]>
2021-03-26 16:29:26 +01:00
Livio AmstutzandGitHub a4763b1e4c feat: features (#1427)
* features

* features

* features

* fix json tags

* add features handler to auth

* mocks for tests

* add setup step

* fixes

* add featurelist to auth api

* grandfather state and typos

* typo

* merge new-eventstore

* fix login policy tests

* label policy in features

* audit log retention
2021-03-25 17:26:21 +01:00
c9b3839f3d fix: operator reconciling (#1478)
* fix(operator): align backup and restore commands (#1465)

* fix: crd mode broke backup and restore commands

* fix: remove obscure gitops-per-operator flags

(cherry picked from commit 041cacc4af8aeb89723a049bc4dbfcbc33cd987f)

* fix: gitops backup and restore need a kubernetes client too (#1475)

(cherry picked from commit 50bc317d2797b819124cdb1119db76bb00ab0df6)

Co-authored-by: Elio Bischof <[email protected]>
2021-03-25 16:39:19 +01:00
Livio AmstutzandGitHub d7255130a4 fix: set project changes correctly in application view model (#1469) 2021-03-25 11:03:27 +01:00
bacfc3b099 fix: operator picks (#1463)
* feat(crd): add crd mode for operators (#1329)

* feat(operator): add base for zitadel operator

* fix(operator): changed pipeline to release operator

* fix(operator): fmt with only one parameter

* fix(operator): corrected workflow job name

* fix(zitadelctl): added restore and backuplist command

* fix(zitadelctl): scale for restore

* chore(container): use scratch for deploy container

* fix(zitadelctl): limit image to scratch

* fix(migration): added migration scripts for newer version

* fix(operator): changed handling of kubeconfig in operator logic

* fix(operator): changed handling of secrets in operator logic

* fix(operator): use new version of zitadel

* fix(operator): added path for migrations

* fix(operator): delete doublets of migration scripts

* fix(operator): delete subpaths and integrate logic into init container

* fix(operator): corrected path in dockerfile for local migrations

* fix(operator): added migrations for cockroachdb-secure

* fix(operator): delete logic for ambassador module

* fix(operator): added read and write secret commands

* fix(operator): correct and align operator pipeline with zitadel pipeline

* fix(operator): correct yaml error in operator pipeline

* fix(operator): correct action name in operator pipeline

* fix(operator): correct case-sensitive filename in operator pipeline

* fix(operator): upload artifacts from buildx output

* fix(operator): corrected attribute spelling error

* fix(operator): combined jobs for operator binary and image

* fix(operator): added missing comma in operator pipeline

* fix(operator): added codecov for operator image

* fix(operator): added codecov for operator image

* fix(testing): code changes for testing and several unit-tests (#1009)

* fix(operator): usage of interface of kubernetes client for testing and several unit-tests

* fix(operator): several unit-tests

* fix(operator): several unit-tests

* fix(operator): changed order for the operator logic

* fix(operator): added version of zitadelctl from semantic release

* fix(operator): corrected function call with version of zitadelctl

* fix(operator): corrected function call with version of zitadelctl

* fix(operator): add check output to operator release pipeline

* fix(operator): set --short length everywhere to 12

* fix(operator): zitadel setup in job instead of exec with several unit tests

* fix(operator): fixes to combine newest zitadel and testing branch

* fix(operator): corrected path in Dockerfile

* fix(operator): fixed unit-test that was ignored during changes

* fix(operator): fixed unit-test that was ignored during changes

* fix(operator): corrected Dockerfile to correctly use env variable

* fix(operator): quickfix takeoff deployment

* fix(operator): corrected the clusterrolename in the applied artifacts

* fix: update secure migrations

* fix(operator): migrations (#1057)

* fix(operator): copied migrations from orbos repository

* fix(operator): newest migrations

* chore: use cockroach-secure

* fix: rename migration

* fix: remove insecure cockroach migrations

Co-authored-by: Stefan Benz <[email protected]>

* fix: finalize labels

* fix(operator): cli logging concurrent and fixe deployment of operator during restore

* fix: finalize labels and cli commands

* fix: restore

* chore: cockroachdb is always secure

* chore: use orbos consistent-labels latest commit

* test: make tests compatible with new labels

* fix: default to sa token for start command

* fix: use cockroachdb v12.02

* fix: don't delete flyway user

* test: fix migration test

* fix: use correct table qualifiers

* fix: don't alter sequence ownership

* fix: upgrade flyway

* fix: change ownership of all dbs and tables to admin user

* fix: change defaultdb user

* fix: treat clientid status codes >= 400 as errors

* fix: reconcile specified ZITADEL version, not binary version

* fix: add ca-certs

* fix: use latest orbos code

* fix: use orbos with fixed race condition

* fix: use latest ORBOS code

* fix: use latest ORBOS code

* fix: make migration and scaling around restoring work

* fix(operator): move zitadel operator

* chore(migrations): include owner change migration

* feat(db): add code base for database operator

* fix(db): change used image registry for database operator

* fix(db): generated mock

* fix(db): add accidentally ignored file

* fix(db): add cockroachdb backup image to pipeline

* fix(db): correct pipeline and image versions

* fix(db): correct version of used orbos

* fix(db): correct database import

* fix(db): go mod tidy

* fix(db): use new version for orbos

* fix(migrations): include migrations into zitadelctl binary (#1211)

* fix(db): use statik to integrate migrations into binary

* fix(migrations): corrections unit tests and pipeline for integrated migrations into zitadelctl binary

* fix(migrations): correction in dockerfile for pipeline build

* fix(migrations): correction in dockerfile for pipeline build

* fix(migrations):  dockerfile changes for cache optimization

* fix(database): correct used part-of label in database operator

* fix(database): correct used selectable label in zitadel operator

* fix(operator): correct lables for user secrets in zitadel operator

* fix(operator): correct lables for service test in zitadel operator

* fix: don't enable database features for user operations (#1227)

* fix: don't enable database features for user operations

* fix: omit database feature for connection info adapter

* fix: use latest orbos version

* fix(crd): corrected logic to get database connection and other info

* fix(crd): corrected yaml tags and start for zitadel operator

* fix(crd): move some dependencies and use consistent structure

* fix(crd): corrected unit-tests

* fix(crd): corrected main files for debug starts

* chore(pipeline): use correct version for zitadelctl build

* fix(crd): correct calculating of current db state for zitadel operator

* fix(crd): use binary version for deployment of crd mode operators

* fix(crd): add gitops attribute for reconciling

* fix(crd): corrected crd with newest version

* fix(migration): collect cleanup functions and only use them if all jobs are successful

* fix(zitadelctl): import gcp auth to connect to gke cluster

* feat: Add read and writesecret options for crd mode (#1435)

* fix: don't require orbconfig for crd mode

* test: pass

* fix(zitadelctl): import gcp auth to connect to gke cluster

* feat: add read and writesecret option for crd mode

* test: fix

* fix: make all crd secrets writable

* fix: use in-cluster configs for in-cluster operators

* chore: remove unnecessary debug files

Co-authored-by: Stefan Benz <[email protected]>

* fix: Crdoperatormerge review (#1385)

* fix: don't require orbconfig for crd mode

* test: pass

* fix(zitadelctl): import gcp auth to connect to gke cluster

* fix: ensure caos-system namespace

* fix: apply orbconfig at takeoff

* docs: improve help for creating an orbconfig

* docs: describe orbconfig properties

* docs: add --gitops to help message example

* fix(pipeline): correct upload of artifacts in dev releases

* test: pass

Co-authored-by: Stefan Benz <[email protected]>

* fix(test): corrected falsely merged tests

* chore: update orbos library

* fix: only handle exactly named and namespaced crd resource

* fix: print errors, check correct crd namespace

* fix: validate bucket secret

* chore: compile

* fix(operator): corrected secret handling when unused secrets are not defined

* fix(operator): corrected handling of jobs

* fix: dont print logs when readsecret path is provided

* fix(operator): corrected handling of jobs and sort for mounted volumes

* fix(operator): sort for volumes

* fix(operator): change orboos import to newest release

Co-authored-by: Florian Forster <[email protected]>
Co-authored-by: Elio Bischof <[email protected]>

(cherry picked from commit fa9bd5a8e7a5032b21272552fbc4cdf1630db049)

* fix(operator): Standard timeout handling (#1458)

* fix: always use standard time.Duration

* fix: give backup and restore more time

* fix: give backup and restore jobs more time

(cherry picked from commit 7468b7d1e818102dcd58dbb6d3647f49277a4e65)

* fix go mod

Co-authored-by: Stefan Benz <[email protected]>
Co-authored-by: Elio Bischof <[email protected]>
2021-03-24 10:31:19 +01:00
Livio AmstutzandGitHub e7c11cb9e2 fix: migration from es v1 (#1462)
* handle old step1

* add migration ES V1 to operator
2021-03-24 09:30:45 +01:00
d5f0c2375a fix: backend bugs (#1453)
* fix: add events to query

* fix: add events to query

* displayname

* change email RO

Co-authored-by: fabi <[email protected]>
2021-03-22 17:15:24 +01:00
bd1a3bb6d7 fix: backend bugs (#1449)
* i18n of compliance problems

* fix: return iam member roles

* remove u2f/passwordless

* u2f/passwordless

* fix rest path GetMachineKeyByIDs

* fix rest path GetMachineKeyByIDs

* fix email mime-type

* fix: member preferred login name

* machine users in notify

* fix api key query

* fix: todos grpc api

* fix: handle user init state

* fix: tests

Co-authored-by: fabi <[email protected]>
2021-03-22 14:40:25 +01:00
Livio AmstutzandGitHub b01f277e4b fix: cherry pick security issue fixes (#1432)
* fix: potential "Potentially unsafe external link" of TOS and EMail Links

* fix: "Size computation for allocation may overflow" by limiting aes encrypt to 64MB
2021-03-19 09:10:50 +01:00
Livio AmstutzandGitHub 3cdaa8193d fix: (org) context handling (#1429)
* fix: add context queries

* typo

* handle org context corretly in mgmt api

* isDefault in policy converter

* handle org context correctly in auth api
2021-03-17 13:10:57 +01:00
Livio AmstutzandGitHub e9eb5b7848 fix: converters (#1413)
* fix: converters

* fix: converters

* comments
2021-03-12 14:06:05 +01:00
Livio AmstutzandGitHub af55c4a65c fix: handle possible nil pointer of query (#1407) 2021-03-11 09:40:40 +01:00
Livio AmstutzandGitHub 87a2e18a4d fix: migration, key rotation and org event reducing (#1403)
* fix: migration, key rotation and org event reducing

* fix oidc app

* pointer receiver name
2021-03-10 14:32:56 +01:00
Livio AmstutzandGitHub c71a30de76 chore: set vars for platform in dockerfile (#1399) 2021-03-10 13:00:51 +01:00