Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message for SCS and Enterprise Secret (AST-73370) #1007

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

arturfalcao
Copy link
Collaborator

Description
This PR addresses the issue of handling feature flags and allowed engines in the JWTMockWrapper and JWTStruct implementations. It includes the following changes:
Added a new mock for GetAllowedEngines to work with different engines set in tests.

Updated the GetAllowedEngines method in JWTStruct to handle feature flags and return the correct allowed engines.
Added unit tests to validate the behavior of the new mock and the updated GetAllowedEngines method.

References
Include supporting link to GitHub Issue/PR number

Testing
This change was tested by adding unit tests for the GetAllowedEngines method and the new mock implementation. The tests cover various scenarios to ensure the correct engines are returned based on the feature flags and JWT token data. All existing tests were run to ensure no regressions were introduced.

@github-actions github-actions bot added the bug Something isn't working label Jan 14, 2025
@arturfalcao arturfalcao self-assigned this Jan 14, 2025
Copy link

github-actions bot commented Jan 14, 2025

Logo
Checkmarx One – Scan Summary & Detailsa7a57b23-f3d6-469b-9756-2a0d000e94f5

Great job, no security vulnerabilities found in this Pull Request

AlvoBen
AlvoBen previously approved these changes Jan 16, 2025
internal/wrappers/mock/jwt-helper-mock.go Show resolved Hide resolved
@arturfalcao arturfalcao enabled auto-merge January 16, 2025 10:32
greensd4
greensd4 previously approved these changes Jan 21, 2025
@arturfalcao arturfalcao dismissed stale reviews from greensd4 and AlvoBen via d40a152 January 22, 2025 11:00
greensd4
greensd4 previously approved these changes Jan 22, 2025
@AlvoBen AlvoBen disabled auto-merge January 23, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants