Skip to content

feat(jans-cedarling): add some logging msgs for jwt service startup #11178

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

Merged
merged 3 commits into from
Apr 26, 2025

Conversation

rmarinn
Copy link
Contributor

@rmarinn rmarinn commented Apr 5, 2025

Prepare


Description

This PR just adds some logging at startup for the JWT validation service setup.

Target issue

closes #11177

Implementation Details

  • Add logging for skipped idps if trusted == false.
  • Add logging for skipped tokens since they're not from trusted idps.
  • Add logging for unsupported algorithms

Test and Document the changes

  • Static code analysis has been run locally and issues have been fixed
  • Relevant unit and integration tests have been added/updated
  • Relevant documentation has been updated if any (i.e. user guides, installation and configuration guides, technical design docs etc)

Please check the below before submitting your PR. The PR will not be merged if there are no commits that start with docs: to indicate documentation changes or if the below checklist is not selected.

  • I confirm that there is no impact on the docs due to the code changes in this PR.

Signed-off-by: rmarinn <34529290+rmarinn@users.noreply.github.com>
@rmarinn rmarinn requested a review from Copilot April 5, 2025 13:45
@rmarinn rmarinn self-assigned this Apr 5, 2025
Copy link
Contributor

@Copilot 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.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

jans-cedarling/cedarling/src/jwt/mod.rs:31

  • [nitpick] The blanket import 'use log::*;' may introduce ambiguity with the custom Logger implementation. Consider removing or refining this import to avoid confusion with other logging modules.
use log::*;

@mo-auto mo-auto added comp-jans-cedarling Touching folder /jans-cedarling kind-feature Issue or PR is a new feature request labels Apr 5, 2025
@rmarinn rmarinn requested review from nynymike and olehbozhok April 5, 2025 13:47
Signed-off-by: rmarinn <34529290+rmarinn@users.noreply.github.com>
@rmarinn rmarinn requested review from SafinWasi and duttarnab April 12, 2025 09:34
@rmarinn rmarinn merged commit c16a80d into main Apr 26, 2025
1 of 2 checks passed
@rmarinn rmarinn deleted the cedarling-improve-jwt-logging branch April 26, 2025 08:30
@mo-auto
Copy link
Member

mo-auto commented Apr 26, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cedarling Touching folder /jans-cedarling kind-feature Issue or PR is a new feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(jans-cedarling): add some logging msgs for jwt service startup
4 participants