Repository navigation
Port crypto_service updates from dms-be: pki merge, bug fixes, auth, ops - #3
Merged
Merged
Conversation
- standalone key export fix in exp_key (empty pk returns LMK key) - base64url padding tolerance in common/utils/crypto.py - TR-34 CMS fix: wrap EnvelopedData in ContentInfo(id-envelopedData) - merge standalone pki_service into crypto_service (/v1/serv cert/crl) - add auth middleware (get_current_user, optional/permissive for public use) - add common/config.py, common/schema.py (KeyType incl. IPEK), UnAuth/Forbidden exceptions - ops: python 3.14, uvicorn header-limit flag, urllib healthcheck, dep bumps - remove pki_service; update scripts/compose/CI/sonar/config - port dms crypto/pki tests (unit, integration, e2e) + common/adapter/csr_gen.py
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.
Summary
Brings the latest
crypto_servicechanges from the internaldms-berepo into fmcrypto (the public version was ~1 year behind).What's included
exp_key: standalone export whenpkis empty (returns key in LMK format, no wrapping)urlsafe_b64decode: tolerate missing base64url padding (Android NO_PADDING fix)ContentInfo(id-envelopedData)insideid-dataeContent (fixes on-device "Malformed content"/digest mismatch)/v1/servendpoints (POST/PUT /cert,POST /crl); standalonepki_service/removed; scripts/compose/CI/sonar updatedcommon/middlewares/auth.py,common/config.py,common/schema.py(KeyType incl. IPEK),UnAuthException/ForbiddenException; routers useget_current_user(...). Permissive mode: anonymous requests allowed, credentials validated when present--h11-max-incomplete-event-size 65536(431 fix), urllib healthcheck, dependency bumpscommon/adapter/csr_gen.pyExcluded (intentionally)
adapter/at,adapter/ps,app/utils/connector.py(dms platform-specific)sqlalchemydep and DB-related exception handlingVerification