Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8964f31
v3.1_issue_1090: First cut of the fixing the ecc provisioning issue.
ThatSilentCoder Feb 19, 2026
331328b
v3.1_issue_1090: Added a new property that keeps track of the algorit…
ThatSilentCoder Feb 20, 2026
553ba00
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Feb 20, 2026
879ec7e
v3.1_issue_1090: Figuring out how to parse the ecc key from the bytes…
ThatSilentCoder Feb 20, 2026
9d14600
v3.1_issue_1090: Fixing warnings/errors pointed out by shell plugin i…
ThatSilentCoder Feb 23, 2026
f7969bc
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Feb 24, 2026
4f1e778
v3.1_issue_1090: Fixed a lot of tests. Removed a lot of unused method…
ThatSilentCoder Feb 24, 2026
cc01535
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Feb 25, 2026
40bd091
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Feb 25, 2026
45471b0
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Feb 25, 2026
6527bc0
v3.1_issue_1090: SLowly but surely making progress.
ThatSilentCoder Feb 25, 2026
6169988
v3.1_issue_1090: Merged main into local branch.
ThatSilentCoder Feb 26, 2026
ac90e40
v3.1_issue_1090: Going to have to complete a function that makes cred…
ThatSilentCoder Feb 26, 2026
b3b0259
v3.1_issue_1090: Just to quiet spotbug error.
ThatSilentCoder Feb 26, 2026
ad14f48
v3.1_issue_1090: Changed variable names in the provisionutils parser …
ThatSilentCoder Feb 27, 2026
9da7763
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Mar 2, 2026
a0a49b4
v3.1_issue_1090: Converted helper class to service, started creating …
ThatSilentCoder Mar 3, 2026
fc79f20
v3.1_issue_1090: Made some name changes to the service classes, refac…
ThatSilentCoder Mar 4, 2026
72393a2
v3.1_issue_1120: Finished refactoring the identityclaimprocessor. nee…
ThatSilentCoder Mar 5, 2026
a190682
v3.1_issue_1090: Fixed the error that is mentioned in the issue. Will…
ThatSilentCoder Mar 6, 2026
8f256fd
v3.1_issue_1090: Should fix the unusual system error.
ThatSilentCoder Mar 6, 2026
c55528c
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Mar 10, 2026
b368c91
v3.1_issue_1127: Adding the setup ecc keys param to the powershell sc…
ThatSilentCoder Mar 10, 2026
ac0ec5c
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Mar 11, 2026
5e57027
v3.1_issue1127: Can now add rsa,ecc properties to the spring file whe…
ThatSilentCoder Mar 11, 2026
7fb5757
v3.1_issue1127: Finished modifying powershell scripts to accept the t…
ThatSilentCoder Mar 12, 2026
1c796c5
Piped output of write-output to WriteAndLog function
ThatSilentCoder Mar 12, 2026
35be596
MSBuild should build msi on fips systems; better version reporting (#…
iadgovuser29 Mar 13, 2026
fb47a66
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Mar 13, 2026
335c42c
v3.1_issue_1127: Created a new service class for the tpm state. Refac…
ThatSilentCoder Mar 13, 2026
7e8307a
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Mar 17, 2026
51d284d
v3.1_issue_1127: Forgot to add autowired annotation to the Tpm2Provis…
ThatSilentCoder Mar 17, 2026
582911e
v3.1_issue_1127: This should fix the build error on github.
ThatSilentCoder Mar 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .ci/system-tests/sys_test_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ tpm2_container=hirs-provisioner1-tpm2
checkContainerStatus() {
container_name=$1
container_id="$(docker ps -aqf "name=$container_name")"
container_status="$(docker inspect $container_id --format='{{.State.Status}}')"
container_status="$(docker inspect "$container_id" --format='{{.State.Status}}')"
echo "Container id is $container_id and the status is $container_status"

if [ "$container_status" != "running" ]; then
container_exit_code="$(docker inspect $container_id --format='{{.State.ExitCode}}')"
container_exit_code="$(docker inspect "$container_id" --format='{{.State.ExitCode}}')"
echo "Container Exit Code: $container_exit_code"
docker info
exit 1;
Expand Down Expand Up @@ -146,6 +146,6 @@ setAppsettings() {
# write_to_logs <log statement>
writeToLogs() {
line=$1
echo $line;
echo "$line";
docker exec -i $aca_container /bin/bash -c "cd .. && echo '$line' >> /var/log/hirs/HIRS_AttestationCA_Portal.log"
}
4 changes: 0 additions & 4 deletions HIRS_AttestationCA/config/spotbugs/spotbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,5 @@
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<Match>
<Class name="hirs.attestationca.persist.AttestationCertificateAuthorityTest"/>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
</Match>
</FindBugsFilter>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
import java.util.UUID;

@Repository
public interface SupplyChainValidationSummaryRepository
extends JpaRepository<SupplyChainValidationSummary, UUID> {
public interface SupplyChainValidationSummaryRepository extends JpaRepository<SupplyChainValidationSummary, UUID> {

/**
* Query that retrieves a supply chain validation summary using the provided device.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package hirs.attestationca.persist.entity.tpm;

import hirs.attestationca.persist.entity.manager.TPM2ProvisionerStateRepository;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
Expand All @@ -15,15 +14,17 @@
import java.util.Date;

/**
* This class is for saving the Identity Claim and the Nonce between the two passes of the
* TPM 2.0 Provisioner.
* This class is for saving the Identity Claim and the Nonce between the two passes of the TPM 2.0 Provisioner.
*/
@Log4j2
@NoArgsConstructor
@Entity
public class TPM2ProvisionerState {
private static final int MAX_BLOB_SIZE = 16777215;

@Column(nullable = false)
private final Date timestamp = new Date();

@Id
private Long firstPartOfNonce;

Expand All @@ -34,9 +35,6 @@ public class TPM2ProvisionerState {
@Column(nullable = false, length = MAX_BLOB_SIZE)
private byte[] identityClaim;

@Column(nullable = false)
private final Date timestamp = new Date();

/**
* Constructor.
*
Expand Down Expand Up @@ -69,34 +67,6 @@ public TPM2ProvisionerState(final byte[] nonce, final byte[] identityClaim) {
}
}

/**
* Convenience method for finding the {@link TPM2ProvisionerState} associated with the nonce.
*
* @param tpm2ProvisionerStateRepository the {@link TPM2ProvisionerStateRepository}
* to use when looking for the
* {@link TPM2ProvisionerState}
* @param nonce the nonce to use as the key for the {@link TPM2ProvisionerState}
* @return the {@link TPM2ProvisionerState} associated with the nonce;
* null if a match is not found
*/
public static TPM2ProvisionerState getTPM2ProvisionerState(
final TPM2ProvisionerStateRepository tpm2ProvisionerStateRepository,
final byte[] nonce) {
try (DataInputStream dis
= new DataInputStream(new ByteArrayInputStream(nonce))) {
long firstPartOfNonce = dis.readLong();
TPM2ProvisionerState stateFound = tpm2ProvisionerStateRepository
.findByFirstPartOfNonce(firstPartOfNonce);
if (stateFound != null && Arrays.areEqual(stateFound.getNonce(), nonce)) {
return stateFound;
}
} catch (IOException ioEx) {
log.error(ioEx.getMessage());
return null;
}
return null;
}

/**
* Get the nonce.
*
Expand Down
Loading
Loading