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

Move TLS cert to a better location #216

Open
dstathis opened this issue Jul 6, 2023 · 2 comments
Open

Move TLS cert to a better location #216

dstathis opened this issue Jul 6, 2023 · 2 comments

Comments

@dstathis
Copy link
Contributor

dstathis commented Jul 6, 2023

Bug Description

We need to move the TLS cert and key to a better location than /tmp. Somewhere such as /etc/grafana-agent/. This needs to be done in both charms, however, for the machine charm we can only do this once the snap is modified to allow reading from a different location.

To Reproduce

Environment

Relevant log output

-

Additional context

No response

@lucabello
Copy link
Contributor

We should be able to already put it in the grafana-agent snap folder; that folder should also be accessible by the charm.

@dstathis
Copy link
Contributor Author

We can put the certs in a different place for machine and k8s. For the machine charm we should use $SNAP_DATA similarly to what we did for positions_dir.

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

3 participants