[
https://issues.apache.org/jira/browse/KNOX-3625?focusedWorklogId=1057732&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1057732
]
ASF GitHub Bot logged work on KNOX-3625:
----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Nov/26 21:55
Start Date: 30/Nov/26 21:55
Worklog Time Spent: 10m
Work Description: smolnar82 opened a new pull request, #1556:
URL: https://github.com/apache/knox/pull/1556
[KNOX-3625](https://issues.apache.org/jira/browse/KNOX-3625) - Fix WebAppSec
X-Frame-Options and security header filter configuration
## What changes were proposed in this pull request?
Configuration cleanup in the WebAppSec provider:
- X-Frame-Options: the parameter names in the code, unit tests and docs are
aligned. The previous name is still accepted.
- Security header filter: configuration through the deployment contributor
is fixed. The previous name is still accepted. The filter is now documented in
`config_webappsec_provider.md`.
## How was this patch tested?
- `mvn -pl gateway-provider-security-webappsec verify` passes, including
checkstyle, PMD and spotbugs.
- New `WebAppSecContributorTest` tests contribute the filters from provider
params, then load, initialize and run them the way `GatewayFilter` does.
- `XFrameOptionsFilterTest` covers both parameter names.
## Integration Tests
None added. The new unit tests run the contributed filters with the
deployment contributor's params.
## Performance implications
None. Only filter configuration changes, and it is read once in `init()`.
The per-request code is unchanged.
Issue Time Tracking
-------------------
Worklog Id: (was: 1057732)
Remaining Estimate: 0h
Time Spent: 10m
> Fix WebAppSec X-Frame-Options and security header filter configuration
> ----------------------------------------------------------------------
>
> Key: KNOX-3625
> URL: https://issues.apache.org/jira/browse/KNOX-3625
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Minor
> Fix For: 3.1.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The WebAppSec provider's configuration handling for the following filters
> needs to be cleaned up:
> * X-Frame-Options: align the parameter names between the code, the unit tests
> and the documentation.
> * Security header filter: fix how the filter is configured through the
> deployment contributor and document its configuration.
> Add test coverage at the deployment contributor level for both.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)