Commit Graph

403 Commits

Author SHA1 Message Date
iadgovuser58
ece30d420c did final move of the vendor-table.json file after testing; fixed json-accepted quotes in spdm file 2024-06-05 12:30:01 -04:00
chubtub
711e342972 Modify controller class to handle UnmarshalException caused by invalid xml to prevent frontend error 2024-05-07 17:28:37 -04:00
chubtub
4da6020260 Modify BaseReferenceManifest to handle namespace prefixes in the swidtag XML. Modify the rimtool and ReferenceManifestValidator to properly prefix Directory and File under Payload and handle them for validation. 2024-05-07 17:28:37 -04:00
iadgovuser58
cf6019d863 fixed issue caused by change to version method 2024-04-26 12:54:56 -04:00
CAFB385655BEB1060E85B6C080B432F8EB2A2AF78459BD6532124977B933154A
49e53e9b1f
Create IDevID certificate page (#727)
Adding IDevID certificate page and parsing support
2024-04-18 20:28:11 +00:00
Cyrus
cf08b1d2d3 Another minor change, didn't update the delta message for components and
add the restore function to the upload
2024-03-14 10:41:45 -04:00
Cyrus
350cf2b802 These are some minor updates while investigating a bug. 2024-03-14 10:12:40 -04:00
Cyrus
6a13d8dbb1 The if statement that uses the new ignore policy was improperly
implemented.  Updated so that any non-revision attribute will save
2024-03-13 20:18:39 -04:00
Cyrus
a9e403d1a0 This set of code fixes a null pointer. The ignore flag was not set up
properly and the setter for the attribute name for the result wasn't set
2024-03-13 14:57:41 -04:00
Cyrus
c560ad5997 Updated code to handle modified non specific serial number component 2024-03-12 11:08:29 -04:00
Cyrus
59998cb898 This is a merging of component red highlighting with the new policy to
ignore the revision attribute.
2024-03-12 08:10:51 -04:00
Cyrus
d6d47d9abe This last push updates unit tests that are not prepped to handle the new
code.
2024-03-07 16:11:24 -05:00
Cyrus
37850a6c90 Removed a statement that I'll need to put back in 2024-03-07 15:07:32 -05:00
Cyrus
70ca2ced7b This is a continuation of the PR for 723 and issue 705. These changes
set up fixing the delta part of the provisioning of the attributes.
2024-03-06 15:16:05 -05:00
Cyrus
eada242284 These changes have been moved over from updates made for issue-705. The
primary function implemented in this set of changes is to track more
specifically what failed when the components of a certificate are
compared.  The implementation required a couple of new DB classes to be
created to store this information.  This is also to set up a better
visual comparison of what was expected vs what was actually found.  This
is similar to the RIM event compare failure page.
2024-03-01 15:29:10 -05:00
Cyrus
21111c1291 A message is now printed indicating in the log that the platform version
check is skipped if the information is not specified, unknown or null.
2024-02-29 11:26:10 -05:00
Cyrus
300cae3950 Changed the branch naming and addressed a failed unit test. When the
value of the platform version is null, the unit test was failing.
2024-02-29 07:53:21 -05:00
Cyrus
039054b740 Updating the code to ignore 'Not Specified' and 'Unknown' as values for
Platform Version.
2024-02-28 16:25:15 -05:00
iadgovuser58
9c8d936e51 fixing checkstyles 2024-02-27 16:38:04 -05:00
iadgovuser58
7efbcc270e checkstyles cleanup 2024-02-26 17:56:58 -05:00
iadgovuser58
aad508fdb9 removing unit test dependency on other unit test; comments cleanup 2024-02-26 10:03:09 -05:00
iadgovuser58
5bf7661e56 added SupplyChainSummaryTest 2024-02-23 19:22:36 -05:00
iadgovuser58
57945fe469 removed depencies from other unit tests 2024-02-23 19:12:39 -05:00
iadgovuser58
38aeb6db67 removed depencies from other unit tests 2024-02-23 18:40:31 -05:00
iadgovuser58
99f26b657f removed depencies from other unit tests to new class AbstractUserdefinedEntityTest 2024-02-23 18:04:39 -05:00
iadgovuser62
de84ccbb2c Adding tests for validating mismatching baseboard/chassis/system serial numbers in DeviceInfoReport objects 2024-02-23 12:53:13 -05:00
iadgovuser62
42a05a9e00 Adding SupplyChainCredentialValidatorTest, fixing assertEquals syntax in PolicySettingsTest, un-privating method in CertificateAttributeScvValidator 2024-02-20 09:37:22 -05:00
iadgovuser62
4dd395b988 Adding PolicySettingsTest 2024-02-16 10:19:48 -05:00
D2B8CA1B27286366A8607B6858C0565962613D18D0546480078B520CD7AD705A
bb81f1050c
Merge pull request #701 from nsacyber/v3_issue_693-unittest
Migrated 1 unit test to HIRS_AttestationCA
2024-02-09 11:20:32 -05:00
Cyrus
80ba01a3d0 This commit is for the 3rd listed issue on #705. The green check mark
test was causing an error from ASN1UTF8String.getInstance.  And did some
checkstyle fixes.
2024-02-06 16:34:20 -05:00
Cyrus
e819dad52b This commit sets up the suppression filter file. The locations previous
established have been removed.  The configuration is the root directory
2024-02-05 10:50:12 -05:00
Cyrus
ab5036982f Updated version for suppressions file 2024-02-02 08:37:44 -05:00
Cyrus
17bd7d9021 New branch because there seemed to be issues with the previous branch
merges.
2024-02-02 08:07:08 -05:00
iadgovuser58
2db795de44 Merging latest changes into branch prior to PR
Merge branch 'main' into v3_issue_693-unittest
2024-02-01 14:42:47 -05:00
iadgovuser58
0fd8620098 trying to fix spotbug issues 2024-02-01 14:40:25 -05:00
iadgovuser58
257b242c87 trying to fix spotbug issues 2024-02-01 14:33:57 -05:00
iadgovuser58
41193793b5 trying to fix spotbug issues 2024-02-01 14:32:16 -05:00
Cyrus
566248b244
Merge pull request #688 from nsacyber/v3_issue-684
[#684] Green Check mark fix
2024-02-01 10:20:31 -05:00
iadgovuser58
8a440d0d39 getting latest updates from main
Merge branch 'main' into v3_issue_693-unittest
2024-02-01 09:53:50 -05:00
iadgovuser58
0aab69871f try adding more require non nulls 2024-02-01 09:47:26 -05:00
Cyrus
7c1f43c19b Updated the reference to the getObject for a Tagged Object. this is
current causing the build to fail in reference to #693 Unit test
2024-02-01 06:47:46 -05:00
Cyrus
06dc119702 ASN1UTF8String change to DERUTF8String so that the vendor string aren't
throwing exceptions because ANS1UTF8String.getInstance does not take
Strings
2024-02-01 06:31:02 -05:00
Cyrus
66130bacea
Merge pull request #683 from nsacyber/v3_bouncycastle-version-update
Bouncy Castle version update
2024-02-01 06:23:51 -05:00
iadgovuser58
085fd6e1c8 fixed bugfinder issues 2024-01-31 10:22:22 -05:00
iadgovuser58
b5a790caf6 added springframework to gradle 2024-01-29 10:54:49 -05:00
iadgovuser58
8e2d8a0463 added resources 2024-01-29 10:53:47 -05:00
iadgovuser58
77f5d13c1b added new test 2024-01-29 10:52:47 -05:00
iadgovuser58
ca83d8556b added resources 2024-01-25 09:51:06 -05:00
iadgovuser58
620982ee72 added 2 new unit tests 2024-01-25 09:48:14 -05:00
Cyrus
5c20b6b9c3 Updated the code to properly check for database values that are archived
vs not archived
2024-01-24 16:02:46 -05:00
Cyrus
1d0a71a1a2 While expecting a StackOverFlow error from uploading an EK certificate,
this is not occurring.  A unit test had to be updated because the
previous BouncyCastle X500Compare.equals() method returned false for 2
empty string compares.  Now it returns true.
2024-01-24 09:48:44 -05:00
Cyrus
ab4c608d8d Initial Commit. This sets up the update bouncy castle for testing. 2024-01-24 09:09:12 -05:00
Cyrus
d6af9fdad0 Code checked in from the last spotbugs PR push caused issues with the
DeviceTest unit test.  The issue revolved around the equals and hashCode
mehtods that were initially be done by lombok.  Auto generated by an IDE
also failed (using Objects).  The issue came up because the methods all
called super.equals().  I took this out and all issues were resolved.
Lastly the null timestamp unit test was changed because the value will
never be null.
2024-01-23 10:43:09 -05:00
Cyrus
49eb2753fb
Merge pull request #670 from nsacyber/v3_bouncycastle-preq
BouncyCastle Prerequisite changes
2024-01-22 16:34:26 -05:00
iadgovuser26
2efb1a98f3
Merge pull request #658 from nsacyber/v3_issue_618-unittest
HIRS_Utils Unit Tests Migration from /hirs/data/persist directory
2024-01-22 08:22:06 -05:00
Cyrus
f3b0be9ef9
Merge pull request #657 from nsacyber/issue-642-spotbugs-p2
[#642] HIRS_AttestationCA spotbug fixes
2024-01-19 07:58:57 -05:00
Cyrus
832bac4b93 Finally found a fix for the StackOverFlow error 2024-01-16 15:30:28 -05:00
Cyrus
331e0f54f7 Resolved an illegal argument with the ASN1UTF8String object in the
componentIdentifier
2024-01-16 13:21:03 -05:00
Cyrus
577f3c7035 Added some changes to fix some issues causing a stackoverflow 2024-01-12 14:42:14 -05:00
Cyrus
f7103517d2 All changes that were deprecated for the updated 1.77 version. This is
to set up for updating the actual version.
2024-01-12 13:44:11 -05:00
Cyrus
799a9922f4 ACA was throwing up errors because of serialization for the Platform
Cert, undid code for spotbugs to resolve the issue
2024-01-12 10:18:38 -05:00
Cyrus
8aef4b5bac Missed some Getter and Setter 2024-01-12 07:32:04 -05:00
Cyrus
c6dcf36e04 Removed changes because the PC is not loading URIReference 2024-01-12 07:23:13 -05:00
iadgovuser62
18a8f42699 Fixed expected/actual order in tests, added ExaminableRecord tests to TPMMeasurementRecordTest 2024-01-11 11:35:50 -05:00
iadgovuser62
09284caa57 Undoing addition to HIRS_AttestationCA build.gradle file; Adding tests to DeviceTest 2024-01-10 14:57:56 -05:00
iadgovuser62
2b594571b5 Removing SpringPersistenceTest after concluding it is unnecessary; Modifying DeviceInfoReportTest after removal of SpringPersistenceTest. Adding TPMMeasurementRecordTest 2024-01-10 14:37:35 -05:00
Cyrus
3197f4a818 Removing null pointer on URI object 2024-01-08 14:44:55 -05:00
Cyrus
4eafb655ba Pulled back some additional changes because the initialization of
endorsement through issued was not happening due to the spotbug change
for the lombok getter.
2024-01-05 11:03:44 -05:00
Cyrus
10343398d4 These are the finally changes that produced a successful build. all
unit tests pass and no spotbugs patterns appear for HIRS_AttestationCA.
2024-01-05 09:23:52 -05:00
Cyrus
03055d29a6 Continuing to update to fix ACA issues 2024-01-04 11:48:46 -05:00
Cyrus
021e975074 Last touches 2024-01-02 15:59:29 -05:00
Cyrus
98e9fae754 Resolving the unit tests 2024-01-02 15:09:18 -05:00
Cyrus
b7ac1e06da Additional changes 2024-01-02 12:45:16 -05:00
Cyrus
0a89846f4c Updates to the Unit Test based on spotbug changes 2024-01-02 10:01:43 -05:00
Cyrus
0e9b2dbd26 Additional changes 2024-01-02 08:41:11 -05:00
Cyrus
bc71285442 Additional updates 2023-12-29 07:20:27 -05:00
iadgovuser62
412ac2bb75 Adding DeviceTest 2023-12-29 06:59:06 -05:00
iadgovuser62
91abb7b9a5 Adding DeviceInfoReportTest and necessary resource file 2023-12-29 06:57:27 -05:00
iadgovuser62
df83fb6064 Adding SpringPersistenceTest and necessary implementation in HIRS_AttestationCA build.gradle file 2023-12-29 06:53:09 -05:00
Cyrus
e75a4c2128 Additional updates to clear issues spotbugs have found. While I am
going to put in an exclude for what is left, I am attempting to
resolving some of these that make sense.
2023-12-29 06:28:34 -05:00
Cyrus
39da434f1f Continuing fixing spotbugs for AttestationCA 2023-12-26 08:37:52 -05:00
Cyrus
8c573b0bcd Added some more updates 2023-12-22 08:53:20 -05:00
Cyrus
0d25599c80 Initial set of changes for #642 that are fixes for HIRS_AttestationCA.
In addition, this and the following pushes will have changes for #651
because spot bugs doesn't like how Lombok handles hashCode and equals
2023-12-22 07:44:47 -05:00
Cyrus
e2247735f0
Merge pull request #653 from nsacyber/issue-642-spotbugs
[#642] Initial Spotbugs Setup
2023-12-22 07:21:29 -05:00
Cyrus
0432646445 The initial issue found in the tcg event log code is present in the
rest, updating all exclude files to ignore this specific bug for the
time being
2023-12-20 15:53:32 -05:00
Cyrus
b52128a0b1 These are fixes for issues found via unit test that are in PR #652. But
that PR is currently still WIP and these changes have nothing to do with
why that PR is WIP.  Therefore PR just covers these changes to the
creation time not being saved/reset.
2023-12-20 15:15:27 -05:00
Cyrus
c0cee9d597 Fixed a typo and included files I didn't on the initial push 2023-12-20 13:10:58 -05:00
iadgovuser58
6c180f6825 added NullPointerException capability to Appraiser name 2023-12-15 12:32:56 -05:00
iadgovuser58
1f00a8833e switched expected/actuals 2023-12-15 11:17:54 -05:00
iadgovuser58
560ee83eba switched expected/actual 2023-12-15 10:53:40 -05:00
iadgovuser58
0222ba2cf8 changed name of TPM2ProvisionerStateTest 2023-12-15 10:50:18 -05:00
iadgovuser58
7e749c49ab added back in 2 tests that were left out: testAppraiserNullName and testSetNameNull; will need main code fix to get tests to work 2023-12-15 09:51:16 -05:00
iadgovuser58
a51dd5f7df switched expected/actual; some of the functions were only testing junit equals instead of the lombok/external function equals so changed those back 2023-12-15 09:31:48 -05:00
iadgovuser62
2e8569d0c3 Adding AppraiserTest and TestAppraiser 2023-12-06 10:58:55 -05:00
iadgovuser62
6b12e3d894 Adding TestTPM2ProvisionerState 2023-12-06 10:52:22 -05:00
iadgovuser62
f78c84a19a Fixing deprecated method in CertificateTest 2023-12-06 10:43:55 -05:00
5B96790E3664F40075A67E6ADF737EDB15B4408DBC91A81228B31537B0CE3E26
2ab1e548ce
V3 json file platform (#631)
* Look for Component Class json on Windows. Update aca-windows

* Removed TPM from the ACA on Rocky image, changed container detection

* Change healthcheck function on windows.

* Remove commented code lines from aca_bootRun.ps1

* Added SWTPM to v3 ACA images. 

* Add build arg to the aca-windows Dockerfile to select base image tag

* Make ACA accessible from localhost
2023-12-06 10:20:56 -05:00
iadgovuser62
748d7a317f
HIRS_Utils Unit Tests Migration from /hirs/data/persist directory (#632)
* Adding TPMInfoTest with necessary resources, and adding EndorsementCredentialTest with approved fix to EndorsementCredential

* Adding CertificateAuthorityCredentialTest and adding mockito import to build.gradle
2023-12-05 15:09:01 -05:00
Cyrus
6d4dad2fee Updated the code so that the icon for firmware validation links to a RIM 2023-11-29 13:35:42 -05:00
Cyrus
8ae0745ac5 Fixed issues that caused the ACA to not complete a provision.
FWvalidator was using an object used by the tool and not the portal.
Updated a few repository calls
2023-11-28 15:39:33 -05:00