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

SA-22196 Store certificate raw in base64 format #446

Merged
merged 5 commits into from
Aug 16, 2023
Merged

SA-22196 Store certificate raw in base64 format #446

merged 5 commits into from
Aug 16, 2023

Conversation

dlnilsson
Copy link
Contributor

@dlnilsson dlnilsson commented Jul 17, 2023

See commit messages and youtrack issue for more info.

@dlnilsson
Copy link
Contributor Author

Tests fails because of #442

@gokhan-berberoglu
Copy link
Member

very nice 🤩

@dlnilsson
Copy link
Contributor Author

if #443 gets approved, this could be a potential solution for SA-22196

dlnilsson and others added 4 commits August 16, 2023 10:42
this PR is built on top of #443
where we already parse the certificate during user input for validation

pem_filepath can be removed in the future, but removing it right now would break backwards compability,
we might want to add migration logic for this.
HTTP 401 would suggest that the token has been revoked.
@kajes
Copy link
Contributor

kajes commented Aug 16, 2023

I added migration code. The pem_filepath is no longer set when configuring so that deprecation will be easier. Only the pem_base64 key is set when configuring.

Migration happens on signin when the pem_filepath key is set but not the pem_base64. In which case the pem_base64 key will be set and the value for pem_filepath will be set to empty.

@kajes kajes marked this pull request as ready for review August 16, 2023 09:02
@kajes kajes merged commit 93392d0 into main Aug 16, 2023
3 checks passed
@kajes kajes deleted the SA-22196 branch August 16, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants