2105 Commits

Author SHA1 Message Date
Fabi
6d78fe28f5
fix: Get Label policy in notifications (#2923) v1.66.9 2022-01-04 08:35:22 +00:00
Silvan
5640a0ef33
refactor: remove unused code (#2798)
* refactor(domain): add user type

* fix(projections): start with login names

* fix(login_policy): correct handling of user domain claimed event

* fix(projections): add members

* refactor: simplify member projections

* add migration for members

* add metadata to member projections

* refactor: login name projection

* fix: set correct suffixes on login name projections

* test(projections): login name reduces

* fix: correct cols in reduce member

* test(projections): org, iam, project members

* member additional cols and conds as opt,
add project grant members

* fix(migration): members

* fix(migration): correct database name

* migration version

* migs

* better naming for member cond and col

* split project and project grant members

* prepare member columns

* feat(queries): membership query

* test(queries): membership prepare

* fix(queries): multiple projections for latest sequence

* fix(api): use query for membership queries in auth and management

* feat: org member queries

* fix(api): use query for iam member calls

* fix(queries): org members

* fix(queries): project members

* fix(queries): project grant members

* refactor: remove unsued methods in repo-interfaces

* refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter
2022-01-03 11:50:38 +01:00
Silvan
09be70949f
refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
Silvan
9a374f9c5c
refactor(local): docker compose (#2892)
* refactor(local): docker compose

* fix(compose): disable logging in gateway

* docs: guide for local development

* docs(local): quickstart

* docs: resources

* use docker-compose dns

* Apply suggestions from code review

Co-authored-by: Florian Forster <florian@caos.ch>

Co-authored-by: Elio Bischof <eliobischof@gmail.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2021-12-31 18:04:20 +01:00
Florian Forster
738a5821da
docs: update docsearch and improve trailing slash handling (#2908)
* Update docusaurus.config.js

* well, good morning

* trial by error with pages
2021-12-30 09:01:47 +01:00
Max Peintner
2553bb173e
fix(console): username dialog response (#2888) v1.66.8 2021-12-22 12:00:30 +00:00
Fabi
cf727b7fff
fix: Custom texts (#2875)
* feat: delete org

* fix: return is default on custom message text

* fix(projeciton): print stack trace on recover panic

* chore: print panic line

* fix: custom message text retunr nil, nil

* fix: custom message text template

* fix: remove isDefault from selection (#2876)

* fix: custom message text query

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
Co-authored-by: Max Peintner <max@caos.ch>
v1.66.7
2021-12-21 15:18:05 +01:00
Max Peintner
fc08229679
chore: december upgrades (#2887) 2021-12-21 13:49:30 +00:00
Max Peintner
dee3d6b3ae
chore(console): december dependencies (#2877)
* cli, core

* material cdk

* deps

* lock

* audit

* downgrade stylelint
2021-12-21 13:15:12 +00:00
Max Peintner
db355facee
fix(console): org create missing module, layout (#2870)
* fix: org create module

* rm comment
v1.66.6
2021-12-20 10:56:03 +01:00
Silvan
278a278a5b
fix(authz): retry search memberships if no memberships found (#2869) v1.66.5 2021-12-17 16:28:41 +01:00
Livio Amstutz
57368d151b
fix: assert roles when using refresh token (#2868) v1.66.4 2021-12-17 16:11:18 +01:00
Livio Amstutz
8b0c3e63d6
chore(deps): update github.com/duo-labs/webauthn (#2861) 2021-12-17 13:36:24 +01:00
Livio Amstutz
27f87df676
fix: setup step 21 (#2864) v1.66.3 2021-12-17 10:11:57 +00:00
Livio Amstutz
28d7acdf99
fix: template removed events on projections (#2863) v1.66.2 2021-12-17 08:31:39 +00:00
Max Peintner
cc04067da3
fix: max width container, text ellipsis overflow (#2862) v1.66.1 2021-12-17 07:48:20 +00:00
Fabi
c5d6325897
feat: text query (#2735)
* feat: change mail template to new query side

* feat: adminapi message text

* feat: adminapi message text

* feat: adminapi message text

* feat: message texts

* feat: admin texts

* feat: tests

* feat: tests

* feat: custom login text on adminapi

* feat: custom login text

* feat: custom login text

* feat: message text prepare test

* feat: login text texts

* feat: custom login text

* merge main

* fix go.sum

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
v1.66.0
2021-12-16 15:21:37 +01:00
Fabi
a43e1fc34a
feat: reset projections and remove failed events (#2770)
* feat: change failed events to new projection

* feat: change failed events to new projection

* feat: change current sequences to new projection

* feat: add tests

* Update internal/api/grpc/admin/failed_event.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* Update internal/api/grpc/admin/view.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* fix: truncate

* fix reset

* fix reset

* Rename V1.102__queries.sql to V1.103__queries.sql

* improve current_sequence and truncate view tables

* check sub tables of view are tables

* Update internal/query/current_sequence_test.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* fixes and use squirrel

* missing error handling

* lock before reset

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
v1.65.0
2021-12-16 14:44:26 +01:00
Silvan
d2ea9a1b8c
feat: member queries (#2796)
* refactor(domain): add user type

* fix(projections): start with login names

* fix(login_policy): correct handling of user domain claimed event

* fix(projections): add members

* refactor: simplify member projections

* add migration for members

* add metadata to member projections

* refactor: login name projection

* fix: set correct suffixes on login name projections

* test(projections): login name reduces

* fix: correct cols in reduce member

* test(projections): org, iam, project members

* member additional cols and conds as opt,
add project grant members

* fix(migration): members

* fix(migration): correct database name

* migration version

* migs

* better naming for member cond and col

* split project and project grant members

* prepare member columns

* feat(queries): membership query

* test(queries): membership prepare

* fix(queries): multiple projections for latest sequence

* fix(api): use query for membership queries in auth and management

* feat: org member queries

* fix(api): use query for iam member calls

* fix(queries): org members

* fix(queries): project members

* fix(queries): project grant members

* fix(query): member queries and user avatar column

* member cols

* fix(queries): membership stmt

* fix user test

* fix user test

* fix(membership): correct display name

* fix(projection): additional member manipulation events

* additional member tests

* fix(projections): additional events of idp links

* fix: use query for memberships (#2797)

* fix(api): use query for memberships

* remove comment

* handle err

* refactor(projections): idp user link user aggregate type

* fix(projections): handle old user events

* fix(api): add asset prefix

* no image for iam members
v1.64.0
2021-12-16 13:25:38 +00:00
Max Peintner
fb43b13232
feat(console): set email verified on change, user create (#2847)
* feat: set email verified on change

* user create
v1.63.0
2021-12-15 10:23:53 +00:00
Silvan
a533872c66
fix(crdb): version 21.2.3 (#2848) v1.62.2 2021-12-15 09:34:52 +00:00
Livio Amstutz
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
v1.62.1
2021-12-14 10:57:20 +01:00
Livio Amstutz
79f7c1198b
feat: display login succeeded page only for native apps (#2839) v1.62.0 2021-12-14 09:47:49 +01:00
Silvan
2265fffd8e
feat(queries): user membership (#2768)
* refactor(domain): add user type

* fix(projections): start with login names

* fix(login_policy): correct handling of user domain claimed event

* fix(projections): add members

* refactor: simplify member projections

* add migration for members

* add metadata to member projections

* refactor: login name projection

* fix: set correct suffixes on login name projections

* test(projections): login name reduces

* fix: correct cols in reduce member

* test(projections): org, iam, project members

* member additional cols and conds as opt,
add project grant members

* fix(migration): members

* fix(migration): correct database name

* migration version

* migs

* better naming for member cond and col

* split project and project grant members

* prepare member columns

* feat(queries): membership query

* test(queries): membership prepare

* fix(queries): multiple projections for latest sequence

* fix(api): use query for membership queries in auth and management

* fix(query): member queries and user avatar column

* member cols

* fix(queries): membership stmt

* fix user test

* fix user test
v1.61.0
2021-12-14 08:19:02 +01:00
Silvan
2cdb297138
fix(crdb): version 21.2.2 (#2836) v1.60.3 2021-12-13 10:14:15 +00:00
Max Peintner
d1cb7fdc9f
fix: new context component (#2823) v1.60.2 2021-12-10 16:14:24 +01:00
Livio Amstutz
2f7d8ca557
fix: client secret verification (for introspection) (#2825)
* fix: client secret verification (for introspection)

* revert change for ProjectIDAndOriginsByClientID
v1.60.1
2021-12-10 09:25:17 +00:00
Livio Amstutz
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 <38692350+fgerschwiler@users.noreply.github.com>

* Update console/src/assets/i18n/it.json

Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>

Co-authored-by: Max Peintner <max@caos.ch>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
v1.60.0
2021-12-09 08:41:21 +00:00
Silvan
7ea93bd5b6
fix(migration): set database name (#2819) v1.59.3 2021-12-08 17:17:50 +00:00
Silvan
5b1267ae93
fix(eventstore): add index to reduce db workload (#2813) v1.59.2 2021-12-08 17:18:54 +01:00
Livio Amstutz
75f3067d42
chore(deps): replace "github.com/ghodss/yaml" with "sigs.k8s.io/yaml" (#2812) v1.59.1 2021-12-08 16:26:12 +01:00
Livio Amstutz
9967a3ee5e
chore(deps): bump dependencies (#2811) 2021-12-08 16:25:28 +01:00
Livio Amstutz
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
Silvan
c9face4ea4
feat(queries): login policy idp links (#2767)
* fix(idp): set type in projection

* correct table

* user idp links

* refactor: user idp link query

* add not null constraint

* refactor: idp user links

* rename file

* fix(idp): correct resource owner

* refactor: rename test

* fix(query): implement idp login policy links

* unify naming of idp links

* test prepare

* fix(api): convert idp type

* rename migration
v1.59.0
2021-12-08 14:49:19 +01:00
Max Peintner
7bf7379a05
feat(console): codemirror code editor for actions (#2736)
* feat: codemirror code editor

* cleanup

* lint

* mat import

* lint
v1.58.0
2021-12-08 10:48:23 +01:00
Livio Amstutz
211dc7c21f
fix: add workaround for org check (if projection is not up-to-date) (#2800) v1.57.1 2021-12-07 15:54:33 +01:00
Silvan
303d4945a7
feat(queries): user IDP links (#2751) v1.57.0 2021-12-07 08:33:52 +01:00
Livio Amstutz
2ad03285f1
fix: user projection (#2795)
* fix: first- and lastname changes on user

* add reset migration
v1.56.22
2021-12-06 17:22:59 +01:00
Livio Amstutz
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 <silvan.reusser@gmail.com>

* Update migrations/cockroach/V1.98__keys.sql

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* check keys

Co-authored-by: Silvan <silvan.reusser@gmail.com>
v1.56.21
2021-12-06 16:57:35 +01:00
Livio Amstutz
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
v1.56.20
2021-12-06 16:28:49 +01:00
Livio Amstutz
a8eed4a215
fix: audience and empty app name (#2775) v1.56.19 2021-12-03 14:24:29 +01:00
Silvan
45695d3198
fix(projection): handle old event in feature (#2773) v1.56.18 2021-12-02 19:16:20 +01:00
Silvan
983382fcec
fix: member projections (#2771)
* fix(projections): start member projections

* fix(projection): member roles as string array

* fix member tests
v1.56.17
2021-12-02 15:08:33 +01:00
Silvan
7a5cb80569
fix(projections): delete app on remove project event (#2772)
* fix(projections): delete app on remove project event

* test(projection): project removed event in app

* more effitient mig
2021-12-02 15:07:45 +01:00
Silvan
b43362ad15
fix(projections): add member (#2699)
* refactor(domain): add user type

* fix(projections): start with login names

* fix(login_policy): correct handling of user domain claimed event

* fix(projections): add members

* refactor: simplify member projections

* add migration for members

* add metadata to member projections

* refactor: login name projection

* fix: set correct suffixes on login name projections

* test(projections): login name reduces

* fix: correct cols in reduce member

* test(projections): org, iam, project members

* member additional cols and conds as opt,
add project grant members

* fix(migration): members

* fix(migration): correct database name

* migration version

* migs

* better naming for member cond and col

* split project and project grant members
v1.56.16
2021-12-02 09:31:44 +01:00
Silvan
61f2883719
fix(operator): update cockroach to 21.2.1 (#2766) v1.56.15 2021-12-01 15:09:35 +00:00
Max Peintner
524f8e7a84
fix: move org create into parent routing module (#2765) v1.56.14 2021-12-01 14:42:15 +01:00
Silvan
30c130f102
fix(projections): add base users (#2733)
* fix(projections): add base users

* add user v1 events
v1.56.13
2021-11-30 08:57:51 +01:00
Livio Amstutz
d7417b6ef6
fix: filter of users uniqueness (#2753) v1.56.12 2021-11-29 18:38:11 +01:00
Livio Amstutz
7d45ae3c6c
fix: filter of domain claimed users (#2752) v1.56.11 2021-11-29 17:36:24 +01:00