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

Raise an error during SAML init if decryption fails #3021

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

arbulu89
Copy link
Contributor

Description

There is one scenario (at least) that if the decryption of the encrypted entries in the DB fails, the SAML initialization might fail. The encryption is based on the SECRET_KEY_BASE value, so if this value is changed during different bootups, the decryption will start failing.

This can happen for example if helm chart installation is used, and you install trento server, uninstall and install back again (without wiping out the pvc containing the DB), the secret key base is auto generated again, so this fails.

This patch simply aims to help improving the user message received if this "corner case" happens.

How was this tested?

Manually, it is really difficult to add automated tests for this.

@arbulu89 arbulu89 added the enhancement New feature or request label Sep 25, 2024
@arbulu89 arbulu89 requested a review from CDimonaco September 25, 2024 14:55
@arbulu89 arbulu89 merged commit 4770259 into main Oct 2, 2024
58 checks passed
@arbulu89 arbulu89 deleted the saml-raise-error-decryption-failure branch October 2, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants