Skip to content
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

Return content type in header response for /ksql endpoint #10336

Open
vpapavas opened this issue May 7, 2024 · 0 comments
Open

Return content type in header response for /ksql endpoint #10336

vpapavas opened this issue May 7, 2024 · 0 comments

Comments

@vpapavas
Copy link
Member

vpapavas commented May 7, 2024

Describe the bug
We added the content type in the response of the \query endpoint (#9282) but did not apply the change to the other endpoints. We need to apply it to all endpoints so that users can do the following:

If one wants to disable HSTS headers, they would try

response.http.headers.config=add Strict-Transport-Security: max-age=63072000

The expectation is that we would see strict-transport-security: max-age=63072000 in the response HTTP headers, as an example for broker:

curl -k -i https://localhost:8090/kafka/v3/clusters
HTTP/2 200
date: Tue, 20 Feb 2024 19:08:03 GMT
strict-transport-security: max-age=63072000
content-type: application/json
vary: Accept-Encoding, User-Agent

I do not see it for ksqlDB:

curl -k -i https://localhost:8088/info
HTTP/2 200
content-type: application/json
content-length: 132

{"KsqlServerInfo":{"version":"7.4.1","kafkaClusterId":"oIXR8Hc-Qxq4_-rA7XN1-w","ksqlServiceId":"default_","serverStatus":"RUNNING"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant