Added check for certificate expiration issue#407
Open
asraf-khan wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
Attached log for reference. APIC Log : APIC Run log - SSL Cert expiry issue.docx Pytest Log: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detection logic:
Find the fault using below query
'faultInst.json?query-target-filter=or(eq(faultInst.code,"F4501"),eq(faultInst.code,"F4502"),eq(faultInst.code,"F4503"),eq(faultInst.code,"F3081"),eq(faultInst.code,"F3082"),eq(faultInst.code,"F4617"),eq(faultInst.code,"F4752"),eq(faultInst.code,"F4753"))'
if one fault F4501, F3081, F4617, F4752 found and state is “raised” or “soaking”
Result = Manual & recommended_action ="Renew the certificate(s) before it expires to avoid service disruption."
if one fault F4502, F4503, F3082, F4753 and state is “raised” or “soaking”
Result = FAIL_O & recommended_action="Renew the certificate(s) immediately to restore functionality."
if faults found as combination (e.g. expiring F3081 & expired F4502 ) means
Result = FAIL_O & recommended_action="Renew expired certificate(s) immediately. For certificate(s) approaching expiry, renew before they expire to avoid service disruption."
Faults Short Description Introduced First build
F3081, F3082 SAML encryption cert expiring/expired 2018-02-22 3.1(2f)
F4501, F4502 KeyRing cert expiring/expired 2023-09-13 6.0(4c)
F4503, F4617 TP cert expired/expiring 2024-04-22 6.1(1e)
F4752,F4753 Factory cert expiring/expired 6.1(5e)
For Factory certificate status if cversion < 6.1(5e), check via cli command "acidiag verifyapic"