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

Improve ACF install error reporting #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joseph-reynolds
Copy link
Contributor

This fixes an issue where the authRc variable was shadowed in the ACF install path so it was not set to any meaningful value.

This improves the error code produced by the ACF install path. The main observation is that multiple public keys are attempted and all but one of them will fail with CeLoginRc::RcBase::SignatureNotValid. That is a valid error code, but errors from keys where the signature was valid should take precedence. For example, consider when the second key is valid but the ACF is expired: the SignatureNotValid from the third key should not mask this more significant error code.

Tested: Yes
Scenarios: valid ACF installed, incorrect signature, expired ACF. The caller writes the error code into a journal entry.

This fixes an issue where the authRc variable was shadowed in the ACF install
path so it was not set to any meaningful value.

This improves the error code produced by the ACF install path.  The main
observation is that multiple public keys are attempted and all but one of
them will fail with CeLoginRc::RcBase::SignatureNotValid.  That is a valid
error code, but errors from keys where the signature was valid should take
precedence.  For example, consider when the second key is valid but the ACF
is expired: the SignatureNotValid from the third key should not mask this
more significant error code.

Tested: Yes
Scenarios: valid ACF installed, incorrect signature, expired ACF.
The caller writes the error code into a journal entry.

Signed-off-by: Joseph Reynolds <[email protected]>
@joseph-reynolds
Copy link
Contributor Author

This should be backported at least to FW1060.

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

Successfully merging this pull request may close these issues.

1 participant