[
https://issues.apache.org/jira/browse/HBASE-27811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716980#comment-17716980
]
Yash Dodeja edited comment on HBASE-27811 at 4/27/23 6:30 AM:
--------------------------------------------------------------
Made changes in addNoCacheFilter, added logic to read the config and pass it
on. Also, added no cache filter to the logs app context. In NoCacheFilter,
there is a check forĀ
hbase.http.filter.no-store.enable and if it is true, max age is set as 0 for
backward compatibility.
was (Author: JIRAUSER299009):
Made changes in addNoCacheFilter, added logic to read the config and pass it
on. Also, added no cache filter to the logs app context. In NoCacheFilter,
there is a check forĀ
hadoop.http.filter.no-store.enable and if it is true, max age is set as 0 for
backward compatibility.
> Enable cache control for logs endpoint and set max age as 0
> -----------------------------------------------------------
>
> Key: HBASE-27811
> URL: https://issues.apache.org/jira/browse/HBASE-27811
> Project: HBase
> Issue Type: Improvement
> Reporter: Yash Dodeja
> Assignee: Yash Dodeja
> Priority: Minor
>
> Not setting the proper header values may cause browsers to store pages within
> their respective caches. On public, shared, or any other non-private
> computers, a malicious person may search through the browser cache to locate
> sensitive information cached during another user's session.
> /logs endpoint contains sensitive information that an attacker can exploit.
> Any page with sensitive information needs to have the following headers in
> response:
> Cache-Control: no-cache, no-store, max-age=0
> Pragma: no-cache
> Expires: -1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)