Skip to content

Releases: matthewhartstonge/storage

v0.34.0

21 Feb 23:38
e2f3fb2
Compare
Choose a tag to compare

v0.34.0 - 2024-02-22

Added

  • user: adds support for regions.

Changed

  • deps: updates to github.com/google/uuid@v1.6.0.
  • deps: updates to github.com/stretchr/testify@v1.8.2.
  • deps: updates to go.mongodb.org/mongo-driver@v1.13.2.
  • ci: added testing against go@1.22.
  • ci: added testing against mongo@7.0.
  • ci: removed testing against go@1.13.

Full Changelog: v0.33.0...v0.34.0

v0.33.0

25 Aug 00:47
1c7db6a
Compare
Choose a tag to compare

v0.33.0 - 2023-08-25

Fixed

  • user: aligns bson, json and xml marshalling to the name of the mfaFactors property.

v0.32.0

18 Jul 04:42
dc6b990
Compare
Choose a tag to compare

v0.32.0 - 2023-07-18

Added

  • user: Adds support for MFA factors.

Changed

  • deps: updates to github.com/opentracing/opentracing-go@v1.2.0.
  • deps: updates to github.com/sirupsen/logrus@v1.9.3.
  • deps: updates to go.mongodb.org/mongo-driver@v1.12.0.
  • deps: updates examples/mongo to github.com/sirupsen/logrus@v1.9.3.
  • deps: updates examples/mongo to golang.org/x/net@v0.12.0.
  • deps: updates examples/mongo to golang.org/x/oauth2@v0.10.0.

v0.31.0

09 Jan 11:43
7e9c30f
Compare
Choose a tag to compare

🚢 v0.31.0 - 2023-01-10

Changed

  • deps: updates to github.com/google/uuid@v1.3.0.
  • deps: updates to github.com/sirupsen/logrus@v1.8.1.
  • deps: updates to github.com/stretchr/testify@v1.7.0.
  • deps: updates to go.mongodb.org/mongo-driver@v1.11.1.
  • deps: updates examples/mongo to github.com/sirupsen/logrus@v1.8.1.
  • deps: updates examples/mongo to golang.org/x/net@v0.0.0-20220926192436-02166a98028e.
  • deps: updates examples/mongo to golang.org/x/oauth2@v0.0.0-20220909003341-f21342109be1.
  • deps: updates examples/mongo to go.mongodb.org/mongo-driver@v1.11.1.
  • examples/mongo/authorizationserver: migrates deprecated use of Exact() to ExactOne().
  • storage: gofmts the project with go@1.19.

Fixed

  • examples/mongo/authorizationserver: sets session subject and username. fixes #65.
  • examples/mongo/authorizationserver: properly logs out the generated user id.
  • mongo/mongo: reduces read errors occurring in a mongo replica set. fixes #68. Thanks to @qkrgksqkr for the original reports, debugging and solution!

Changes: v0.30.1...v0.31.0

v0.30.1

08 Aug 03:19
fe22a27
Compare
Choose a tag to compare
v0.30.1 Pre-release
Pre-release

🚢 v0.30.1 - 2022-08-08

Added

  • user_manager: adds support for filtering users given a list of people ids.
  • mongo/user_manager: adds support for filtering users given a list of people ids.

Changed

  • examples/mongo: upgrades to fosite@v0.33.0.

Changes: v0.30.0...v0.30.1

v0.30.0

08 Aug 03:17
fc8bd03
Compare
Choose a tag to compare
v0.30.0 Pre-release
Pre-release

🚢 v0.30.0 - 2022-07-28

Changed

  • deps: upgrades to fosite@v0.33.0.

Changes: v0.29.0...v0.30.0

v0.29.0

08 Aug 03:14
3b7a4ad
Compare
Choose a tag to compare
v0.29.0 Pre-release
Pre-release

🚢 v0.29.0 - 2022-07-28

Breaking Change:
If you are running on Mongo<4.0, please update as the indices will now build in the foreground. Mongo>4.0 has changed to a new indexing engine and this option is now deprecated.

Removed

  • mongo: deprecates SetBackground due to MongoDB 4.0 EOL.

Changes: v0.28.0...v0.29.0

v0.28.0

18 Oct 02:02
4a142a2
Compare
Choose a tag to compare
v0.28.0 Pre-release
Pre-release

🚢 v0.28.0 - 2021-10-18

Added

  • mongo: adds support for mongodb+srv connection strings.
  • mongo: binds in a default TLS Config if ssl=true and a TLS config has not been provided.
  • storage: adds Expirer interface to enable stores to add support for configuring record expiration.
  • mongo: implements storage.Expirer interface to enable TTL based expiry on tokens.

Changed

  • mongo: migrated internal use of isDup(err) to mongo.IsDuplicateKeyError(err).

Removed

  • mongo: removed internal isDup(err) function.

Changes: v0.27.0...v0.28.0

v0.27.0

24 Sep 04:15
2b859b6
Compare
Choose a tag to compare
v0.27.0 Pre-release
Pre-release

v0.27.0 - 2021-09-24

This release will add a new hashed index on signature for the accessTokens collection. This makes the old accessTokens.idxSignatureId index redundant and can be removed.

Added

  • mongo: migrates to using a hashed index for the signature index on access tokens.
    • The signature for an access token could grow quite large, leading to a large index. By migrating to using a hashed index, the size can be reduced to 2% of the original indices size. In our testing we went from 2.8GB -> 57MB.

Fixed

  • examples/mongo/authorizationserver: removes mongo-features example.

Changes: v0.26.0...v0.27.0

v0.26.0

05 Aug 03:00
be57688
Compare
Choose a tag to compare
v0.26.0 Pre-release
Pre-release

v0.26.0 - 2021-08-05

Added

  • utils: adds functions to help with adding and removing items from string sets.
  • user: adds test cases for enabling and disabling person access.
  • user: adds tests for user.FullName().
  • user: adds test cases to check create time and update time equality.
  • user: adds test cases to check equality of allowed person ids, person id and extra fields in user record.
  • user: adds support for storing user roles.
  • storage: adds a benchmark for user.Equal().

Changed

  • user: refactors enable and disable functions to use util append/remove functions.
  • examples/mongo: updates go.mod to go@v1.14 and tidies go.sum.

Fixed

  • mongo: SetClientAssertionJWT now logs unknown errors if deleting expired JTIs fails.
  • mongo: fixes do not pass a nil Context (staticcheck)
  • user: fixes whitespace issues when returning a user's full name.

Removed

  • deps: removed support for dep.

Changes: v0.25.1...v0.26.0