Washington Kigani Kamadi
e2992cbede
NOISSUE - Change import name aliases ( #1868 )
...
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Change import aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Fix aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Fix error
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix import alias
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix import
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Add linter to CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix merge issues
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Add gofumpt
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove multiple gofupmt in CI
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unnecessary changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
---------
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
2023-08-11 11:30:25 +02:00
Dušan Borovčanin
55e09c1921
MF-1506 - Group-based Access Control ( #1716 )
...
* Move Things and Users to Clients
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Update Add and Delete Policies (#1792 )
* Remove Policy Action Ranks
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Rebase Issues
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix CI Test Errors
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Adding Check on Subject For Clients
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove Check Client Exists
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Check When Sharing Clients
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Only Add User to Group When Sharing Things
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove clientType
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Minor Fix on ShareClient and Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Policies Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Clean Up Things Authorization
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests on RetrieveAll
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Test ShareThing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Merge Conflicts
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove Adding Policies. Only Use Ownership
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Check If Subject is same as Object
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Move Back To Union As Sometimes Policy is Empty and Fails to Evaluate on Ownership
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Entity Type For Failing Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix BUG in policy evaluation
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Comments Regarding checkAdmin
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests On Rebase
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Combine Authorize For Things and Users
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests On Rebase
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Error on Things SVC `unsupported protocol scheme`
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Bug on Things Authorization Cache (#1810 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use Password instead of username in MQTT handler
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Simplify MQTT authorization
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix MQTT tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add More Functions to SDK (#1811 )
* Add More Functions to SDK
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Examples to GoDoc
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Update Unassign Interface
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Pass Subject as ID and Not Token on List Channels By Thing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Bootstrap Errors For Element Check
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add empty line Before Return
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Reorder URLS in things mux
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Listing Things Policies
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Share Thing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Examples to CLI Docs
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Update Identity To Update Another User
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Identify an Update Policies on Things
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Update Things Policies
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix GoDocs on Disconnect
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Change Authorize To Use AccessRequest
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* For Evaluate Policy Use AccessRequest (#1814 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add SDK Tests (#1812 )
* Add Things Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Channel Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Certs Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Consumer Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Enrich Group Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests For Health
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests For Tokens
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename SDK for Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Policies Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Linter
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Make Variable Defination Inline
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Make Cache Key Duration Configurable (#1815 )
* Make Cache Key Duration Configurable
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename ENV Var
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Update GoDocs (#1816 )
* Add GoDocs
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Missing GoDoc Files
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Enable godot
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add License Information
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add Call Home Client to Mainflux services (#1751 )
* Move Things and Users to Clients
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
* collect and send data package
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create telemetry migrations
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add telemetry endpoints
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add transport
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove homing server
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home to adapters
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add last seen
Signed-off-by: SammyOina <sammyoina@gmail.com>
* rename logger
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove homing client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use unmerged repo
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use renamed module
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* edit documentation
Signed-off-by: SammyOina <sammyoina@gmail.com>
* align table
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use alias for call home client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update callhome
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home pkg
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix modules
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mf build version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mf build version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore default
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home for users and things
Signed-off-by: SammyOina <sammyoina@gmail.com>
* enable opting on call home
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove full stops
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update callhome client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home to all services
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore sdk tests
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove unnecessary changes
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore health_test.go
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Co-authored-by: Sammy Kerata Oina <44265300+SammyOina@users.noreply.github.com>
2023-06-14 12:40:37 +02:00
Dušan Borovčanin
c0c72491ff
NOISSUE - Logger Fatal method returns no value ( #1728 )
...
* Make Fatal return no value
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Fatal test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename logger imports
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace Fatal with Fatalf
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor Logger tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix expected and actual order inversion
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2023-02-22 20:50:51 +01:00
Nick Neisen
66487eda42
MF-788 - Remove date and minimize copyright comments ( #876 )
...
* Update copyright comment for go files
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Update copyright in assortment of file types
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Remove missed copyright date
Signed-off-by: nwneisen <nwneisen@gmail.com>
2019-10-07 16:14:47 +02:00
Michael Finley
6600d26ef1
MF-379 - Log Level Option ( #402 )
...
* Adding an option to select log level
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* making error default log level
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* removing go-kit/levels and expanding levels wrapper
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* refactoring test cases and using log.fatal
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* logger.new no longer accpets enum and now accepts string for level
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* level_test.go refactor to compare error
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* Updating the ws README
Signed-off-by: Michael Finley <Michael.Finley@target.com>
* Adding log level for mqtt Adapter
Signed-off-by: Michael Finley <Michael.Finley@target.com>
2018-09-26 18:58:51 +02:00
Ivan Milošević
effade00aa
MF-325 - Add SPDX license and copyright headers ( #362 )
...
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Change mainflux version from 0.4.0 to 0.5.0
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2018-08-26 13:15:48 +02:00
Aleksandar Novaković
88b30626dd
MF-174 - Add logger interface and go-kit logger implementation ( #212 )
...
* Add logger interface and go-kit logger implementation
Add wrapper logger interface and wrap go-kit logger in it. Add
tests for info, warn, error and log methods. Add log filtering by
level.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Refactor logger and replace go-kit logger with wrapper
Replace go-kit logger from services with logger wrapper. Refactor
code in logger wrapper. Remove unnecessary subpackage, methods and
log levels.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2018-04-04 10:15:23 +02:00