[Fleet] fix encryption key less message signing (#153713)

This commit is contained in:
Joey F. Poon 2023-03-27 08:52:33 -05:00 committed by GitHub
parent fd8508a4f0
commit a38dfe96c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ export async function getFullAgentPolicy(
// populate protection and signed properties
const messageSigningService = appContextService.getMessageSigningService();
if (messageSigningService?.isEncryptionAvailable && fullAgentPolicy.agent) {
if (messageSigningService && fullAgentPolicy.agent) {
const publicKey = await messageSigningService.getPublicKey();
fullAgentPolicy.agent.protection = {