Dušan Borovčanin
6c59184d3f
NOISSUE - Fix CI script ( #1613 )
...
* Fix CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter errors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add timeout to linter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-06-09 21:57:37 +02:00
b1ackd0t
c8f841f8f3
MF-1588 - Update Subscriber interface ( #1598 )
...
* Initial commit
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update subscriber interface
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* check subscription map
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Check topic id after topic
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* reword description
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Setup empty queue
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change mqtt implementation
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Switch statements
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Simplify
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change mqtt subscriber
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Protect subscription map
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix subscription
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Set client id
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Format
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change delete method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-05-03 18:02:19 +02:00
Arvindh
b19ba0db7d
MF-1525 - Add graceful stop for HTTP and GRPC servers ( #1548 )
...
* Add : errgroup to cmd/auth
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Handle graceful stop for auth service
Remove : errgroups from auth service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Wait till server shutdown
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Change : instead of waitgroup changed to errgroups
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change : KillSignalHandler return type to error
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Empty Commit
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Context to http server shutdown
Rename : varaible from proto to protocol
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change : to default log level
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Sign-off
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: graceful stop of http and grpc server
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix: typos and caps
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: Signed-off
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename: Func KillSignalHandler to SignalHandler
Add: SIGABRT
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix: auth service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: timeout for grpc gracefulstop
Fix: typos
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: .vscode folder to git ignore
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change: variable name to stopWaitTime
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: .vscode folder
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: .vscode from .gitignore
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : logger to handlers
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : New line at end of .gitignore file
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix : variable naming
Add : graceful stop for timescale
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Remove : unsued NATS library from import
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move: "https" and "https" to moved to const var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move: "http" and "https" to moved to const var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* update: branch with master
Signed-off-by: Arvindh <arvindh91@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2022-05-03 13:57:54 +02:00
Manuel Imperiale
48d6a95a21
MF-1582 - Fix lora-adapter MQTT client ( #1583 )
...
* MF-1582 - Fix lora-adapter MQTT clien
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add timeout config to the mqtt subscriber
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add sub timeout
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-04-11 13:52:20 +02:00
Dušan Borovčanin
c6f7c69798
NOISSUE - Fix CoAP adapter ( #1572 )
...
* Revert "NOISSUE - Add nats wrapper for COAP (#1569 )"
This reverts commit cc5d5195ab
.
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CoAP adapter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update CoAP observation cancel
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix observe
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix GET handling
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Revert authorization
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use constants instead of magic numbers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove an empty line
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Extract special observe value to constant
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-03-30 16:52:10 +02:00
Manuel Imperiale
ce46723a8f
NOISSUE - Unify MF_INFLUX_READER_DB_HOST and MF_INFLUX_WRITER_DB_HOST envars ( #1585 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-03-29 11:53:27 +02:00
Manuel Imperiale
e5278c463f
MF-1348 - Add transport errors logging ( #1544 )
...
* MF-1348 - Add go-kit transport level logging
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remark
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix go test flags
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in things and http service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix SDK tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in certs and provision service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in consumers service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* General renaming and add ErrMissingToken
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename httputil -> apiutil and use errors in users servive
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use apiutil errors in auth, bootstrap, readers, things and twins
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace errors.Contain by comparison
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateID
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateID
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify and rename ExtractAuthToken -> ExtractBearerToken
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix readers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix auth key test and remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateUUID check
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-03-03 17:13:46 +01:00
b1ackd0t
cc5d5195ab
NOISSUE - Add nats wrapper for COAP ( #1569 )
...
* Add nats wrapper for COAP
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Pass pubsub as argument
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Defer close connection
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Defer close connection
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Rename endpoint to topic
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
2022-03-02 23:37:54 +01:00
Ivan Milošević
d51a79c538
NOISSUE - Separate Keto hosts for read and write ( #1563 )
...
* Separate keto hosts for read and write
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* update readme with new envars
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* rename read connection name
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2022-02-11 14:27:33 +01:00
Manuel Imperiale
09cbc3f14b
MF-1551 - Fix Cobra usage commands and clean unnecessary struct types ( #1558 )
...
* MF-1551 - Fix Cobra usage commands and clean unnecessary struct types
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use linux syntax for cmd usage description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix cmd.Use
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-02-11 13:22:57 +01:00
Mirko Teodorovic
655ac838be
MF-1257 - Access messages from readers endpoint with user access token ( #1470 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add user auth for db reader
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* add user auth for db reader
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* enable mongodb reader for user token reading
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* use uuid check for auth switch between thing key and user tok
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* enable user token reading
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* revert to correct version
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix endpoint test, add additional tests
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove logs,dead code
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix logging messages
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove auth interface, add authorization header type
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* update api doc
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove unused package
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* some refactor of cases for authorization switch
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* correct description in openapi
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix endpoint test to match auth service change
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* some rename
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* initialize auth url
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* add env variables for auth service
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix spelling
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* Things prefix and no prefix for Thing authorization, Bearer for user
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* update readme file
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix default things grpc port
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* enable user reading for timescaledb
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove not used error
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* improve errors
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* refactor authorize
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* add chanID check
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* inline some error checking
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fixing errors
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fixing errors
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* improve test case description
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove test code
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* dont inline
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* refactor a bit encodeError
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove unused error
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove unused error
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix things auth grpc url
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* rename variables for header prefix
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-02-09 21:25:34 +01:00
Ivan Milošević
1f8a221c22
MF-1059 - Add TLS support for email ( #1560 )
...
* Use gomail package for sending emails
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove print err
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Add vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Rename email structure
remove logger
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* typo in var name
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* rename var
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove MF_EMAIL_SECRET
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2022-02-07 13:51:43 +01:00
Manuel Imperiale
6ad654d7cb
MF-1263 - Move repeating errors to the separate package ( #1540 )
...
* MF-1263 - Mv duplicated errors to pkg/errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert test build flags
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-01-27 17:03:57 +01:00
Filip Bugarski
4f56986c8e
NOISSUE - Add API keys functions to CLI ( #1537 )
...
* Add API keys to cli
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix typo
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix issue func, and sdk
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Remove email, hide type and fix name
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Remove type and add README
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix issue response
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix magic number and move struct to private
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Remove const and import auth
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Removing auth
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-01-27 15:42:31 +01:00
b1ackd0t
2abf9da27e
MF-1008 - Make token duration configurable ( #1550 )
...
* Make token duration configurable
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change env variable name
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add MF_AUTH_LOGIN_TOKEN_DURATION in environment variable
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Document MF_AUTH_LOGIN_TOKEN_DURATION
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change default login duration
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change declaration of loginduration
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add space after port
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change time to hours
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove constant login duration
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Keep back recovery duration
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change docs for login token duration
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change login description
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove blank lines
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
2022-01-25 19:42:41 +01:00
Manuel Imperiale
42dd813521
MF-1308 - Use IETF Health Check standard ( #1541 )
...
* MF-1308 - Use IETF Health Check standard
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add nginx health endpoint
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm github.com/nelkinda dependency
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace Version by Health in the CLI and SDK
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use new build flag go:build
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert wrong renaming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* sdk health test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add /health endpoint to openapi doc
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use const for description message
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add version and build time during build
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Time format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add version and commit using git and build args
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing api properties
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix api
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use ./schemas/HealthInfo.yml as
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix example
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use content type application/health+json
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Set Makefile variables only if empty
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-01-24 21:18:53 +01:00
JohnC
864ad144e6
MF-1478 - TimescaleDB writer and reader add-on ( #1542 )
...
* MF-1478 - TimescaleDb Reader/Writer Add-on
Signed-off-by: John Cleasby <john.cleasby@gmail.com>
* pull request 1542 change requests
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* pull request 1542 change requests 2
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* removed unused separator const from timescale reader and writer cmd
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* Fixed naming of timescaleRepo instance
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* Fixed indentation and renamed repo to tr
Signed-off-by: corp0529 <john.cleasby@gmail.com>
2022-01-18 12:08:54 +01:00
Manuel Imperiale
aa014c2191
NOISSUE - Add view and list serials endpoints in certs service ( #1483 )
...
* NOISSUE - Add view and list serials endpoints in certs service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix vault-unseal.sh script
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename Cert field days_valid into hours_valid
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix provision service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use ownerID, rename daysValid -> hoursValid
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add key_type to api
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tabulation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add expiration date in view response
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename HoursValid -> Expiration and remove unecessary expiration convertion
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ListSerials tests and fix mocks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix RetrieveByThing count
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ViewCert tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing error check
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify API
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert Makefile
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Add view and list serials endpoints in certs service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix vault-unseal.sh script
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename Cert field days_valid into hours_valid
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix provision service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use ownerID, rename daysValid -> hoursValid
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add key_type to api
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tabulation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add expiration date in view response
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename HoursValid -> Expiration and remove unecessary expiration convertion
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ListSerials tests and fix mocks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix RetrieveByThing count
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ViewCert tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing error check
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify API
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert Makefile
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm if else
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename HoursValid -> TTL
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* revert typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* revert typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename hoursValid -> ttl
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-01-04 19:42:13 +01:00
Manuel Imperiale
b18c9e79dc
NOISSUE - Add timestamp transformation rules for specifc JSON fields ( #1514 )
...
* NOISSUE - Add timestamp transformation rules for specifc JSON fields
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests and defaults
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Created
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix READMEs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Config file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve the timestamp Config structure
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typos
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix smpp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated Unmarshal
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Extract the error var
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Return error if time field transformation fails
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-12-14 11:17:23 +01:00
Burak Sekili
b78928c998
NOISSUE - Listing Policies ( #1498 )
...
* allow admin to fetch all things
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* enable users to fetch their own things via owner field in db
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* add listpolicies RPC
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* add listPolicies gRPC methods for client and server, and update keto initialization
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update fetching things method
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* remove log
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update retrieving policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* fix linter error
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update mock
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* remove checking subject set while parsing subject sets
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* move subject declaration to constant value
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-19 14:32:38 +01:00
Burak Sekili
dc935858bd
NOISSUE - Update self register environment variable name ( #1493 )
...
* NOISSUE - Update naming of env variable (#1484 )
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-03 10:30:52 +01:00
Dušan Borovčanin
27d4646db4
MF-1443 - Add policies ( #1482 )
...
* MF-1443 - add policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* fix users create
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Add Policies for sharing a Thing (#1463 )
* MF-1454 - Add policies for sharing a Thing
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add a test case for sharing thing and update mock of AddPolicy
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update ShareThing parameter naming
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Policy Removal (#1466 )
* Add DeletePolicy gRPC endpoint in auth package
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update default admin creation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add policy addition endpoint (#1479 )
* NOISSUE - Add policy addition endpoint
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update name of the method
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
remove build tag
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add tests for AddPolicies (#1480 )
* NOISSUE - Add tests for adding policy and update authz check
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add more tests and update request body validation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update test case structure and utilize mock prefix for test ids
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Add initial policies for Group access control (#1467 )
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve PR comments
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Author: Burak Sekili <buraksekili@gmail.com>
2021-10-27 00:38:28 +02:00
smartyfi
5e9a91bd03
MF-1468 - Fix ThingsURL in Certs Service ( #1474 )
...
* fix issue #1468
Signed-off-by: smartyfi <a.shabrawy@smarty-fi.com>
* update env variable to MF_THINGS_URL
Signed-off-by: smartyfi <a.shabrawy@smarty-fi.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2021-10-16 00:26:18 +02:00
Dušan Borovčanin
39ae7bdfa1
NOISSUE - Refactor single-user mode ( #1471 )
...
* Refactor single user mode
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Twins dependency
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename `single-user` to `standalone`
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2021-10-11 16:08:26 +02:00
Ivan Milošević
66d3da0531
NOISSUE - Add SMPP notifier ( #1464 )
...
* Add SMPP notifier
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix readme
remove env file
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* resolve conversations
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Remove debug log
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Rename transmiter and transformer fields in struct
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix typo
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-10-06 14:34:23 +02:00
Mirko Teodorovic
7b3c26f60f
NOISSUE - Fix bootstraping ( #1448 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix url for sdk
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* revert init.go
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
2021-08-13 13:56:05 +02:00
Drasko DRASKOVIC
d73a5d53fe
MF 1413 - Use per-service URL in SDK ( #1444 )
...
* Use per-service URL in SDK
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Fix CLI
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix CLI messaging
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix message tests
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Simplify Bootstrap
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Update API doc and responses
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* fix failing certs, bootstrap tests
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix failing certs, bootstrap tests
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* Fix tests and rename to auth service
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Clean the code
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Remove unnecessary Repository logs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Always return error in case of repo failure
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Cleanup SDK and CLI
Update tests, remove linter warnings, remove dead code.
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Clean the code
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Undo Bootstrap changes
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix tests
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix linter
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
Co-authored-by: mteodor <mirko.teodorovic@gmail.com>
Co-authored-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-08-11 16:58:10 +02:00
Dušan Borovčanin
516c02bebe
MF-1378 - Update dependencies ( #1379 )
...
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix compose files and configs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Upgrade image versions
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Postgres version
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update test dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix fkey error handling
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-05-20 20:53:56 +02:00
Manuel Imperiale
0fe9f55bae
NOISSUE - Add tests and connection route-map to lora-adapter ( #1404 )
...
* NOISSUE - Add tests and connection route-map to lora-adapter
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename LoraServer -> ChirpStack and fix links
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove ctx arg from Publish method
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert LoRa Server
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix links
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check ids before to modify connection route-map
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Log conn errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-04-14 22:26:49 +02:00
Mirko Teodorovic
74aa93fbb6
NOISSUE - Certs service refactor ( #1369 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs mock
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove not wanted changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cert test, remove default implementation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix default value for vault host
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cert test, remove default implementation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* linter cleaning
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments, and logging
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use mocks from other services
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename struct and url path params
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve minor comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* align url params naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix typo
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove struct revoke
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor certRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-03-15 12:27:32 +01:00
Ivan Milošević
a1e18a770a
init commmit ( #1385 )
...
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-03-10 11:52:33 +01:00
Mirko Teodorovic
530f925c4d
MF-1346 - Create Groups API - add grouping of entities ( #1334 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users endpoint for retrieving users from group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups from things and users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups into auth
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* separate endpoints for users and things
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix problems with retrieving members
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups from users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups from things
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename constant
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add new errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unnecessary constants
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* create groups db mock
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes to docker related files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups endpoints from users openapi
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups endpoints from users openapi
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move constant from postgres to groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move constant from postgres to groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move constant from postgres to groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove testing group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam typ to groupType
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add error for max level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove print
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups.Member interface
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix query building and add test cases
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* uncomment tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups package
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove group type, add bulk assign and unassign
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update openapi, remove parentID from create request, reorder endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update openapi
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update openapi for users and things
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename assignReq structure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor mocks, response, remove type from endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* some refactor, renaming, errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify check
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove package alias
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming and comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* additional comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add members grpc endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix retrieving members for different types
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix retrieving members for different types
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unecessary structure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix api grpc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename const
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactore retrieve parents and children with common function
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes for errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix compile error
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sorting in mock
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove regexp for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert as change is made by mistake
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert as change is made by mistake
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor groups and keys package
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test for timestamp compare
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove errors not being used
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* var renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add endpoints for groups into nginx
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, remove some errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, remove some errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix group save path problem
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* description constant
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variables
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* get back return
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix compile
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-03-04 10:29:03 +01:00
Mirko Teodorovic
6b1f4d54f8
NOISSUE - Fix certs and vault deployment, reorganize and remove unnecessary vars ( #1368 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix certs, fix scripts, reorganize env vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* set pki path vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs mock
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove not wanted changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* correct rsa_bits to key_bits
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tabulation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* hardcode vault version
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add env desc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam variables
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use Mainflux Labs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace BG with Belgrade
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-03-02 12:20:52 +01:00
Ivan Milošević
7bcaa323d4
MF-1317 - Configurable regexp rule for password ( #1355 )
...
* read and validate regex envar
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* pass regexp to user/api
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* resolve conflicts
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use exported regexp variable
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* move password validation from users package
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove dead code
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add password change request
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* move regexp from api to users package
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix tests
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove commented code
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add regexp as field in userService, remove it as user exported global var
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add passwd validation in service
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Add psswd validation for change password in service
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add password validation in password reset
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Remove password validation from user validation test
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Replace email and passwords in test with constants
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* compile error not fail silently
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix tempate path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-03-01 15:22:57 +01:00
Mirko Teodorovic
0432b2aa03
NOISSUE - Fix default values for port and x509 provision ( #1367 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix default port and certs settings
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small typo fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor env vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-02-27 01:01:48 +01:00
Dušan Borovčanin
24b902d049
Fix env configuration and documentation ( #1360 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-08 22:38:52 +01:00
Dušan Borovčanin
13c426c09c
NOISSUE - Support disabling Email Agent authentication ( #1356 )
...
* Fix mailer configuration
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove unused Driver option
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Email Agent README
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-08 13:21:52 +01:00
Manuel Imperiale
ca5ff63dfb
NOISSUE - Upgrade Mongo, Cassandra and Influx docker images ( #1354 )
...
* NOISSUE - Upgrade Mongo, Cassandra and Influx docker images
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use cassandra version 3.11.9
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add MF_INFLUXDB_HTTP_AUTH_ENABLED envar
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use influxdb 1.8.4-alpine
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use influxdb 1.8.4
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-02-05 12:32:21 +01:00
Dušan Borovčanin
a3dbfecb2d
MF-1311 - Add Notifications service ( #1324 )
...
* Add repo to Notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add initial repo implementation
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Subscriptions repo implementation
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add working version of main method
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Notifier API
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add API layer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Notifier interface
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix SMTP notifier main
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix email sending
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix main log
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Readme and fix env vars
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update README
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove commented code
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename notifiers to notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Consumer API to writers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix contact naming
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix spacing in init.go
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix API
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add mocks
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add initial service test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use pagination
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update List method
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix listing
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename SubscriptionPage to Page
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Finish service tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add DB tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add more API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove Things dependency
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add API docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Things references
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix AuthN typo
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter warnings
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add license comments
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix test order
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use service error for wrappers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix repo setup test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use total const in tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use constant contacts
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix code formatting
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename notifier implementation
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Notify to Notifiers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve remarks
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix naming and docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix docker-compose
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Subscriptions to Notifiers service
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix logging
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix formatting and typo
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve remarks
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix topic request
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-01 14:08:10 +01:00
Manuel Imperiale
8c87ee8328
NOISSUE - Revert cli to use user token from command args ( #1339 )
...
* NOISSUE - Revert cli to use user token from command args
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove CLI binary
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add offset, limit, name and rawOutput to config file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert cli.ParseConfig()
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check config values before to use them
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-28 11:29:32 +01:00
Dušan Borovčanin
5cfc9305e5
Make Transformer type configurable ( #1331 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-01-20 13:10:40 +01:00
Manuel Imperiale
0f856f5667
NOISSUE - Rename package aliases uuidProvider into uuid ( #1323 )
...
* NOISSUE - Rename pkg aliases uuidProvider into uuid and fix authn typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing error checks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use global uuidProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use expTime globally
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix user uuid provider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use idProvider name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use idProvider instead of uuidProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use idProvider instead of uuidProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-17 23:12:45 +01:00
Ivan Milošević
0516fe2fd7
MF-1034 - Wrapping MQTT client ( #1318 )
...
* use subscribe interface
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* delete old implementation
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add subscribeToLoRaBroker method
change declaration
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove alias for package
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-01-15 23:22:18 +01:00
Dušan Borovčanin
6b7dc54c8b
NOISSUE - Switch to Consumers interface ( #1316 )
...
* Replace Writer with Consumer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Notifications package
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Consumer Start
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Consumer naming
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add repo to Notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename consumer field in middlewares
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix remarks and add Readme
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-01-11 23:55:34 +01:00
Manuel Imperiale
ac09815457
NOISSUE - Fix Auth typo ( #1319 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-11 10:00:13 +01:00
Ivan Milošević
3eca6920e1
NOISSUE - Add health check for MQTT broker ( #1305 )
...
* Add health check
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* update readme
use constants
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* close body after each HEAD request
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* log and close health check response body
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use healthcheck endpoint instead ping for docker healthcheck
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove for loop, only one check and exit if failed healthcheck
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* changed cmd for healthcheck
new version of verne image
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use false instead exit 1
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* return for loop
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* review
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add continue after unsuccesful http.get
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Use backoff package
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* extracting healtcheck function outside main()
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* go mod vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* go mod tidy
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* go mod vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-01-05 19:45:09 +01:00
Dušan Borovčanin
e326494166
MF-1264 - Add support for JSON readers ( #1295 )
...
* MF-1254 - Create universal JSON writer (#1260 )
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add JSON support to Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influx Reader tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix messages format query
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Postgres reader
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Cassandra Readers and writers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Mongo reader
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Extract utility method to the JSON transformer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influx and Postgres count
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update JSON transformer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influxdb Reader total count
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor init.go for Cassandra writer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Create a Payload type
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add comments for defaults
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix variable declarations
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace interface{} with a new type
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Don't set channel just to overwrite it later
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix range search
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Messages field
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-30 15:43:04 +01:00
Mirko Teodorovic
47217cb5b9
NOISSUE - Merge authz and authn into new service auth ( #1313 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move authz into authn and merge into new service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mocks, some renaming, refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mocks, some renaming, refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter err,and comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* undo renaming, add interface for authn and authz
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam some variables
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra slashes from comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving small remarks
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-29 23:02:35 +01:00
Mirko Teodorovic
fbba7aaa1a
MF-1248 - Add access policies for users ( #1246 )
...
* authz service init
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* authz service init
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* authorize method
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add casbib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add casbib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add casbib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add policy grpc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add policy grpc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix db connection, add environment variables, docker-compose
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add model.conf policy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add model.conf policy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests, and token for auth
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix auth service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, add model conf env var
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove users grpc for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix error
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* some cosmetics
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolvin minor comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change endpoint, add file to fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix docker env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix alignment and path for model.conf
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-08 17:04:09 +01:00
Mirko Teodorovic
7195cad0f6
MF-397 - Introduce Thing Groups ( #1259 )
...
* add things group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add parents and children methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add parents and children methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix logging message and temporary test fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bootstrap test fail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to internal
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to internal
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix import
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments, add hierarchy info when retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* code refactor, separate http into multiple files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* code refactor, separate http into multiple files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix group update
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use user id when saving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use user id when saving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove temporary test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments, fix responses in api for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add checks for name length
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
small change to response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add comment for Level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level to limit hierarchy retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
tidy vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level to limit hierarchy retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
mod tidy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
revert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
small naming and code organize refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
revert Member type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix typo
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
use ltree
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
use ltree
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level for retrieving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add ltre
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
upgrade postgres version in test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add ltre
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
remove test for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
minor fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix id setting
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix tree endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
minor style changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, adding new lines
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change function signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change primary key
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change function signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplufy code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups test for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tabulation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix whitespace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove white space, fix grammar
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sqls so that not additional retrieve is needed
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sqls so that not additional retrieve is needed
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix primary key
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
remove retrive by name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove name and parent update
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix cound sql
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify sql, fix table name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add date
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add date
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add timestamp to api
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-11-23 11:34:29 +01:00