3
0
Commit Graph

76 Commits

Author SHA1 Message Date
Tit Petric
876a304def upd(all):
- moved Access type from system to internal/rules,
- moved Resource from system to internal/rules,
- update imports for new type locations,
- add scope list container to inject permissions,
- update permissions API call to return default perms,
- update codegen for generated Rules types
2019-02-06 11:19:32 +01:00
Tit Petric
087196f571 clean(all): gocritic warnings cleanup 2019-02-05 16:14:28 +01:00
Tit Petric
f10c3cfbe7 upd(all): s/sam/messaging, del: build-proto.sh 2019-02-05 15:51:15 +01:00
Tit Petric
94c6f4c94e upd(internal): s/sam/messaging for payload/outgoing 2019-02-05 15:29:55 +01:00
Tit Petric
e9609287a9 upd(messaging): update import paths 2019-02-05 15:15:08 +01:00
Denis Arh
7115949354 Add db connection retrying on startup 2019-02-04 10:15:38 +01:00
Tit Petric
eba7af3e5c upd(system): update oidc state cookie domain 2019-01-30 02:03:00 +00:00
Tit Petric
8da5692762 upd(docker): expose port 80 by default 2019-01-29 23:57:35 +00:00
Mitja Zivkovic
4d57db5897 upd(internal): rbac.Operations to rules.Operations 2019-01-28 10:53:19 +01:00
Mitja Zivkovic
3747bce99d upd(internal): add ListGrants 2019-01-24 08:31:55 +01:00
Denis Arh
26ddcab2c1 Add channel-membership flagging capabilities 2019-01-22 21:27:52 +01:00
Mitja Zivkovic
c0422a738a upd(internal): types.Access and rules(Allow/Deny/Inherit) 2019-01-22 14:46:29 +01:00
Mitja Zivkovic
d9761cb7a1 upd(internal): rules.value as tinyint 2019-01-22 14:46:29 +01:00
Mitja Zivkovic
578363d8f8 upd(internal): must/mustFail to NoError/Error 2019-01-22 14:46:29 +01:00
Mitja Zivkovic
8271790282 upd(internal): ErrNil into NoError 2019-01-22 14:46:29 +01:00
Tit Petric
d17a6fb8aa add(internal): rules feature
- add make test.rules target
- add rules api implementation
- add sql migration for rules table
- add unit tests to verify it works
2019-01-22 14:46:29 +01:00
Denis Arh
2748847ee9 Add (created|updated|delete)_by fields on record
Move data manipulation from repo to service layer
2019-01-21 14:42:07 +01:00
Denis Arh
14a344c7a1 Unread messages, reworked 2019-01-17 19:49:40 +01:00
Denis Arh
ae733dc2c9 Credentials & social-sign-on, fixed mocks 2019-01-14 10:40:52 +01:00
Denis Arh
7c36966e68 Notification endpoint (for sending emails from the CRM) 2019-01-13 19:08:26 +01:00
Denis Arh
500e8e317c Improve SMTP
API can now be started without properly configured SMTP (it complains when it is used)
Send() function can now use alternative dialers (mostly used for testing)
Added mailhog service (make mailhog.up) to ease mail testing
Add default .env example that points to localhost:1025 (mailhog) setup
Proper unit testing
2019-01-13 14:45:27 +01:00
Tit Petric
6fba3cb81d add(all): mail sending from app 2019-01-09 18:57:19 +01:00
Tit Petric
38debbb1b1 upd(rbac): user create returns valid user now 2018-12-05 13:27:55 +00:00
Tit Petric
f92d7a96f0 upd(rbac): update tests 2018-12-05 13:27:31 +00:00
Tit Petric
98e490ce88 add(rbac): permissions struct for services 2018-12-04 14:38:31 +01:00
Tit Petric
f2dfffbab2 update:
- codegen includes rbac since it's used everywhere,
- update permissions structure naming for title/subtitle
2018-12-04 14:38:31 +01:00
Tit Petric
858d2a7799 upd(rbac): refactor debugging flags to main test file 2018-11-29 19:12:37 +00:00
Tit Petric
187330938b upd(rbac): change in operations response for roles 2018-11-29 19:11:14 +00:00
Tit Petric
1c9b1d2d7f upd(internal):
- option to disable OIDC via config
- extend TokenEncoder with SetCookie
2018-11-26 16:58:19 +01:00
Denis Arh
f51f0f80a5 Unreads, channel (and message) activity capabilities extended 2018-11-15 16:46:33 +01:00
Denis Arh
277b7412d1 Add support for unread in threads 2018-11-15 16:46:33 +01:00
Denis Arh
0f1f545b90 Add thread participants to msg struct 2018-11-14 05:57:55 +01:00
Denis Arh
d74825b40e Add security checks for channel, membership updating 2018-11-13 13:56:56 +01:00
Tit Petric
3e7898fbac add(rbac):
- multi delete resources
- check access over multiple resources
- tests
2018-11-12 15:38:35 +01:00
Tit Petric
3ad72640bb upd(internal):
- don't provide fault db connection setting
- prefix is optional, check if we have it
2018-11-09 16:15:51 +01:00
Denis Arh
0ee0951630 Add support for fetching pinned & bookmarked messages 2018-11-08 22:48:55 +01:00
Denis Arh
5b832bbea1 Implement mentions
Extends internal type and outgoing structs
2018-11-07 11:21:11 +01:00
Tit Petric
fdf24b3e2c Refactor for new system service
- upd(all): indent spec.json files on all apps
- upd(auth): rename auth app to cmd
- upd(sam): move orgs, teams to system
- upd(system): extend spec.json for check
- upd(codegen): include system/
- upd(codegen): always generate spec files
- upd(sam): references from auth to system
2018-11-05 12:04:04 +01:00
Denis Arh
67c1a47b16 Message pin/reaction events are now sent standalone (w/o message obj) 2018-11-02 18:19:45 +01:00
Denis Arh
242408e83e Refactor and polish flags (reactions, pins & bookmarks) 2018-11-02 10:07:32 +01:00
Denis Arh
71986df8d3 More options for msg search queries 2018-11-01 14:34:08 +01:00
Denis Arh
7ac8b9b5f7 Redone channel (un)deleting/(un)archiving 2018-10-31 08:36:09 +01:00
Denis Arh
e97cbcea51 Redo service mocking, add ch name & topic length validation 2018-10-30 09:31:47 +01:00
Denis Arh
f8c0ad36d1 Add FindThreads and expose it on websocket endpoint 2018-10-29 13:47:03 +01:00
Denis Arh
6a348f8e55 Pack can(Edit|Reply|Delete) flags with outgoing message 2018-10-28 10:14:28 +01:00
Tit Petric
f78a35b989 add(all): protect metrics with basic auth 2018-10-26 12:43:36 +02:00
Tit Petric
adeefdbeaa fix(all):
- config fixes for singleton values (most)
- add monitor into internal/metrics
- clean up cmd folders to remove monitor
- implement versions on all apps
2018-10-26 11:20:15 +02:00
Denis Arh
44f0ca33e1 Cleanup record-view func signatures & types 2018-10-25 10:26:59 +02:00
Denis Arh
2ec5934d2e User/channel activity echoing service 2018-10-24 17:17:31 +02:00
Denis Arh
62fa9c4704 Improve session connection handling (presence) 2018-10-24 16:02:52 +02:00