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

Write Integration Tests for Security Components #3855

Open
hamidonos opened this issue Feb 5, 2025 · 0 comments
Open

Write Integration Tests for Security Components #3855

hamidonos opened this issue Feb 5, 2025 · 0 comments

Comments

@hamidonos
Copy link
Collaborator

hamidonos commented Feb 5, 2025

Situation

We have extensive security tests at the unit and component integration levels, covering various mocked scenarios.
However, there are no tests to validate the behavior of the latest security implementations against a real server in a fully integrated environment.

Wanted

Write new tests in the integrationtest module covering:

  • OAuth2 Integration (JWT + Opaque)
  • Ideally we can spin up test containers (Keycloak?) covering both use cases
  • Cookie based authentication in general
  • Test that cookie in classic mode works
  • Test that cookie in oauth2 mode works as expected
  • Verify that if both cookies are sent that the OAuth2 cookie has higher priority (the classic auth cookie should be deleted)
  • Verify that the cookie values are encrypted
  • Verify that the cookies expiry accordingly

Solution

  • Expand the existing integration test classes by the desired test cases
  • We should probably expand the GitHub Action pipelines to include multiple parallel jobs that run the SecHub server in different modes (Classic, OAuth, JWT, Opaque, Login, ...)
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

No branches or pull requests

1 participant