dongjoon-hyun opened a new pull request, #472:
URL: https://github.com/apache/spark-kubernetes-operator/pull/472

   ### What changes were proposed in this pull request?
   
   This PR aims to improve HTTP response security.
   
   ### Why are the changes needed?
   
   To improve HTTP response by 
   
   1. Adding an explicit default handler
   2. Adding a set of default headers.
   
   ```
   $ curl -vv http://localhost:19091/
   * Host localhost:19091 was resolved.
   * IPv6: ::1
   * IPv4: 127.0.0.1
   *   Trying [::1]:19091...
   * Connected to localhost (::1) port 19091
   > GET / HTTP/1.1
   > Host: localhost:19091
   > User-Agent: curl/8.7.1
   > Accept: */*
   >
   * Request completely sent off
   < HTTP/1.1 404 Not Found
   < X-frame-options: DENY
   < Date: Mon, 26 Jan 2026 07:32:29 GMT
   < Content-security-policy: default-src 'none'
   < Transfer-encoding: chunked
   < Content-type: text/plain; charset=utf-8
   < X-content-type-options: nosniff
   < Cache-control: no-cache, no-store, must-revalidate
   <
   * Connection #0 to host localhost left intact
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No behavior change excepts the read-only HTTP responses.
   
   ### How was this patch tested?
   
   Manual review.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes (`Opus 4.5` on `Claude Code v2.1.5`)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to