Add WS-Security support: UsernameToken, XML Signature, XML Encryption - #34
Closed
rubyjedi wants to merge 0 commit into
Closed
Add WS-Security support: UsernameToken, XML Signature, XML Encryption#34rubyjedi wants to merge 0 commit into
rubyjedi wants to merge 0 commit into
Conversation
rubyjedi
force-pushed
the
feature-ws-security
branch
from
July 16, 2026 02:12
7d8f680 to
172cc37
Compare
Owner
Author
|
This PR's changes were merged into |
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
SOAP::WSSE::UsernameTokenFilter,SignatureFilter, andEncryptionFilter(lib/soap/wssecurity.rb), covering the WS-Security UsernameToken Profile 1.0/1.1 (plain and digested password), XML Signature (SOAP Body, exclusive C14N, RSA-SHA1), and XML Encryption (AES-128-CBC content encryption + RSA-OAEP key transport). soap4r-ng had no WS-Security support of any kind before this.soap4r-ws-security-testbed, sibling project) — unsecured, password (plain/digest × WSS4J/XWSS), signature (WSS4J/XWSS), and encryption (WSS4J/XWSS) — and across the full supported matrix of XML parsers × HTTP client backends.test_ws_security_e2e/, its ownrake test:ws_security_e2etask, kept outsidetest:deepsince it needs the live test server).SignatureFilter#on_inboundverifies a signed response (checking every signedReference's digest, not just the Body's — WSS4J also signs its ownSignatureConfirmationtoken) andEncryptionFilter#on_inbounddecrypts an encrypted response, resolving theEncryptedKeyviaKeyInfoand RSA-OAEP-unwrapping the AES key. Required reconfiguring the live bernardo-mg test server to actually secure its responses (it previously only validated requests).VerificationError) alongside the positive-path tests, which now exercise both directions sinceon_inboundruns automatically.Test plan
test:ws_security_e2etests pass against the live Bernardo-MG server (WSS4J + XWSS, all 9 endpoints, plus a tamper-detection negative test).test:deepsuite (345 tests) passes.git merge-treetrial merges — no conflicts either way.