Commit Graph
54 Commits
Author SHA1 Message Date
SilvanandGitHub b9fdcb53a2 fix: auth app handler with projectEvents (#917) 2020-10-28 11:19:10 +01:00
SilvanandGitHub e686268e81 fix: flags on application view (#910)
* wg24q

* fix: set ProjectRoleCheck and ProjectRoleAssertion on added application
2020-10-27 15:53:36 +01:00
6e602e6b8d refactor: go 1.15, update dependencies (#679)
* refactor: go 1.15, update dependecies

* chore(github): build with go 1.15

* build protos

* rebuild protos

* rebuild protos

Co-authored-by: Livio Amstutz <[email protected]>
2020-10-21 10:00:49 +02:00
SilvanandGitHub 8278efc131 fix(eventstore): check if creation date is not zero (#811) 2020-10-06 07:26:09 +02:00
SilvanandGitHub bdcf9fcc5c fix(authz): fix user grant handler (#795) 2020-09-30 10:29:41 +02:00
SilvanandGitHub 3e1204524e fix: multiple setup steps (#773)
* fix: multiple setup steps

* fix: test set up started

* fix: possible nil pointers in setup

* fix: validate executed step
2020-09-24 11:38:28 +02:00
SilvanandGitHub ee0383cae8 refactor: spooled handler (#752)
* refactor: spooled handler

* fix(spooler): test locked channel
2020-09-18 13:39:28 +02:00
SilvanandGitHub e7b499794d fix(setup): set first org owner as project owner (#753) 2020-09-17 16:48:14 +02:00
SilvanandGitHub 845026e43f fix(spooler): memory leak (#751)
* fix: dependecies

* fix: one of two memory leaks found

* fix: remove log
2020-09-17 09:12:56 +02:00
5a8cafcae5 fix: JWT Profile (#748)
* fix: correct env var for tracing type

* fix: local env tracing

* fix: key in detail as string

* fix: implement storage

* fix: machine key by id
fix: store public key as bytes instead of crypto value

* update oidc pkg

* dont check origins for service account tokens

* fix: scopes

* fix: dependencies

* fix: dependencies

* fix: remove unused code

* fix: variable naming

Co-authored-by: Livio Amstutz <[email protected]>
2020-09-17 08:49:33 +02:00
SilvanandGitHub 71abc4f077 test: machine (#683)
* test: machine

* test: better naming
2020-09-15 15:04:02 +02:00
SilvanandGitHub eefdd17478 fix(usergrant): delete in handler search for correct key (#732) 2020-09-11 16:01:03 +02:00
SilvanandGitHub c37d55b069 fix: User grant id key (#731)
* fix: log id and error message

* fix: user grant by id correct search field
2020-09-11 14:51:50 +02:00
SilvanandGitHub 87c0010d54 fix: unique username (#726) 2020-09-11 10:50:35 +02:00
SilvanandGitHub 463294669e fix: Key details as string (#719)
* fix: correct env var for tracing type

* fix: local env tracing

* fix: key in detail as string
2020-09-09 16:19:17 +02:00
SilvanandGitHub 773750481f fix: correct env var for tracing type (#714)
* fix: correct env var for tracing type

* fix: local env tracing
2020-09-09 15:15:21 +02:00
+1
SilvanGitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>FabiFlorian ForsterLivio Amstutzdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Max PeintnerFabiennnedependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5abd5b0505 feat: split users into human and machine (#470)
* feat(management): service accounts

* chore: current go version

* init

* refactor: apis

* feat(internal): start impl of service account

* chore: start impl of machine/human users

* code compiles

* fix: tests

* fix: tests

* fix: add new event types to switches

* chore: add cases to event types

* fix(management): definitive proto messages

* fix: machine/human

* fix: add missing tables as todos

* fix: remove unused permissions

* fix: refactoring

* fix: refactor

* fix: human registered

* fix: user id

* fix: logid

* fix: proto remove //equal

* chore(management): remove no comment

* fix: human mfas

* fix: user subobjects

* chore: rename existing to better name

* fix: username in user (#634)

* fix: username in user

* fix: username

* fix remove unused code

* fix add validations

* fix: use new user in all apis

* fix: regexp for username in api

* fix: fill user data for human and machine (#638)

* fix: fill Display name grant/member handlers
fix: add description to grant/member objects in api
fix: check if user is human in login

* fix: remove description from member and grant

* chore: remove todos

* feat: machine keys

* fix: implement missing parts

* feat: machine key management view

* fix: remove keys from machine view

* fix: set default expiration date

* fix: get key by ids

* feat: add machine keys in proto

* feat: machine keys

* fix: add migration

* fix: mig

* fix: correct method name

* feat: user search

* feat: user search

* fix: log ids

* fix partial authconfig prompt, domain c perm

* membership read check

* contributor refresh trigger, observe org write

* fix: migrations

* fix(console): machine build (#660)

* frontend 1

* fix html bindings

* trailing comma

* user permissions, project deactivate

* fix(console): human view (#661)

* fix search user view, user detail form

* rm log

* feat(console): user services list and create (#663)

* fix search user view, user detail form

* rm log

* machine list

* generic table component

* create user service

* proove table for undefined values

* tmp disable user link if machine

* lint

* lint styles

* user table lint

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

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

* feat(console): service user detail view, keys cr_d, fix search user autocomplete (#664)

* service users for sidenav, routing

* i18n

* back routes

* machine detail form

* update machine detail, fix svc user grants

* keys table

* add key dialog, timestamp creation

* check permission on create, delete, fix selection

* lint ts, scss

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

* Apply suggestions from code review

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

* allow user grants for project.write

* management service

* fix mgmt service

* feat: Machine keys (#655)

* fix: memberships (#633)

* feat: add iam members to memberships

* fix: search project grants

* fix: rename

* feat: idp and login policy configurations (#619)

* feat: oidc config

* fix: oidc configurations

* feat: oidc idp config

* feat: add oidc config test

* fix: tests

* fix: tests

* feat: translate new events

* feat: idp eventstore

* feat: idp eventstore

* fix: tests

* feat: command side idp

* feat: query side idp

* feat: idp config on org

* fix: tests

* feat: authz idp on org

* feat: org idps

* feat: login policy

* feat: login policy

* feat: login policy

* feat: add idp func on login policy

* feat: add validation to loginpolicy and idp provider

* feat: add default login policy

* feat: login policy on org

* feat: login policy on org

* fix: id config handlers

* fix: id config handlers

* fix: create idp on org

* fix: create idp on org

* fix: not existing idp config

* fix: default login policy

* fix: add login policy on org

* fix: idp provider search on org

* fix: test

* fix: remove idp on org

* fix: test

* fix: test

* fix: remove admin idp

* fix: logo src as byte

* fix: migration

* fix: tests

* Update internal/iam/repository/eventsourcing/iam.go

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

* Update internal/iam/repository/eventsourcing/iam_test.go

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

* Update internal/iam/repository/eventsourcing/iam_test.go

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

* Update internal/iam/repository/eventsourcing/model/login_policy.go

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

* Update internal/iam/repository/eventsourcing/model/login_policy.go

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

* Update internal/org/repository/eventsourcing/org_test.go

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

* Update internal/iam/repository/eventsourcing/model/login_policy_test.go

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

* Update internal/iam/repository/eventsourcing/model/login_policy_test.go

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

* fix: pr comments

* fix: tests

* Update types.go

* fix: merge request changes

* fix: reduce optimization

Co-authored-by: Silvan <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>

* fix: reread user mfas, preferred loginname as otp account name (#636)

* fix: reread user mfas

* fix: use preferred login name as otp account name

* fix: tests

* fix: reduce (#635)

* fix: management reduce optimization

* fix: reduce optimization

* fix: reduce optimization

* fix: merge master

* chore(deps): bump github.com/gorilla/schema from 1.1.0 to 1.2.0 (#627)

Bumps [github.com/gorilla/schema](https://github.com/gorilla/schema) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/gorilla/schema/releases)
- [Commits](https://github.com/gorilla/schema/compare/v1.1.0...v1.2.0)

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

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

* chore(deps): bump github.com/gorilla/mux from 1.7.4 to 1.8.0 (#624)

Bumps [github.com/gorilla/mux](https://github.com/gorilla/mux) from 1.7.4 to 1.8.0.
- [Release notes](https://github.com/gorilla/mux/releases)
- [Commits](https://github.com/gorilla/mux/compare/v1.7.4...v1.8.0)

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

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

* chore(deps): bump github.com/DATA-DOG/go-sqlmock from 1.4.1 to 1.5.0 (#591)

Bumps [github.com/DATA-DOG/go-sqlmock](https://github.com/DATA-DOG/go-sqlmock) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/DATA-DOG/go-sqlmock/releases)
- [Commits](https://github.com/DATA-DOG/go-sqlmock/compare/v1.4.1...v1.5.0)

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

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

* chore: auto assign issues and PR to ZTIADEL project board (#643)

* Create main.yml

* Update main.yml

Co-authored-by: Livio Amstutz <[email protected]>

* fix(console): project grant members, update deps (#645)

* fix: searchprojectgrantmembers

* chore(deps-dev): bump @angular/cli from 10.0.6 to 10.0.7 in /console (#622)

Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.0.6 to 10.0.7.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.0.6...v10.0.7)

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

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

* chore(deps-dev): bump @angular-devkit/build-angular in /console (#626)

Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1000.6 to 0.1000.7.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)

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

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

* chore(deps-dev): bump @types/jasmine from 3.5.12 to 3.5.13 in /console (#623)

Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.5.12 to 3.5.13.
- [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-dev): bump ts-node from 8.10.2 to 9.0.0 in /console (#629)

Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.10.2 to 9.0.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v8.10.2...v9.0.0)

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

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

* update packlock

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

* chore: delete main.yml (#648)

* fix: usergrant (#650)

* fix(console): mfa refresh after verification, member eventemitter (#651)

* refresh mfa

* fix: detail link from contributors

* lint

* feat: add domain verification notification (#649)

* fix: dont (re)generate client secret with auth type none

* fix(cors): allow Origin from request

* feat: add origin allow list and fix some core issues

* rename migration

* fix UserIDsByDomain

* feat: send email to users after domain claim

* username

* check origin on userinfo

* update oidc pkg

* fix: add migration 1.6

* change username

* change username

* remove unique email aggregate

* change username in mgmt

* search global user by login name

* fix test

* change user search in angular

* fix tests

* merge

* userview in angular

* fix merge

* Update pkg/grpc/management/proto/management.proto

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

* Update internal/notification/static/i18n/de.yaml

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

* fix

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

* fix: translation (#647)

* fix: translation

* fix: translation

* fix: translation

* fix: remove unused code

* fix: log err

* fix: migration numbers (#652)

* chore: issue / feature templates (#642)

* feat: machine keys

* fix: implement missing parts

* feat: machine key management view

* fix: remove keys from machine view

* feat: global org read (#657)

* fix: set default expiration date

* fix: get key by ids

* feat: add machine keys in proto

* feat: machine keys

* fix: add migration

* fix: mig

* fix: correct method name

* feat: user search

* feat: user search

* fix: log ids

* fix: migrations

* fix(console): machine build (#660)

* frontend 1

* fix html bindings

* trailing comma

* fix(console): human view (#661)

* fix search user view, user detail form

* rm log

* feat(console): user services list and create (#663)

* fix search user view, user detail form

* rm log

* machine list

* generic table component

* create user service

* proove table for undefined values

* tmp disable user link if machine

* lint

* lint styles

* user table lint

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

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

* feat(console): service user detail view, keys cr_d, fix search user autocomplete (#664)

* service users for sidenav, routing

* i18n

* back routes

* machine detail form

* update machine detail, fix svc user grants

* keys table

* add key dialog, timestamp creation

* check permission on create, delete, fix selection

* lint ts, scss

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

* Apply suggestions from code review

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

* refactor: protos

* fix(management): key expiration date

* fix: check if user is human

* fix: marshal key details

* fix: correct generate login names

* fix: logid

Co-authored-by: Fabi <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Fabiennne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>

* fix: naming

* refactor: findings

* fix: username

* fix: mfa upper case

* fix: tests

* fix: add translations

* reactivatemyorg req typeö

* fix: projectType for console

* fix: user changes

* fix: translate events

* fix: event type translation

* fix: remove unused types

Co-authored-by: Fabiennne <[email protected]>
Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
Co-authored-by: Fabi <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 17:48:01 +02:00
42e24e3508 fix(migrations): event sequence as hash shared index (#528)
* one concurrent task

* disable spooler

* fix: improve concurrency in spooler

* fix: dont block lock

* fix: break if lock failed

* fix: check if handler is working

* fix: worker id

* fix: test

* fix: use limit for spoolers configured in startup.yaml

* fix test

* fix: factory

* fix(key): only reduce if not expired

* fix(searchQueryFactory): check for string-slice in aggregateID

* fix(migrations): combine migrations

* fix: allow saving multiple objects in one request

* fix(eventstore): logging

* fix(eventstore): rethink insert i locks table

* fix: ignore failed tests for the moment

* fix: tuubel

* fix: for tests in io

* fix: ignore tests for io

* fix: rename concurrent tasks to workers

* fix: incomment tests and remove some tests

* fix: refert changes for io

* refactor(eventstore): combine types of sql in one file

* refactor(eventstore): logs, TODO's, tests

* fix(eventstore): sql package

* test(eventstore): add tests for search query factory

* chore: logs

* fix(spooler): optimize lock query
chore(migrations): rename locks.object_type to view_name
chore(migrations): refactor migrations

* test: incomment tests

* fix: rename PrepareSaves to PrepareBulkSave

* chore: go dependencies

* fix(migrations): add id in events table

* refactor(lock): less magic numbers

* fix(migrations): event_sequence as hash shared index

Co-authored-by: Livio Amstutz <[email protected]>
2020-07-29 09:54:37 +02:00
41e1a7cc7b fix(spooler): correct workers (#508)
* one concurrent task

* disable spooler

* fix: improve concurrency in spooler

* fix: dont block lock

* fix: break if lock failed

* fix: check if handler is working

* fix: worker id

* fix: test

* fix: use limit for spoolers configured in startup.yaml

* fix test

* fix: factory

* fix(key): only reduce if not expired

* fix(searchQueryFactory): check for string-slice in aggregateID

* fix(migrations): combine migrations

* fix: allow saving multiple objects in one request

* fix(eventstore): logging

* fix(eventstore): rethink insert i locks table

* fix: ignore failed tests for the moment

* fix: tuubel

* fix: for tests in io

* fix: ignore tests for io

* fix: rename concurrent tasks to workers

* fix: incomment tests and remove some tests

* fix: refert changes for io

* refactor(eventstore): combine types of sql in one file

* refactor(eventstore): logs, TODO's, tests

* fix(eventstore): sql package

* test(eventstore): add tests for search query factory

* chore: logs

* fix(spooler): optimize lock query
chore(migrations): rename locks.object_type to view_name
chore(migrations): refactor migrations

* test: incomment tests

* fix: rename PrepareSaves to PrepareBulkSave

* chore: go dependencies

* fix(migrations): add id in events table

* refactor(lock): less magic numbers

Co-authored-by: Livio Amstutz <[email protected]>
2020-07-28 09:42:21 +02:00
SilvanandGitHub 56ed2940e9 fix: oidc translations (#439)
* fix: oidc translations

* fix: only one domain in org

* fix: translation in english

* Update en.yaml
2020-07-14 16:14:06 +02:00
SilvanandGitHub cc7556aaa0 fix(sql): remove ssl=true (#461) 2020-07-13 17:34:45 +02:00
SilvanandGitHub 66376f9213 fix: translate panic for changes (#433)
* fix: refactor object-changes

* fix: check if changes are nil
2020-07-09 17:16:47 +02:00
SilvanandGitHub a1e8385714 fix: refactor object-changes (#430) 2020-07-09 16:32:49 +02:00
SilvanandGitHub cf51bbc36d fix(translation_interceptor): check if response is nil (#423) 2020-07-09 15:02:03 +02:00
SilvanandGitHub 5658f33918 feat: new tracing type none (#422) 2020-07-09 14:34:20 +02:00
SilvanandGitHub e8f3868100 fix: verboser logging on sql err (#412)
* fix(eventstore): improve insert statement

* fix: verbose logging on error

* fix: simplify insertEvents
2020-07-09 11:08:59 +02:00
SilvanandGitHub fa57cc48c1 fix(eventstore): improve insert statement (#408) 2020-07-09 09:35:14 +02:00
SilvanandGitHub 59ac7f051f fix: empty project by id (#393)
* fix: check if project found in by id

* fix: check length of events
2020-07-08 14:26:35 +02:00
c0f85c2733 feat: localized messages (#328)
* fix: project by id loads project from view and from eventstore

* fix: correct search key for role

* feat(auth): my user changes

* fix: improve error handling in change converters

* fix: log-id

* feat(translations): event type translations

* feat: localized translations

* fix(translations): correct yaml format

* chore: example

* fix: remove unused code

* correct checkSSL in sql

* chore(modules): update

* chore: refactor interceptors

* fix: improvments

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/en.yaml

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

* Update internal/static/i18n/en.yaml

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

* Update internal/static/i18n/en.yaml

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

* Update internal/static/i18n/en.yaml

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

* Update internal/static/i18n/en.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/de.yaml

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

* Update internal/static/i18n/en.yaml

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

* chore(translations): start with upper case on Code

* chore(middleware): move funcs

* add message to grpc web generation

* translation in mgmt and fixes

* fix authoptions

* fix console statik

Co-authored-by: Florian Forster <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>
2020-07-08 09:48:11 +02:00
SilvanandGitHub 5081ff21b0 fix: return emtpy project if no project in view (#379)
* fix: return emtpy project if no project in view

* fix: new project if nil

* fix: easier to read
2020-07-07 19:28:19 +02:00
c6e8597eeb fix(config): rename env vars notify to notification (#362)
* fix(config): sql password as env var

* fix(config): rename notify to notification

* Update startup.yaml

Co-authored-by: Livio Amstutz <[email protected]>
2020-07-07 16:53:07 +02:00
eaef079852 fix(config): sql password as env var (#360)
* fix(config): sql password as env var

* fix(postgres): password for admin corrected

Co-authored-by: Stefan Benz <[email protected]>
2020-07-07 13:03:46 +02:00
SilvanandGitHub 36916838ed fix(migrations): add display_name to all user_grant tables (#359) 2020-07-07 13:00:00 +02:00
SilvanandGitHub a6ffb120fa fix(admin): setup converter only adds domain if set (#358) 2020-07-07 12:57:45 +02:00
SilvanandGitHub 18669b39c1 fix(iam_member): naming, error handling, column name (#355) 2020-07-07 11:42:39 +02:00
SilvanandGitHub b7298bed1e fix(sql): ssl check for empty mode (#345) 2020-07-06 10:00:26 +02:00
SilvanandGitHub 6736b2867e fix: Secure sql connection (#332)
* feat: sql ssl connection

* fix: simpler implementation of ssl-config in sql

* fix(config): set db ssl connection by env vars
2020-07-03 12:44:08 +02:00
SilvanandGitHub 682d623343 fix(spooler): improve check for failure count (#326)
* fix(spooler): improve check for failure count

* fix(spooler): add tests for HandleError

* fix(spooler): correct test
2020-07-02 08:08:55 +02:00
SilvanandGitHub fcdf27c683 fix(usergrant): verify project id is equal (#319)
* fix(usergrant): verify project id is equal

* fix: delete wrong code
2020-07-02 08:04:43 +02:00
SilvanandGitHub c5a4eb3555 fix: typo in display name and gorm annotation (#325)
* fix(management): map all fields in user grant view converter

* feat(management): add display name to user grant view

* fix(usergrant): typo in display name
2020-07-01 13:18:30 +02:00
SilvanandGitHub f57913fdcc fix(management): map all fields in user grant view converter (#324)
* fix(management): map all fields in user grant view converter

* feat(management): add display name to user grant view
2020-07-01 12:46:46 +02:00
SilvanandGitHub cf7a906023 feat(auth): My user changes (#318)
* fix: project by id loads project from view and from eventstore

* fix: correct search key for role

* feat(auth): my user changes

* fix: improve error handling in change converters

* fix: log-id
2020-07-01 07:18:05 +02:00
SilvanandGitHub 566161ae89 fix: correct search params for project role by id (#316)
* fix: project by id loads project from view and from eventstore

* fix: correct search key for role
2020-06-30 07:56:03 +02:00
SilvanandGitHub 3c56fe6a0f fix: project by id loads project from view and from eventstore (#315) 2020-06-30 07:54:39 +02:00
SilvanandGitHub 509a993d31 chore: zitadel service account instead of eventstore (#300) 2020-06-29 09:38:55 +02:00
SilvanandGitHub d947bb1247 feat(changes): add editor (#273)
* fix(changes): add editor to change mapper

* fix(eventstore): only add latest sequence if greater 0 to query

* sort order in request for changes

* fix(changes): map editor for org, app and project
2020-06-25 11:25:38 +02:00
SilvanandGitHub ddebaad497 fix(auth): fix typo in mfa state mapping (#268) 2020-06-24 14:12:11 +02:00
SilvanandGitHub 3025ac577b feat: org queries (#136)
* search orgs

* org by domain

* member spooler

* member

* get roles

* tests

* types duration

* use default func for renew

* correct database

* reorder migrations

* delete unused consts

* move get roles to internal

* use prepared org by domain

* implement org in other objects

* add eventstores
2020-05-26 16:46:16 +02:00
SilvanandGitHub c365a98cc8 move files (#125) 2020-05-19 10:12:37 +02:00
9e32740eb8 feat: org command sides (#96)
* start org

* refactor(eventstore): filter in sql for querier

* feat(eventstore): Aggregate precondition

preconditions are checked right before insert. Insert is still transaction save

* feat(eventstore): check preconditions in repository

* test(eventstore): test precondition in models

* test(eventstore): precondition-tests

* start org

* refactor(eventstore): filter in sql for querier

* feat(eventstore): Aggregate precondition

preconditions are checked right before insert. Insert is still transaction save

* feat(admin): start implement org

* feat(eventstore): check preconditions in repository

* fix(eventstore): data as NULL if empty
refactor(eventstore): naming in sequence methods

* feat(admin): org command side

* feat(management): start org-repo

* feat(org): member

* fix: replace ObjectRoot.ID with ObjectRoot.AggregateID

* aggregateID

* add remove,change member

* refactor(org): namings

* refactor(eventstore): querier as type

* fix(precondition): rename validation from precondition to validation

* test(eventstore): isErr func instead of wantErr bool

* fix(tests): Data

* fix(eventstore): correct check for existing events in push,
simplify insert statement

* fix(eventstore): aggregate id public

* test(org): eventsourcing

* test(org): eventstore

* test(org): deactivate, reactivate, orgbyid

* test(org): getMemberByIDs

* tests

* running tests

* add user repo to admin

* thorw not found if no org found

* eventstore tests done

* lauft

* validate if user is already member of org

* modules

* delete unused file

* add member validation test

* return error if unable to validat member

* generate org id once,
set resourceowner of org

* Update internal/admin/repository/eventsourcing/eventstore/org.go

* Update internal/admin/repository/eventsourcing/eventstore/org.go

* Update internal/org/repository/eventsourcing/member_model.go

* Update internal/org/repository/eventsourcing/org.go

* Update internal/org/repository/eventsourcing/org.go

* Update internal/org/repository/eventsourcing/org_member.go

* Update internal/org/repository/eventsourcing/org_member.go

* Update internal/org/repository/eventsourcing/org_model.go

* Update internal/org/repository/eventsourcing/org.go

* Update internal/org/repository/eventsourcing/org_model.go

* Update internal/org/repository/eventsourcing/org_model.go

* typo

* correct user events

* usercreate for setuporg instead of userregister

* set data

* mod

* mod

* tests

* cleanup code

* code styling

* return member on add and change

* change username in startup

* girignore

* orgID as parameter in re-/deactive org

* startup config

* migration for admin_api-user

* probes fro admin

* move unique org

Co-authored-by: Fabiennne <[email protected]>
2020-05-13 14:22:29 +02:00
33a4802425 feat(eventstore): Precondition (#69)
* start org

* refactor(eventstore): filter in sql for querier

* feat(eventstore): Aggregate precondition

preconditions are checked right before insert. Insert is still transaction save

* feat(eventstore): check preconditions in repository

* test(eventstore): test precondition in models

* test(eventstore): precondition-tests

* refactor(eventstore): querier as type

* fix(precondition): rename validation from precondition to validation

* test(eventstore): isErr func instead of wantErr bool

* fix: delete org files

* remove comment

Co-authored-by: Livio Amstutz <[email protected]>
2020-04-28 16:01:00 +02:00
SilvanandGitHub 191690d905 feat(eventstore): sdk (#39)
* sdk

* fix(sdk): return correct error type

* AppendEventError instead of Aggregater error

* fix(tests): tests

* fix(tests): wantErr to is error func
2020-04-07 18:36:37 +02:00
fbeab4c582 Eventstore (#22)
* feat: eventstore repository

* fix: remove gorm

* version

* feat: pkg

* feat: eventstore without eventstore-lib

* rename files

* gnueg

* fix: add object

* fix: global model

* feat(eventstore): sdk

* fix(eventstore): search query

* fix(eventstore): rename app to eventstore

* delete empty test

* remove unused func

* merge master

* fix(eventstore): tests

* fix(models): delete unused struct

* feat(eventstore): implemented push events

* feat(eventstore): overwrite context data

* feat(types): SQL-config

* feat(eventstore): options to overwrite editor

* Update internal/eventstore/models/field.go

Co-Authored-By: livio-a <[email protected]>

* fix(eventstore): code quality

* fix(eventstore): rename modifier* to editor*

* fix(eventstore): delete editor_org

Co-authored-by: Fabiennne <[email protected]>
Co-authored-by: livio-a <[email protected]>
2020-04-06 06:42:21 +02:00
SilvanandGitHub e644280196 Merge pull request #25 from caos/badges
docs(badges): replace imgshield with badgen
2020-03-30 23:35:37 +02:00