Skip to content

Commit

Permalink
Allowing SSH certificates for secureboot (#2563)
Browse files Browse the repository at this point in the history
Signed-off-by: Sasi Palaka <[email protected]>
Co-authored-by: Sasi Palaka <[email protected]>
  • Loading branch information
psasidhar and Sasi Palaka authored Mar 15, 2024
1 parent 966033a commit 54de6a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ InstanceConfirmation validateInstanceRequest(InstanceConfirmation confirmation,
}

Map<String, String> attributes = new HashMap<>();
attributes.put(InstanceProvider.ZTS_CERT_SSH, "true");
confirmation.setAttributes(attributes);

return confirmation;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ public void testConfirmInstance() {
attributes.put(InstanceProvider.ZTS_INSTANCE_CERT_SUBJECT_DN, subjectDn);
confirmation.setAttributes(attributes);

assertNotNull(provider.confirmInstance(confirmation));
InstanceConfirmation result = provider.confirmInstance(confirmation);
assertNotNull(result);
assertEquals(result.getAttributes().get(InstanceProvider.ZTS_CERT_SSH), "true");

provider.close();
System.clearProperty(SecureBootProvider.ZTS_PROP_SB_ATTR_VALIDATOR_FACTORY_CLASS);
}
Expand Down

0 comments on commit 54de6a9

Please sign in to comment.