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

tempo-query: separate tls settings for server and client #4177

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

frzifus
Copy link
Contributor

@frzifus frzifus commented Oct 11, 2024

What this PR does:
This PR extends tempo-query with the possibility to configure tls for server and client individually.

cc @pavolloffay

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@@ -11,6 +11,7 @@ type Config struct {
Address string `yaml:"address"`
Backend string `yaml:"backend"`
TLSEnabled bool `yaml:"tls_enabled" category:"advanced"`
TLSServerEnabeld bool `yaml:"tls_server_enabled" category:"advanced"`
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make some comments for TLSEnabled and TLSServerEnabled ?

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
@pavolloffay
Copy link
Contributor

@frzifus once this is merged please open a PR to backport it to release-v2.6 branch

@joe-elliott joe-elliott merged commit a2f70c9 into grafana:main Oct 14, 2024
16 checks passed
@joe-elliott joe-elliott added backport release-v2.6 type/bug Something isn't working labels Oct 14, 2024
Copy link
Contributor

Hello @joe-elliott!
Backport pull requests need to be either:

  • Pull requests which address bugs,
  • Urgent fixes which need product approval, in order to get merged,
  • Docs changes.

Please, if the current pull request addresses a bug fix, label it with the type/bug label.
If it already has the product approval, please add the product-approved label. For docs changes, please add the type/docs label.
If the pull request modifies CI behaviour, please add the type/ci label.
If none of the above applies, please consider removing the backport label and target the next major/minor release.
Thanks!

Copy link
Contributor

The backport to release-v2.6 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-4177-to-release-v2.6 origin/release-v2.6
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x a2f70c975850ac4ad31c8d92a11f85bf74a945e4

When the conflicts are resolved, stage and commit the changes:

git add . && git cherry-pick --continue

If you have the GitHub CLI installed:

# Push the branch to GitHub:
git push --set-upstream origin backport-4177-to-release-v2.6
# Create the PR body template
PR_BODY=$(gh pr view 4177 --json body --template 'Backport a2f70c975850ac4ad31c8d92a11f85bf74a945e4 from #4177{{ "\n\n---\n\n" }}{{ index . "body" }}')
# Create the PR on GitHub
echo "${PR_BODY}" | gh pr create --title '[release-v2.6] tempo-query: separate tls settings for server and client' --body-file - --label 'type/bug' --label 'backport' --base release-v2.6 --milestone release-v2.6 --web

Or, if you don't have the GitHub CLI installed (we recommend you install it!):

# Push the branch to GitHub:
git push --set-upstream origin backport-4177-to-release-v2.6

# Create a pull request where the `base` branch is `release-v2.6` and the `compare`/`head` branch is `backport-4177-to-release-v2.6`.

# Remove the local backport branch
git switch main
git branch -D backport-4177-to-release-v2.6

joe-elliott pushed a commit that referenced this pull request Oct 15, 2024
* tempo-query: separate tls settings for server and client

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

* tempo-query: add changelog and comments to config

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

---------

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
(cherry picked from commit a2f70c9)
joe-elliott added a commit that referenced this pull request Oct 15, 2024
* tempo-query: separate tls settings for server and client

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

* tempo-query: add changelog and comments to config

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

---------

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
(cherry picked from commit a2f70c9)

Co-authored-by: Ben B <bongartz@klimlive.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants