mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00

* Return Auth service Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update Compose to run with SpiceDB and Auth svc Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update auth gRPC API Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Remove Users' policies Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Move Groups to internal Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Use shared groups in Users Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Remove unused code Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Use pkg Groups in Things Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Remove Things groups Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Make imports consistent Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update Groups networking Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Remove things groups-specific API Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Move Things Clients to the root Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Move Clients to Users root Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Temporarily remove tracing Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Fix imports Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Add buffer config for gRPC Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update auth type for Things Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Use Auth for login Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Add temporary solution for refresh token Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update Tokenizer interface Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Updade tokens issuing Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Fix token issuing Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update JWT validator and refactor Tokenizer Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Rename access timeout Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Rename login to authenticate Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update Identify to use SubjectID Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Add Auth to Groups Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Use the Auth service for Groups Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update auth schema Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Fix Auth for Groups Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Add auth for addons (#14) Signed-off-by: Arvindh <arvindh91@gmail.com> Speparate Login and Refresh tokens Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Merge authN and authZ requests for things Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Add connect and disconnect Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update sharing Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Fix policies addition and removal Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Update relation with roels Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Add gRPC to Things Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Assign and Unassign members to group and Listing of Group members (#15) * add auth for addons Signed-off-by: Arvindh <arvindh91@gmail.com> * add assign and unassign to group Signed-off-by: Arvindh <arvindh91@gmail.com> * add group incomplete repo implementation Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Move coap mqtt and ws policies to spicedb (#16) Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Remove old policies Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> NOISSUE - Things authorize to return thingID (#18) This commit modifies the authorize endpoint to the grpc endpoint to return thingID. The authorize endpoint allows adapters to get the publisher of the message. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Add Groups to users service (#17) * add assign and unassign to group Signed-off-by: Arvindh <arvindh91@gmail.com> * add group incomplete repo implementation Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users stable 1 Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users stable 2 Signed-off-by: Arvindh <arvindh91@gmail.com> * groups for users & things Signed-off-by: Arvindh <arvindh91@gmail.com> * Amend signature Signed-off-by: Arvindh <arvindh91@gmail.com> * fix merge error Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Fix es code (#21) Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Fix Bugs (#20) * fix bugs Signed-off-by: Arvindh <arvindh91@gmail.com> * fix bugs Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Test e2e (#19) * fix: connect method Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * fix: e2e Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * fix changes in sdk and e2e Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(docker): remove unnecessary port mapping Remove the port mapping for MQTT broker in the docker-compose.yml file. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * Enable group listing Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(responses): update ChannelsPage struct The ChannelsPage struct in the responses.go file has been updated. The "Channels" field has been renamed to "Groups" to provide more accurate naming. This change ensures consistency and clarity in the codebase. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(things): add UpdateClientSecret method Add the UpdateClientSecret method to the things service. This method allows updating the client secret for a specific client identified by the provided token, id, and key parameters. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Use smaller buffers for gRPC Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Clean up tests (#22) Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Add Connect Disconnect endpoints (#23) * fix bugs Signed-off-by: Arvindh <arvindh91@gmail.com> * fix bugs Signed-off-by: Arvindh <arvindh91@gmail.com> * fix list of things in a channel and Add connect disconnect endpoint Signed-off-by: Arvindh <arvindh91@gmail.com> * fix list of things in a channel and Add connect disconnect endpoint Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Add: Things share with users (#25) * fix list of things in a channel and Add connect disconnect endpoint Signed-off-by: Arvindh <arvindh91@gmail.com> * add: things share with other users Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Rename gRPC Services (#24) * Rename things and users auth service Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * docs: add authorization docs for gRPC services Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * Rename things and users grpc services Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * Remove mainflux.env package Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Add: Listing of things, channels, groups, users (#26) * add: listing of channels, users, groups, things Signed-off-by: Arvindh <arvindh91@gmail.com> * add: listing of channels, users, groups, things Signed-off-by: Arvindh <arvindh91@gmail.com> * add: listing of channels, users, groups, things Signed-off-by: Arvindh <arvindh91@gmail.com> * add: listing of channels, users, groups, things Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Clean Up Users (#27) * feat(groups): rename redis package to events - Renamed the `redis` package to `events` in the `internal/groups` directory. - Updated the file paths and names accordingly. - This change reflects the more accurate purpose of the package and improves code organization. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(auth): Modify identity method Change request and response of identity method Add accessToken and refreshToken to Token response Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * clean up users, remove dead code Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(users): add unit tests for user service This commit adds unit tests for the user service in the `users` package. The tests cover various scenarios and ensure the correct behavior of the service. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Add: List of user groups & removed repeating code in groups (#29) * removed repeating code in list groups Signed-off-by: Arvindh <arvindh91@gmail.com> * add: list of user group Signed-off-by: Arvindh <arvindh91@gmail.com> * fix: otel handler operator name for endpoints Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Clean Up Things Service (#28) * Rework things service Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * add tests Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Clean Up Auth Service (#30) * clean up auth service Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(auth): remove unused import Remove the unused import of `emptypb` in `auth.pb.go`. This import is not being used in the codebase and can be safely removed. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * NOISSUE - Update API docs (#31) Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Remove TODO comments and cleanup the code Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Update dependenices Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Co-authored-by: b1ackd0t <28790446+rodneyosodo@users.noreply.github.com> Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com>
20 KiB
20 KiB
Changelog
v1.8.1 (2023-05-04)
Fixed bugs:
- Fixed incorrect version reported in client properties 52ce2efd03c53dcf77d5496977da46840e9abd24
Merged pull requests:
v1.8.0 (2023-03-21)
Closed issues:
Merged pull requests:
- Fix race condition on confirms #183 (calloway-jacob)
- Add a CloseDeadline function to Connection #181 (Zerpet)
- Fix memory leaks #180 (GXKe)
- Bump go.uber.org/goleak from 1.2.0 to 1.2.1 #177 (dependabot[bot])
v1.7.0 (2023-02-09)
Closed issues:
Merged pull requests:
- Set channels and allocator to nil in shutdown #172 (lukebakken)
- Fix racing in Open #171 (Zerpet)
- adding go 1.20 to tests #169 (halilylm)
- Deprecate the QueueInspect function #168 (lukebakken)
- Check if channel is nil before updating it #150 (julienschmidt)
v1.6.1 (2023-02-01)
Merged pull requests:
v1.6.1-rc.2 (2023-01-31)
Merged pull requests:
- Do not overly protect writes #162 (lukebakken)
v1.6.1-rc.1 (2023-01-31)
Closed issues:
- Calling Channel() on an empty connection panics #148
Merged pull requests:
- Ensure flush happens and correctly lock connection for a series of unflushed writes #161 (lukebakken)
v1.6.0 (2023-01-20)
Implemented enhancements:
Closed issues:
- README not up to date #154
- Allow re-using default connection config
custom properties
#152 - Rename package name to amqp in V2 #151
- Helper types to declare quorum queues #144
- Inefficient use of buffers reduces potential throughput for basicPublish with small messages. #141
- bug, close cause panic #130
- Publishing Headers are unable to store Table with slice values #125
- Example client can deadlock in Close due to unconsumed confirmations #122
- SAC not working properly #106
Merged pull requests:
- Add automatic CHANGELOG.md generation #158 (lukebakken)
- Supply library-defined props with NewConnectionProperties #157 (slagiewka)
- Fix linter warnings #156 (Zerpet)
- Remove outdated information from README #155 (scriptcoded)
- Add example producer using DeferredConfirm #149 (Zerpet)
- Ensure code is formatted #147 (lukebakken)
- Fix inefficient use of buffers that reduces the potential throughput of basicPublish #142 (fadams)
- Do not embed context in DeferredConfirmation #140 (tie)
- Add constant for default exchange #139 (marlongerson)
- Fix indentation and remove unnecessary instructions #138 (alraujo)
- Remove unnecessary instruction #135 (alraujo)
- Fix example client to avoid deadlock in Close #123 (Zerpet)
- Bump go.uber.org/goleak from 1.1.12 to 1.2.0 #116 (dependabot[bot])
v1.5.0 (2022-09-07)
Implemented enhancements:
- Provide a friendly way to set connection name #105
Closed issues:
- Support connection.update-secret #107
- Example Client: Implementation of a Consumer with reconnection support #40
Merged pull requests:
- use PublishWithContext instead of Publish #115 (Gsantomaggio)
- Add support for connection.update-secret #114 (Zerpet)
- Remove warning on RabbitMQ tutorials in go #113 (ChunyiLyu)
- Update AMQP Spec #110 (Zerpet)
- Add an example of reliable consumer #109 (Zerpet)
- Add convenience function to set connection name #108 (Zerpet)
v1.4.0 (2022-07-19)
Closed issues:
- target machine actively refused connection #99
- 504 channel/connection is not open error occurred in multiple connection with same rabbitmq service #97
- Add possible cancel of DeferredConfirmation #92
- Documentation #89
- Channel Close gets stuck after closing a connection
via management UI
#88 - this library has same issue #83
- Provide a logging interface #81
- 1.4.0 release checklist #77
- Data race in the client example #72
- reader go routine hangs and leaks when Connection.Close() is called multiple times #69
- Support auto-reconnect and cluster #65
- Connection/Channel Deadlock #32
- Closing connection and/or channel hangs NotifyPublish is used #21
- Consumer channel isn't closed in the event of unexpected disconnection #18
Merged pull requests:
- fix race condition with context close and confirm at the same time on DeferredConfirmation. #101 (sapk)
- Add build TLS config from URI #98 (reddec)
- Use context for Publish methods #96 (sapk)
- Added function to get the remote peer's IP address (conn.RemoteAddr()) #95 (rabb1t)
- Update connection documentation #90 (Zerpet)
- Revert test to demonstrate actual bug #87 (lukebakken)
- Minor improvements to examples #86 (lukebakken)
- Do not skip flaky test in CI #85 (lukebakken)
- Add logging #84 (lukebakken)
- Add a win32 build #82 (lukebakken)
- channel: return nothing instead of always a nil-error in receive methods #80 (fho)
- update the contributing & readme files, improve makefile #79 (fho)
- Fix lint errors #78 (lukebakken)
- ci: run golangci-lint #76 (fho)
- ci: run test via make & remove travis CI config #75 (fho)
- ci: run tests with race detector #74 (fho)
- Detect go routine leaks in integration testcases #73 (fho)
- connection: fix: reader go-routine is leaked on connection close #70 (fho)
- adding best practises for NotifyPublish for issue_21 scenario #68 (DanielePalaia)
- Update Go version #67 (Zerpet)
- Regenerate certs with SHA256 to fix test with Go 1.18+ #66 (anthonyfok)
v1.3.4 (2022-04-01)
Merged pull requests:
- bump version to 1.3.4 #63 (DanielePalaia)
- updating doc #62 (DanielePalaia)
v1.3.3 (2022-04-01)
Closed issues:
Merged pull requests:
- bump buildVersion for release #61 (DanielePalaia)
- adding documentation for notifyClose best pratices #60 (DanielePalaia)
- adding documentation on NotifyClose of connection and channel to enfo… #59 (DanielePalaia)
v1.3.2 (2022-03-28)
Closed issues:
- Potential race condition in Connection module #31
Merged pull requests:
- bump versioning to 1.3.2 #58 (DanielePalaia)
v1.3.1 (2022-03-25)
Closed issues:
- Possible deadlock on DeferredConfirmation.Wait() #46
- Call to Delivery.Ack blocks indefinitely in case of disconnection #19
- Unexpacted behavor of channel.IsClosed() #14
- A possible dead lock in connection close notification Go channel #11
Merged pull requests:
- These ones were the ones testing Open scenarios. The issue is that Op… #57 (DanielePalaia)
- changing defaultVersion to buildVersion and create a simple change_ve… #54 (DanielePalaia)
- adding integration test for issue 11 #50 (DanielePalaia)
- Remove the old link product #48 (Gsantomaggio)
- Fix deadlock on DeferredConfirmations #47 (SpencerTorres)
- Example client: Rename Stream() to Consume() to avoid confusion with RabbitMQ streams #39 (andygrunwald)
- Example client: Rename
name
toqueueName
to make the usage clear and explicit #38 (andygrunwald) - Client example: Renamed concept "Session" to "Client" #37 (andygrunwald)
- delete unuseful code #36 (liutaot)
- Client Example: Fix closing order #35 (andygrunwald)
- Client example: Use instance logger instead of global logger #34 (andygrunwald)
v1.3.0 (2022-01-13)
Closed issues:
Merged pull requests:
- Expose a method to enable out-of-order Publisher Confirms #33 (benmoss)
- Fix Signed 8-bit headers being treated as unsigned #26 (alex-goodisman)
v1.2.0 (2021-11-17)
Closed issues:
- No access to this vhost #24
- copyright issue? #12
- A possible dead lock when publishing message with confirmation #10
- Semver release #7
Merged pull requests:
- Fix deadlock between publishing and receiving confirms #25 (benmoss)
- Add GetNextPublishSeqNo for channel in confirm mode #23 (kamal-github)
- Added support for cert-only login without user and password #20 (mihaitodor)
v1.1.0 (2021-09-21)
Closed issues:
- AMQPLAIN authentication does not work #15
Merged pull requests:
- Fix AMQPLAIN authentication mechanism #16 (hodbn)
- connection: clarify documented behavior of NotifyClose #13 (pabigot)
- Add a link to pkg.go.dev API docs #9 (benmoss)
- add test go version 1.16.x and 1.17.x #8 (k4n4ry)
- fix typos #6 (h44z)
- Heartbeat interval should be timeout/2 #5 (ifo20)
- Exporting Channel State #4 (eibrunorodrigues)
- Add codeql analysis #3 (MirahImage)
- Add PR github action. #2 (MirahImage)
- Update Copyright Statement #1 (rlewis24)
* This Changelog was automatically generated by github_changelog_generator