Commit Graph

95 Commits

Author SHA1 Message Date
Livio Amstutz
ff87264f95
feat: set up org (#1157)
* add setup steps

* refactoring

* omitempty

* cleanup

* begin org

* create org

* setup org

* setup org

* merge

* fixes

* fixes

* fixes
2021-01-08 11:33:45 +01:00
Fabi
65a8efeb0e
feat: New user (#1153)
* fix: use pointer in events

* fix: change user requests to command side

* fix: org policy

* fix: profile
2021-01-06 11:12:56 +01:00
Livio Amstutz
5b84c9b619 Merge branch 'master' into new-eventstore
# Conflicts:
#	go.mod
#	internal/admin/repository/eventsourcing/eventstore/iam.go
#	internal/authz/repository/eventsourcing/repository.go
#	internal/eventstore/eventstore.go
#	internal/setup/config.go
#	pkg/grpc/management/mock/management.proto.mock.go
2021-01-05 09:27:42 +01:00
Livio Amstutz
21ffe1b0cb
new pkg structure (#1150)
* fix: split command query side

* fix: split command query side

* fix: members in correct pkg structure

* fix: label policy in correct pkg structure

* fix: structure

* fix: structure of login policy

* fix: identityprovider structure

* fix: org iam policy structure

* fix: password age policy structure

* fix: password complexity policy structure

* fix: password lockout policy structure

* fix: idp structure

* fix: user events structure

* fix: user write model

* fix: profile email changed command

* fix: address changed command

* fix: user states

* fix: user

* fix: org structure and add human

* begin iam setup command side

* setup

* step2

* step2

* fix: add user

* step2

* isvalid

* fix: folder structure v2 business

Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2021-01-04 14:52:13 +01:00
Silvan
a6c4702b8e
fix: lock again (#1132)
* start sub

* start implement subsciptions

* start subscription

* implementation for member done

* admin done

* fix: tests

* extend handlers

* prepary notification

* no errors in adminapi

* changed current sequence in all packages

* ignore mocks

* works

* subscriptions as singleton

* tests

* refactor: rename function scope var

* fix: process ALL previous sequences

* fix: spooler and pubsub

* handler check

* fix: process events until all done

* fix break on query err

* fix: handler

* fix: process sequence or return error

* check aggregate id

* fix: log only in error case

* fix tests

* fix: handlers

* fix: spooler

* fix: spooler

* fix: tests

* fix: continue

* fix: locker duration

* fix: variable lock duration

* fix: test

* fix: test

* fix: test min max time

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-12-22 12:27:55 +01:00
Silvan
3118a99c1e
fix: pubsub (#1122)
* start sub

* start implement subsciptions

* start subscription

* implementation for member done

* admin done

* fix: tests

* extend handlers

* prepary notification

* no errors in adminapi

* changed current sequence in all packages

* ignore mocks

* works

* subscriptions as singleton

* tests

* refactor: rename function scope var

* fix: process ALL previous sequences

* fix: spooler and pubsub

* handler check

* fix: process events until all done

* fix break on query err

* fix: handler

* fix: process sequence or return error

* check aggregate id

* fix: log only in error case

* fix tests

* fix: handlers

* fix: spooler

* fix: spooler

* fix: tests

* fix: continue

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-12-21 18:42:34 +01:00
Silvan
dd5e4acd24
fix(event handling): use internal pubsub for view update (#1118)
* start sub

* start implement subsciptions

* start subscription

* implementation for member done

* admin done

* fix: tests

* extend handlers

* prepary notification

* no errors in adminapi

* changed current sequence in all packages

* ignore mocks

* works

* subscriptions as singleton

* tests

* refactor: rename function scope var
2020-12-18 16:47:45 +01:00
Silvan
584bcda108
fix: language.Tag marshalling (#1110)
* fix(searchlimit): increase to 1000

* rafactor: remove unused return

* fix(user): marshalling of language tag

* fix(spooler): shuffle handlers on start

* fix(sql): reduce max open conns from 200 to 25 per pod

* chore(deps): google.golang.org/grpc and github.com/lib/pq

* chore(deps): update github.com/cockroachdb/cockroach-go/v2
2020-12-17 08:55:11 +01:00
Fabi
7f26f1815b
fix: Previous sequence (#1086)
* feat: remove previous sequence check

* feat: object creation date

* feat: simplify member write model

* feat: simplify write model

* feat: simplify write model
2020-12-14 17:24:01 +01:00
Fabiennne
2a25c0b617 Merge branch 'master' into new-eventstore
# Conflicts:
#	go.sum
2020-12-03 10:11:18 +01:00
Fabi
6b3f5b984c
feat: metrics (#1024)
* refactor: switch from opencensus to opentelemetry

* tempo works as designed nooooot

* fix: log traceids

* with grafana agent

* fix: http tracing

* fix: cleanup files

* chore: remove todo

* fix: bad test

* fix: ignore methods in grpc interceptors

* fix: remove test log

* clean up

* typo

* fix(config): configure tracing endpoint

* fix(span): add error id to span

* feat: metrics package

* feat: metrics package

* fix: counter

* fix: metric

* try metrics

* fix: coutner metrics

* fix: active sessin counter

* fix: active sessin counter

* fix: change current Sequence table

* fix: change current Sequence table

* fix: current sequences

* fix: spooler div metrics

* fix: console view

* fix: merge master

* fix: Last spool run on search result instead of eventtimestamp

* fix: go mod

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

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

* fix: pr review

* fix: map

* update oidc pkg

* fix: handlers

* fix: value observer

* fix: remove fmt

* fix: handlers

* fix: tests

* fix: handler minimum cycle duration 1s

* fix(spooler): handler channel buffer

* fix interceptors

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-12-02 08:50:59 +01:00
adlerhurst
9a870b7830 facotry to fileter 2020-12-01 14:44:19 +01:00
adlerhurst
0780c23f76 member 2020-11-30 07:56:38 +01:00
adlerhurst
ebeedd1346 policy, idp, member.
member not working atm
2020-11-30 06:40:56 +01:00
Silvan
d6c9707ad0
fix(spooler): fast start (#1023) 2020-11-27 15:32:26 +01:00
adlerhurst
fc861ea544 remove unused fiel 2020-11-27 13:30:08 +01:00
adlerhurst
e48621c1f3 idp command side done 2020-11-27 13:29:35 +01:00
adlerhurst
9487e8bdeb idp 2020-11-27 11:30:56 +01:00
adlerhurst
1b3f821ad0 idp config 2020-11-26 13:14:07 +01:00
adlerhurst
246d4294cf fix(eventstore): tests 2020-11-26 09:19:14 +01:00
adlerhurst
f6cdcee77a append events without return value 2020-11-25 14:12:44 +01:00
adlerhurst
f8028f07d0 event data search query 2020-11-23 19:31:12 +01:00
adlerhurst
6431fd2ec5 Merge remote-tracking branch 'origin/master' into new-eventstore 2020-11-23 11:40:50 +01:00
adlerhurst
4aadd290f4 write model 2020-11-23 11:36:58 +01:00
adlerhurst
20f4fa56c5 try writemodel 2020-11-20 17:03:17 +01:00
Silvan
168242e725
fix(tracing): from opencensus to opentelemetry (#937)
* refactor: switch from opencensus to opentelemetry

* tempo works as designed nooooot

* fix: log traceids

* with grafana agent

* fix: http tracing

* fix: cleanup files

* chore: remove todo

* fix: bad test

* fix: ignore methods in grpc interceptors

* fix: remove test log

* clean up

* typo

* fix(config): configure tracing endpoint

* fix(span): add error id to span
2020-11-20 07:57:39 +01:00
adlerhurst
609c4d4f24 Merge branch 'master' into new-eventstore 2020-11-19 17:20:09 +01:00
Silvan
fcf81bed5f
fix: dont overwrite resource owner in objectroot (#992)
* fix(management): search user grants with granted

* fix(auth): handle user grant project owner

* fix: grantowner to resourceowner

* fix: generate mock

* fix: mig

* fix: query correct columns

* fix: remove new line

* fix: dont overwrite resourceowner on appendevent
2020-11-19 16:23:48 +01:00
adlerhurst
23e6cad703 start implementing new eventstore on iam 2020-11-12 22:50:01 +01:00
adlerhurst
720fea4bcc member 2020-11-11 17:51:44 +01:00
adlerhurst
57fc3ddd16 policies implemented 2020-11-06 22:09:19 +01:00
adlerhurst
f7f810caa5 iam events 2020-11-06 17:25:07 +01:00
adlerhurst
f4bd5ddcbc try splitt event 2020-11-06 13:47:27 +01:00
adlerhurst
756a4f1d08 fix: union 2020-11-05 13:24:37 +01:00
adlerhurst
3093eb0dbd Merge branch 'master' into new-eventstore 2020-10-27 16:07:24 +01:00
adlerhurst
727d783478 fix: eventstore tests 2020-10-27 16:03:17 +01:00
adlerhurst
faee29bbb6 fix: tests 2020-10-27 15:42:18 +01:00
adlerhurst
936c88c6ed fix: comments 2020-10-26 14:49:42 +01:00
adlerhurst
dfb8c266d7 test: example for eventstore 2020-10-23 16:16:46 +02:00
adlerhurst
b6ed7a396c fix(eventstore): resource owner from previous event 2020-10-22 18:13:31 +02:00
adlerhurst
0f855c86cf test: eventstore queries 2020-10-21 19:45:23 +02:00
adlerhurst
5fc0a808e1 test(eventstore): queries 2020-10-21 19:29:22 +02:00
adlerhurst
3c9c2806c8 test: eventstore 2020-10-21 19:00:41 +02:00
adlerhurst
83121ab44d test: eventstore query 2020-10-21 09:39:24 +02:00
adlerhurst
370597a0e8 fix: remove routines 2020-10-19 13:58:59 +02:00
adlerhurst
35ce026651 try with goroutines 2020-10-19 09:53:32 +02:00
adlerhurst
55e5e82dbc fix(eventstore): set previous sequence NULL if not checked 2020-10-15 16:51:00 +02:00
adlerhurst
62f0d9d59d push tests 2020-10-15 13:25:25 +02:00
adlerhurst
d400b02e53 test(eventstore): push 2020-10-15 08:44:17 +02:00
adlerhurst
639872b82e fix: add tests 2020-10-14 12:43:31 +02:00