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

Custom HTTP Headers #633

Closed
wants to merge 6 commits into from

Conversation

SpencerTorres
Copy link
Collaborator

Allows adding custom HTTP headers. (Requested in #626)

  • All header names are saved to jsonData.
  • Plain text header values are saved to jsonData.
  • Secure header values are saved to secureJsonData.

Includes frontend + backend changes.

Also includes some label updates to the config page when selecting a port.

New HTTP Headers section

@SpencerTorres SpencerTorres requested a review from a team as a code owner December 15, 2023 20:20
@SpencerTorres SpencerTorres requested review from asimpson, bossinc, aangelisc and adamyeats and removed request for a team December 15, 2023 20:20
@SpencerTorres SpencerTorres added enhancement New feature or request effort/medium labels Dec 15, 2023
@adamyeats
Copy link
Contributor

@SpencerTorres Thanks for this! It looks like there's a bunch of extra historical commits on this branch, would you be able to look into this?

@SpencerTorres
Copy link
Collaborator Author

SpencerTorres commented Dec 18, 2023

This was developed on the v4 branch which is what I'm merging in to. The file changes look correct, but I think all the commits were squashed in that first v4.x PR

edit: Did some git surgery and removed the un-squashed commits

Copy link
Collaborator

@jkaflik jkaflik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left one detail, but it's quite important.

BTW should this be mentioned in README? Would be great if we mention how to use it in JSON configuration: https://github.com/grafana/clickhouse-datasource?tab=readme-ov-file#with-a-configuration-file

pkg/plugin/settings.go Outdated Show resolved Hide resolved
Copy link
Contributor

@asimpson asimpson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one UI thing that needs to be fixed.

🚀 Looks great aside from that

src/components/configEditor/HttpHeadersConfig.tsx Outdated Show resolved Hide resolved
src/views/CHConfigEditorHooks.ts Show resolved Hide resolved
@SpencerTorres
Copy link
Collaborator Author

Fixed the input box width for small screens, thanks!

@asimpson
Copy link
Contributor

asimpson commented Feb 1, 2024

Closing since this was included in #666

@asimpson asimpson closed this Feb 1, 2024
@SpencerTorres SpencerTorres deleted the custom-http-headers branch June 17, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants