-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[POLICY_STORE] Improvements Policy Store input validation #528
Comments
what about validating policyid? allowed pattern? Improper Output Neutralization for Logs CWE ID 117
|
relates to #555 |
Pull RequestOutcomePolicy Store allows only BPNL numbers (no BPNA / BPNS or input with is not BPNL schema conform):
Registration of policy with no validUntil fails:
Registration of policy with validUntil in the past fails:
Registration of policy with no payload (policy) should fail:
Validation of policyId (as policyId is used as path parameter we allow only safe path parameter characters):
Registering a duplicate policy for same BPNL fails (no comparison of content required according to @mkanal):
Todos:
|
in order to deduplicate common test code
…r characters New pattern "[a-zA-Z0-9\-_~.:]+" (safe path variable characters). Reason: Avoid problems with too strict validation.
…ut-Validation-Improve feat(impl): [#528] Improvements Policy Store Input Validation
all cucumber tests in main successful:
@ds-kgassner -> ready for test |
Successfully tested - approved from my side |
@mkanal -> ready for PO review |
LGFM. PO acceptance in behalf of @jzbmw |
…-and-logs feat(impl):[TRI-1610] change logic and add logs
As product
I want to allow only valid parameters in policy store
so that we have the highest level of security
Link
Hints / Details
Acceptance Criteria
Out of Scope
The text was updated successfully, but these errors were encountered: