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

Validate AuthEncryptionKey length #432

Commits on Oct 3, 2024

  1. Validate AuthEncryptionKey length

    If a user provides a AuthEncryptionKey less than 32 characters, the Heat service
    will fail to start and pods will CrashLoopBackOff. This change validates the
    length of the provided value to ensure we can return an error early rather
    than waiting until the service is trying to initialize.
    
    Jira: https://issues.redhat.com/browse/OSPRH-10507
    Signed-off-by: Brendan Shephard <bshephar@redhat.com>
    bshephar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    94adba1 View commit details
    Browse the repository at this point in the history
  2. Adjust tests for HeatAuthEncryptionKey length

    This change adjusts the tests for the HeatAuthEncryptionKey length
    validation. It also changes the name of the Key in the map to reflect documented
    recommendations.
    
    Jira: https://issues.redhat.com/browse/OSPRH-10508
    Signed-off-by: Brendan Shephard <bshephar@redhat.com>
    bshephar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    df97dc5 View commit details
    Browse the repository at this point in the history
  3. Add test for invalid AuthEncryptionKey length

    Jira: https://issues.redhat.com/browse/OSPRH-10509
    Signed-off-by: Brendan Shephard <bshephar@redhat.com>
    bshephar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    e48838a View commit details
    Browse the repository at this point in the history