78 Commits

Author SHA1 Message Date
ThatSilentCoder
221eb3cc04
[#896] Add basic Platform Certificate Class Registry support to the ACA (#898)
Some checks failed
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (ubuntu-20.04) (push) Has been cancelled
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (windows-2022) (push) Has been cancelled
HIRS Build and Unit Test / ACA_Provisioner_Unit_Tests (push) Has been cancelled
HIRS System Tests / DockerTests (push) Has been cancelled
Dotnet Provisioner Unit Tests / Evaluate Tests (push) Has been cancelled
* issue_896: first cut at changing the logic on the validator

* issue_896: Added more javadocs, still going through the process and figuring out places where this will work. Can successfully debug provisioner+aca.

* issue_896: slowly introducing component identifier v2 into multiple spots throughout out the app. Seems like we need to ensure that when we try to parse the pc from the identity claim, it needs to recognize the new kind of identifier.

* issue_896: deleted abstract plat form config class, replaced it with plat config v1 (which already exists), moved attribuutes associated with v2 to the v2 class, when validating the aca will now verify if the platform config associated with the cert is v1 or v2. Made corrections to attributes names to better align with tcg docs.

* issue_896:Added a new property to component info, made some more spelling corrections, deleted unused classes that were being referenced by componentinfo. pretty much done with the aca side of things.

* issue_896:I believe I have finished the issue. Further testing needs to be done. Will put in a WIP PR for now.

* issue_896: Made some more changes after viewing PR

* issue_896: Changed v3 to v4 in the github actions yaml files.

* issue_896: Fixed issues in one of the test classes, can now test other aspects of the SupplyChainCredentialValidator class. Will add more tests as more issues get fixed.

* issue_896: Hopefully GITHUB actions will be more forgiving.

* issue_896: Placed test task in the root build.gradle. Made more fixes to the test classes.

* issue_896: Realized there might be more work needed for the validation part. Started adding more logic to validation.

* issue_896: Last change before the long weekend. Hoping these changes will make github actions happy.

* issue_896: Verifying that this part works. We will need to figure out a smart/efficient way of comparing the components from platform cert and device info report.

* testing

* v3_issue_896: Should work for this PR.

* v3_issue_821: fixed the NPE issue we were getting during provisioning for missing component info.

* v3_issue_896: my copy/paste skills need work. Fixed the issue that was causing the docker tests to fail.

* v3_issue_896: trying to see if reverting the return call null will make a difference.

* v3_issue_896: should fix issues with pc found on certain devices

* v3_issue_896: part ii of should fix issues with pc found on certain devices

---------

Co-authored-by: Esteban Acosta Toribio esacost <esacost@hirs-dr640-ro-01.evoforge.org>
2025-04-01 09:18:21 -04:00
chubtub
b3cc60dd24
Updated some workflows to use upload-artifact@v4 (#899)
* Updated to upload-artifact@v4

* Updated to download-artifact@v4
2025-03-06 07:16:35 -05:00
5B96790E3664F40075A67E6ADF737EDB15B4408DBC91A81228B31537B0CE3E26
6e9e68c1e7
dotnet_provisioner_unit_tests workflow will use newer actions (#840)
* Update dotnet_provisioner_unit_tests to use upload-artifactv4 and checkoutv4
2024-09-18 13:16:38 -04:00
iadgovuser26
72b37cec61
Merge pull request #815 from SuperPotato27/v3_issue_810
(WIP) Added action to package the RIM tool and the EventLog tool for windows.
2024-09-04 10:30:21 -04:00
iadgovuser26
1b582dfec6 removed HIRS_Provisioner 2024-08-19 15:09:50 -04:00
iadgovuser26
a62e45ee2e
Merge pull request #816 from nsacyber/v3_issue_794_ci-error-check
Fixes CI test error checking
2024-08-16 15:16:02 -04:00
SuperPotato27
e8f69ba3af adding a hirstools folder to the ZIP_Files artifact 2024-07-31 16:46:11 -04:00
5B96790E3664F40075A67E6ADF737EDB15B4408DBC91A81228B31537B0CE3E26
a41b0f2fe4
Windows Docker images needed some work (#817)
* Use openssl 3.3 in aca windows images [no ci]

* Further attempt to compile the tpm simulator on Windows [no ci]

* Sw tpm vs solution was updated to look for libcrypto in different place
[no ci]

* Similar steps for tss tools [no ci]

* Change workflow ref [no ci]

* REF not connecting [no ci]

* Try accessing through Env [no ci]

* Tried to print build args before selecting image [no ci]

* Different arg access before shell change [no ci]

* Fun with docker args [no ci]

* Fun with docker build args 2 [no ci]

* Adjust for change in package folder structure [no ci]
2024-07-25 19:19:18 -04:00
iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil
577880c2f5 save log on failure 2024-07-25 14:25:35 -04:00
iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil
df333fa36a save log on failure 2024-07-25 14:16:58 -04:00
iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil
89e1aea091 Added check for non typical provisioner status 2024-07-25 13:33:16 -04:00
SuperPotato27
7753d919d0 minor changes 2024-07-25 13:05:27 -04:00
SuperPotato27
b03ac63abe Merge branch 'v3_issue_805' into v3_issue_810 2024-07-25 12:56:53 -04:00
SuperPotato27
c3459b166b Resolved warnings 2024-07-25 12:38:38 -04:00
SuperPotato27
dfd84b4c90
Update hirs_package_linux.yml 2024-07-25 11:55:50 -04:00
SuperPotato27
3dcccfa670
Update hirs_package_linux.yml 2024-07-24 15:52:26 -04:00
SuperPotato27
0737cbce20 Added a README to tcg rim tool win package 2024-07-24 08:40:41 -04:00
SuperPotato27
8a3478c19e
Adding RIM tests action (#806)
* Added Rim test workflow

* bug fixes

* added rim tool setup

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* updates to rim_tests.yml

* updates to rim_tests.yml

* updates to rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* Update rim_tests.yml

* added run all script

* added run all script

* updates to rim_tests.yml

* Updates to paths in composite_rim_create_pass.sh

* Added all passing rim tests

* updates to rim_tests.yml

* switched to gradle-build-action@v3

* switched to setup-gradle@v3

* switched to setup-java@v4

* updates to rim_tests.yml

* testing failed script

* fixed failed test

* testing artifacts

* updates to rim_tests.yml

* Update rim_tests.yml

* updates to rim_tests.yml

* changes to rim_tests.yml

* testing log file

* testing log file

* testing log files

* testing log files

* testing log file

* testing log file

* testing log file

* testing log file

* testing log file

* Update rim_tests.yml

* verbose run

* updated paths and references

* updates to README.md

* deleted rim docker testing directory
2024-07-22 06:03:43 -04:00
5B96790E3664F40075A67E6ADF737EDB15B4408DBC91A81228B31537B0CE3E26
7c99b81b10
supplychainvalidationsummary will look up rims by ID (#805)
* Lookup here needed summary id from device object

* Portal linkage issue

* CertificatesUsed not working properly with RIM

* Maybe need to link to base rim

* Rim test 1 needed hw file

* Working on CI

* Connecting new tpm2_common

* Edited the way scripts called in docker exec

* TPM for reset each test

* Defining efi paths in CI env file

* Forgot to close while loops

* Connecting default test files

* Variable was wrong [no ci]

* Added ACA tests using uploaded artifacts

* Trying to chmod rim_setup.sh

* rim_setup chmod issues

* Added aca tests 9 and 10 to workflow

* Added cases 9 and 10 for aca policy tests

* Exit test scripts with error if one test fails

* Attempt to solve uploaded rim linkup

* Try only setting tagId if not null

* updateSupportRimInfo was not setting associated rim on base

* Attempt alternate lookup of rim by device name

* Trouble with event log archived

* Used wrong variable

* Fix spotbugs

* Try again

* Change SupplyChainValidation.message size to MAX_MESSAGE_LENGTH
2024-07-22 06:03:09 -04:00
SuperPotato27
06a46b1e0a upgraded actions to latest versions 2024-07-17 14:53:47 -04:00
SuperPotato27
c8ca3ad820 adding eventlog Jar to the package 2024-07-17 11:00:50 -04:00
SuperPotato27
128e2f90ab adjust paths 2024-07-16 11:48:59 -04:00
SuperPotato27
298cd3286a working on windows packaging 2024-07-16 09:21:20 -04:00
SuperPotato27
d0f33119d8 working on windows packaging 2024-07-16 09:12:58 -04:00
SuperPotato27
9156771291 working on windows packaging 2024-07-16 08:41:44 -04:00
SuperPotato27
aa8b48f5f3 packaging rimtool for windows 2024-07-15 16:28:54 -04:00
SuperPotato27
4cc207fc39 packaging rimtool for windows 2024-07-15 16:12:19 -04:00
SuperPotato27
5ee890e8e9 packaging rimtool for windows 2024-07-15 16:03:00 -04:00
SuperPotato27
0193612ca5 packaging rimtool for windows 2024-07-15 15:44:29 -04:00
SuperPotato27
b2158352dc packaging rimtool for windows 2024-07-15 15:36:45 -04:00
SuperPotato27
ae0529b93a packaging rimtool for windows 2024-07-15 15:22:55 -04:00
SuperPotato27
13177712ab packaging rimtool for windows 2024-07-15 15:16:57 -04:00
SuperPotato27
59e2ac65e7 packaging rimtool for windows 2024-07-15 15:05:31 -04:00
iadgovuser62
dd7b041f9f
Adding Platform Cert Tests and RIM System Tests to V3 (#781)
* Adding Platform Cert and RIM Tests to V3 and modifying workflow file to split those tests into individual steps
2024-06-07 13:27:08 -04:00
iadgovuser62
7a1a6b73b0
[#775] Adding Policy Tests to V3 (#776)
* Adding ACA Policy tests with modifications to related files

* Separating the system tests setup from the tests themselves + Splitting up ACA Policy Tests into different steps in workflow file

* Creating separate script for setting up system tests in workflow, and one script for running system tests locally. Adding details to system test steps.
2024-06-07 06:28:25 -04:00
iadgovuser62
8d82fce80f Updating GitHub Actions from V3 to V4 uses 2024-05-09 12:12:00 -04:00
iadgovuser62
144160dbfa
Adding system test for provision using Provisioner.NET (#748)
* Adding run script, Dockerfile, and container setup script for provisioning with TPM Simulator and Provisioner.Net

* Replacing Docker container setup script with Docker Compose .yml file with respective configurations in related files

* Adding system_test.yml for GitHub actions to run system tests upon V3 branch pushes. Modifying related files accordingly

* Replacing V2 ACA with V3 ACA built from Rocky 9
2024-05-01 14:20:51 -04:00
5B96790E3664F40075A67E6ADF737EDB15B4408DBC91A81228B31537B0CE3E26
24d81b9da2
create_aca_images workflow passes branch ref to dockerfiles (#729)
* Update ACA image workflow to pass ref to dockerfiles [no ci]

* Use GITHUB_REF_NAME instead [no ci]

* Change variable usage [no ci]

* Use build arg instead of env [no ci]
2024-03-06 20:51:13 -05:00
iadgovuser29
a1087e1fb2 Remove v2 aca image workflow [no ci] 2024-02-01 11:25:35 -05:00
iadgovuser29
07f86d08c4 GitHub Workflow to create V3 ACA docker images 2024-02-01 11:25:34 -05:00
iadgovuser62
e9f5d7245c
Xfer HIRS_Provisioner.NET to main (#663)
* Moving HIRS_Provisioner.NET and dotnet_provisioner_unit_tests.yml into main branch

* Adding fixed dotnet provisioner workflow

* Updated files to match updated master branch, including hirs.sln, Directory.Build.targets, HIRS_Provisioner.NET.csproj, and hirsTest.csproj
2024-01-22 16:18:01 -05:00
iadgovuser58
cc84fab5e8 updated github action to copy artifacts for subprojects that now have unit tests 2024-01-17 12:40:29 -05:00
iadgovuser26
51ae60e639 Added a war file artifact 2023-10-18 08:40:52 -04:00
iadgovuser26
561280a263 removed debug statments 2023-10-16 15:24:45 -04:00
iadgovuser26
329f5afb91 updated another upload-artifact version 2023-10-16 14:23:27 -04:00
iadgovuser26
279b3f6f41 updated upload-artifact version 2023-10-16 14:11:35 -04:00
iadgovuser26
7313d98c52 combined jobs 2023-10-16 14:04:10 -04:00
iadgovuser26
0c851c593f updated referenced actions 2023-10-16 13:56:27 -04:00
iadgovuser26
262d7a6b7d changed artifact path 2023-10-16 13:39:49 -04:00
iadgovuser26
90a5af2cd7 removed pushd 2023-10-16 13:31:20 -04:00