Skip to content
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
37 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
d567049
v3.1_issue_1127: Finished the make credential using ecc keys func in …
ThatSilentCoder Mar 18, 2026
252dedc
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder Mar 19, 2026
e63a30e
v3.1_issue_1127: Corrected some checkstyle errors, added a new packag…
ThatSilentCoder Mar 19, 2026
68b1a7f
v3.1_issue_1127: Addressed checkstyle warnings
ThatSilentCoder Mar 20, 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>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer need to exclude a test from the test classes since the SpotBug error has been addressed

<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
@@ -0,0 +1,65 @@
package hirs.attestationca.persist.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
* Enum representing public key algorithms for asymmetric cryptography.
* <p>
* This enum currently includes:
* <ul>
* <li>{@link #RSA} – RSA public-key algorithm.</li>
* <li>{@link #ECC} – Elliptic Curve (EC) public-key algorithm, commonly referred to as ECC.</li>
* </ul>
* <p>
* Each enum constant holds the public key algorithm name and id. The ID is listed on the
* <a href="https://trustedcomputinggroup.org/wp-content/uploads/TCG-Algorithm-Registry-Version-2.0_pub.pdf">
* TCG Algorithm Registry Version PDF.</a>
*/
@Getter
@AllArgsConstructor
@ToString
public enum PublicKeyAlgorithm {
/**
* RSA Public Key Algorithm.
*/
RSA(0x0001, "RSA"),

/**
* ECC Public Key Algorithm.
*/
ECC(0x0023, "ECC"),

/**
* Represents an unknown public key algorithm.
* This is used when the application encounters a public key algorithm that is not recognized or supported.
*/
UNKNOWN(0xFFFF, "UNKNOWN");

/**
* The hexadecimal representation of the algorithm ID as represented in the TCG documents.
*/
private final int algorithmId;

/**
* The name of the algorithm.
*/
private final String algorithmName;

/**
* Retrieves the enum by the algorithm ID.
*
* @param algorithmId algorithm ID
* @return ENUM representation of the public key algorithm
*/
public static PublicKeyAlgorithm fromId(final int algorithmId) {
for (PublicKeyAlgorithm algo : values()) {
if (algo.getAlgorithmId() == algorithmId) {
return algo;
}
}
return UNKNOWN; // If no match found, return UNKNOWN
}
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package hirs.attestationca.persist.exceptions;

/**
* Generic exception thrown while a {@link hirs.attestationca.persist.AttestationCertificateAuthority}
* Generic exception thrown when the the Attestation Certificate Authority Service
* is processing a newly created Attestation Certificate for a validated identity.
*/
public class CertificateProcessingException extends RuntimeException {
Expand Down
Loading
Loading