Skip to content

Fix issue with outdated dependency that might create excessive memory allocation#209

Merged
gab-arrobo merged 2 commits intoomec-project:mainfrom
gab-arrobo:fix-excessive-memory-allocation
May 12, 2025
Merged

Fix issue with outdated dependency that might create excessive memory allocation#209
gab-arrobo merged 2 commits intoomec-project:mainfrom
gab-arrobo:fix-excessive-memory-allocation

Conversation

@gab-arrobo
Copy link
Copy Markdown
Contributor

Additionally create a minor release

…cation

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo gab-arrobo requested a review from Copilot May 12, 2025 16:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses an outdated dependency that was causing excessive memory allocation by upgrading the JWT library and modifying the claims structure accordingly. The changes include updating the import from jwt v4 to jwt v5 and replacing StandardClaims with RegisteredClaims in the access token claims.

  • Upgrade dependency for improved memory handling.
  • Update claims structure to align with the jwt/v5 expectations.
Files not reviewed (2)
  • VERSION: Language not supported
  • go.mod: Language not supported
Comments suppressed due to low confidence (1)

producer/access_token.go:54

  • Ensure that switching from StandardClaims to RegisteredClaims is fully compatible with the expected JWT claims handling in the rest of the system, as jwt/v5 may introduce differences in behavior.
RegisteredClaims: jwt.RegisteredClaims{},

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo gab-arrobo changed the title Fix issue with outdated dependency that creates excessive memory allocattion Fix issue with outdated dependency that might create excessive memory allocation May 12, 2025
@gab-arrobo gab-arrobo merged commit 76dcb55 into omec-project:main May 12, 2025
9 checks passed
@gab-arrobo gab-arrobo deleted the fix-excessive-memory-allocation branch May 12, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants