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

Add ability to pass TLS certs and keys inline #349

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

fayzal-g
Copy link
Contributor

@fayzal-g fayzal-g commented Aug 7, 2023

What this PR does:
With prometheus/exporter-toolkit#158, it is now possible to pass forward TLS certificates and keys inline as part of the TLSConfig for the Server.

This PR also extends the TLSConfig within Server.go to allow the TLS certificate, private key and client CAs to be passed inline as a string. The content of this string is expected to be exactly the same as a file, a PEM-encoded sequence of bytes. All parameters are then passed forward to web.TLSConfig within prometheus/exporter-toolkit as before.

Checklist

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

@fayzal-g fayzal-g marked this pull request as ready for review August 7, 2023 10:01
@fayzal-g fayzal-g merged commit e772133 into main Aug 8, 2023
@fayzal-g fayzal-g deleted the pass-server-tls-certs-inline branch August 8, 2023 15:23
MichelHollands added a commit to grafana/loki that referenced this pull request Aug 14, 2023
**What this PR does / why we need it**:

This PR upgrades `github.com/grafana/dskit` removes Loki's dependency on
`github.com/weaveworks/common`.

The changes in dskit, apart from the migration
(grafana/dskit#356), are:

* grafana/dskit#347 
* grafana/dskit#349, which required small
changes in `pkg/canary/reader/reader.go` and `pkg/canary/writer/push.go`
* grafana/dskit#352
* grafana/dskit#354

**Which issue(s) this PR fixes**:

(none)

**Special notes for your reviewer**:

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [n/a] Documentation added
- [n/a] Tests updated
- [n/a] `CHANGELOG.md` updated
- [n/a] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [n/a] Changes that require user attention or interaction to upgrade
are documented in `docs/sources/setup/upgrade/_index.md`
- [n/a] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e)

---------

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants