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
__touk__
f8ce94e9bb
NOISSUE - Refactor MQTT subscriber ( #1561 )
...
* correct suscriber interface validator + refactore token error handling
Signed-off-by: tzzed <zerouali.t@gmail.com>
* apply review suggestion
Signed-off-by: tzzed <zerouali.t@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-02-09 10:19:09 +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
9e0947a355
MF-1261 - Use StatusUnauthorized for authn and StatusForbidden for authz ( #1538 )
...
* MF-1261 - Use StatusUnauthorized for authn and StatusForbidden for authz
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* ErrExternalKey typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename ErrUnauthorizedAcces -> ErrAuthentication
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix bootstrap error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix status code in openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add errors cases
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix status codes
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add gRPC stutus code
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tests description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi and encodeError
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix grpc message
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test descriptions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert sdk error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-02-01 17:33:23 +01:00
Manuel Imperiale
e8a51842aa
NOISSUE - Fix auth members list response ( #1555 )
...
* NOISSUE - Fix auth members list response
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Move group type next to page details
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm membersRes
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-01-27 18:39:35 +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
81b2a1a2d3
Fix SDK for group members ( #1553 )
...
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
2022-01-27 11:08:27 +01:00
Ivan Milošević
89061d33e5
NOISSUE - Fix Swagger UI ( #1552 )
...
* test github action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* separate openapi and asyncapi
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove openapi from old location
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change cname for production use
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2022-01-26 10:33:08 +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
Dušan Borovčanin
bcc8cf7119
Fix user listing access control ( #1546 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-01-19 16:46:10 +01:00
Dušan Borovčanin
d86a4dee92
Update dependencies ( #1545 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-01-18 15:28:46 +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
bea09d97dd
MF-1149 - Add AsyncAPI MQTT API doc ( #1539 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-01-14 23:53:35 +01:00
Filip Bugarski
6483969927
MF-1535 - Add API keys functions to SDK ( #1536 )
...
* Add API keys to sdk.
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Add issue key
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix typo
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix comments
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Remove unused code
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix typo
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
2022-01-12 13:24:51 +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
Filip Bugarski
dd7d52ef10
MF-1516 - Fix API key issuing ( #1530 )
...
* Fix API keys saving
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix API key creation
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix tests
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Delete empty lines
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Remove empty lines
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Fix typo
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Change user key to login key
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
2021-12-24 14:53:06 +01:00
Manuel Imperiale
ad8b7ddf5a
NOISSUE - Add disconnect endpoint in nginx conf ( #1528 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-12-15 13:20:56 +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
qs-wang
7e9ab453d4
MF-1425 - Support external UUIDs for Things and Channels ( #1518 )
...
* MF-1425 - Rebase mainflux master to resolve conflicts
MF-1425 Enhancement to supply an external UUID for Things and Channels.
Resolve conflicts.
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
* MF-1425 - Test cases changes for SDK
MF-1425 Enhancement to supply an external UUID for Things and Channels.
These are the new testcases added for
- Things Service Testcases
- SDK Things and Channel Testcases
Signed-off-by: Anand Sivaram Palassery <aspnair@gmail.com>
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
* MF-1425 - Fixing Testcases
MF-1425 Enhancement to supply an external UUID for Things and Channels.
Because of the previous commits, the testcases were getting failed
because the way ID was modified. This change is to make sure that
all testcases are revisited to get them fixed.
Signed-off-by: Anand Sivaram Palassery <aspnair@gmail.com>
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
* MF-1425 - Fixing review comments
Fixing the review comments provided.
Signed-off-by: Anand Sivaram Palassery <aspnair@gmail.com>
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
* MF-1425 - Fixing more review comments
Signed-off-by: Anand Sivaram Palassery <aspnair@gmail.com>
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
* MF-1425 - Fixing conflicts
MF-1425 Enhancement to supply an external UUID for Things and Channels.
Fixing the conflicts between aspnair master, and the mainflux master.
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
* MF-1425 Fix the comment and code format per review comments
MF-1425 Enhancement to supply an external UUID for Things and Channels.
1. Remove un-valued comment for a private function
2. Format the code for better readibility
Signed-off-by: Q.S. Wang <wangqs_eclipse@yahoo.com>
* MF-1425 Enhancement to supply an external UUID for Things and Channels.
Fix the format of the API document
Signed-off-by: Q.S. Wang <wangqs_eclipse@yahoo.com>
* MF-1425 Enhancement to supply an external UUID for Things and Channels.
Rename the variable to make it readible.
Signed-off-by: Q.s <wangqs_eclipse@yahoo.com>
Co-authored-by: Anand Sivaram Palassery <aspnair@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2021-12-08 12:46:59 +01:00
Ivan Milošević
309ef512cb
MF-1521 - Fix email headers ( #1522 )
...
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-12-08 10:48:05 +01:00
Dušan Borovčanin
db6fab961e
Fix SenML lib dependency version ( #1519 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2021-12-06 19:03:09 +01:00
Ivan Milošević
f99f5d228d
Bump vernemq to 1.12.3 ( #1520 )
...
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-12-06 16:13:34 +01:00
Filip Bugarski
5112ef681a
NOISSUE - Remove auth URL from SDK ( #1511 )
...
* Remove auth URL from SDK
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Update CLi/main.go authURL to GroupsURL
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Add authURL back
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Refactor group structures
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Add AuthURL back to cli/main.go
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
2021-12-02 13:50:39 +01:00
Burak Sekili
31d30b204d
NOISSUE - Apply policies to Channels ( #1505 )
...
* Add policies for channels
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update single channel retrieval
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update indentation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
update indentation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-26 14:12:08 +01:00
Burak Sekili
be3e98f677
remove dead code ( #1503 )
...
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-24 16:55:29 +01:00
Burak Sekili
87510288c2
NOISSUE - Fix listing ( #1502 )
...
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-19 17:25:48 +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
Dušan Borovčanin
39133b06a4
Fix standalone mode ( #1497 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2021-11-16 13:02:31 +01:00
Burak Sekili
3042d6b40b
MF-1489 - Add API for deleting policies ( #1491 )
...
* MF-1489 - Add API for deleting policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update request and decoder naming
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update swagger doc summary for the endpoint
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2021-11-08 14:45:38 +01:00
Burak Sekili
c70fb576b6
NOISSUE - Update group sharing policies ( #1494 )
...
* Update group sharing policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Replace string with constant
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2021-11-08 12:55:18 +01:00
__touk__
9f5a319519
NOISSUE - Refactor InfluxDB Reader: explicit check event + add safe conversion ( #1460 )
...
* refactore(reader/influxdb): explicit check event + add safe conversion
Signed-off-by: tzzed <zerouali.t@gmail.com>
* apply review suggestion
Signed-off-by: tzzed <zerouali.t@gmail.com>
* Delete useless space.
Signed-off-by: tzzed <zerouali.t@gmail.com>
* apply review suggestion
Signed-off-by: tzzed <zerouali.t@gmail.com>
* apply review suggestion, replace require.NoError(t, err) by assert.Nil
Signed-off-by: tzzed <zerouali.t@gmail.com>
* Fix tests when message time is randomly equal to 0 in tests cases.
Signed-off-by: tzzed <zerouali.t@gmail.com>
* apply review suggestion use constant
Signed-off-by: tzzed <zerouali.t@gmail.com>
* use const offset
Signed-off-by: tzzed <zerouali.t@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2021-11-08 12:26:11 +01:00
Burak Sekili
b570c38ed0
NOISSUE - Update users create command for CLI ( #1495 )
...
* NOISSUE - Update users create command for CLI
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update if check
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-08 11:40:27 +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
Drasko DRASKOVIC
90e4561491
Bring back the job add
2021-11-01 00:48:57 +01:00
Burak Sekili
30912e5a45
NOISSUE - Fix assigning invalid group policy ( #1487 )
...
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-10-28 13:10:03 +02: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
Burak Sekili
042ff98509
NOISSUE - Fix retrieving all users ( #1477 )
...
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-10-18 17:00:15 +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
Dušan Borovčanin
94cba4aab2
Fix UpdateChannelHandler for Redis producer ( #1473 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-10-11 15:36:35 +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
Dušan Borovčanin
f4312aef8a
NOISSUE - Update dependencies ( #1453 )
...
* Fix Dockerfile base Go version
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Go version and dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-08-24 13:41:57 +02:00
Dušan Borovčanin
caa4bda1a1
NOISSUE - Fix security warnings for dependencies ( #1452 )
...
* Fix security warnings for dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Omit `.mod` and `.sum` files in dependencies
This feature is introduced here: https://tip.golang.org/doc/go1.17#vendor .
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-08-23 15:26:35 +02:00
Drasko DRASKOVIC
e1a66b3268
Bump docker-compose version in prereq ( #1449 )
...
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
2021-08-13 18:30:14 +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
d6a3830ef4
MF-1439 - Add support for Basic Authentication in HTTP Adapter ( #1441 )
...
* Add support for basic auth for HTTP adapter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix API docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Inline BasicAuth check
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-07-22 15:47:55 +02:00
Burak Sekili
5ac1203b55
MF-1421 - Make flattening of JSON transformer only available on InfluxDB ( #1432 )
...
* MF-1421 - Add a flag for making flattening JSON transformer optional
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add test cases for JSON transformer without flattening
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add a comment for Transform
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Separate TestTransformJSON into two tests
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Replace flatten flag
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Remove unnecessary flattening while reading a message
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-07-22 11:20:47 +02:00