Improve prf encryption and large blob import#201
Open
JMarkstrom wants to merge 3 commits intomasterfrom
Open
Conversation
… supplied Change the default parameter set to "AutoCreate" so that running Protect-YubiKeyFIDO2File without -Credential or -RelyingPartyID automatically creates a synthetic credential (RP and username both set to "prf-encryption") via New-YubiKeyFIDO2Credential. Add a -Force switch to suppress the confirmation prompt during auto-creation. Update XML doc examples to cover the new default flow.
…ate supporting FIDO2 credential.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add default parameter sets for FIDO2 blob and PRF cmdlets to auto-create supporting FIDO2 credential.
Add
AutoCreate/AutoLookupdefault parameter sets toImport-YubiKeyFIDO2Blob,Export-YubiKeyFIDO2Blob, andProtect-YubiKeyFIDO2Fileso that users can round-trip blobs and encrypt files without manually specifying credentials or relying parties. Also isolate credential-resolution into dedicated FIDO2 sessions to prevent stale-session bugs.Goal: Enable zero-configuration FIDO2 workflows —
Import,Export, andProtectall "just work" with a single mandatory parameter, creating or reusing synthetic credentials on demand.Details
Import-YubiKeyFIDO2Blob.cs:
AutoCreatedefault parameter set requiring only-LargeBlobAutoCreateRpId/AutoCreateUsernameconstants)-ForcetoAutoCreateset to suppress confirmation promptsswitchwithif/else ifbranching; addSupportsShouldProcessandConfirmImpact.HighExportYubiKeyFIDO2Blob.cs:
AutoLookupdefault parameter set requiring only-OutFileImport-YubiKeyFIDO2BlobOutFileto all three parameter sets; addAutoCreateRpIdconstantBeginProcessingto always connect to FIDO2 (all sets need it)ProtectYubiKeyFIDO2File.cs:
AutoCreatecredential lookup to an isolated session; create credential viaNew-YubiKeyFIDO2Credentialif none existsByRelyingPartyIDresolution to an isolated session