Repository navigation
Add USB-based hardware authentication for administrative operations - #265
Merged
Merged
Conversation
Co-authored-by: makr-code <[email protected]>
…ng build issues Co-authored-by: makr-code <[email protected]>
…ability Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Add security feature for administrative access using encrypted USB
Add USB-based hardware authentication for administrative operations
Jan 7, 2026
makr-code
marked this pull request as ready for review
January 7, 2026 10:21
Copilot AI
added a commit
that referenced
this pull request
May 11, 2026
…HMAC/embedding stubs - GGUFMetadata (stub #259): add HmacFn type alias + setHmacFn() static API; sign()/verify() delegate to injected fn when set, fall back to XOR stub; fail-closed on fn exception; source comments updated from #173 → #259 - FlareRetrieval (stub #260): add EmbeddingQueryFn type alias + setEmbeddingQueryFn() static API + buildQueryEmbedding() method; string buildQuery() path retained as documented fallback; fail-closed on fn exception - TensorRAGPipeline (stub #261): add EmbeddingQueryFn + setEmbeddingQueryFn() static API; step() populates RAGDecision::flare_query_embedding when fn set and FLARE triggers; fail-closed on fn exception - STUB_INVENTORY.md: 21 new entries (#259–#277, with #263 as a/b/c subtypes); header updated to 272 entries / 238 resolved / 34 active; source ID conflicts for AR-01 (#172→#265), AR-02 (#177→#266), mmap-bridge (#176→#270), fingerprint-graph (#174→#276) noted and source comments updated - All three bridges follow the gpu_tensor.cpp pattern: static function-local mutex + static function-local std::function storage; thread-safe getter/setter Co-authored-by: Copilot <[email protected]> Co-authored-by: makr-code <[email protected]>
23 of 39 tasks
4 of 57 tasks
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.
Implements hardware-based admin authentication requiring encrypted USB device with per-license validation. Admin operations fail silently without valid USB present, integrating seamlessly with existing token/JWT authentication.
Core Components
USBAdminAuthenticator- Validates USB presence, license files, hardware binding (machine-id), and signaturesUsage
License File Format
{ "license_key": "THEMIS-ENT-ADMIN-XXXXX", "hardware_id": "550e8400-e29b-41d4-a716-446655440000", "issued_date": "2026-01-01", "expiry_date": "2027-12-31", "admin_scopes": ["admin", "config:write"], "signature": "RSA-SHA256-SIGNATURE" }Platform Support
/etc/machine-idProduction TODOs
Hardware ID fallback fails securely (empty string) rather than using shared static ID.
Additional Changes
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.