When I connect Logtail to an application in the App Platform, it adds the following to my App Spec:
log_destinations:
- logtail:
token: XXXXXXXXXX
name: syslogs
The token is in clear text, unlike encrypted environment variables.
Can I include this in a public project that’s shared with others, or is this token supposed to be considered secret?
If it’s supposed to be secret, is there a way to encrypt it so I can include my App Spec in a public repository?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey Ben,
That’s a great question, and it’s good that you’re thinking about security in your App Spec files.
From what I’ve gathered, the Logtail token should indeed be treated as a secret. While it’s currently displayed in clear text within the App Spec, it’s important to avoid sharing this token publicly, such as in a public repository. Exposing this token could potentially allow unauthorized access to your log data.
I’ve reached out to the team at DigitalOcean and shared your feedback.
However, for the time being, it’s best to keep that token private and avoid including it in any publicly shared files.
If you need to share your App Spec in a public project, I would recommend using a placeholder for the token and providing the actual token through a more secure channel, such as a private environment variable or a secrets management tool.
It looks like someone has had the same idea before and has posted it on the DigitalOcean Product Ideas board. The best thing to do would be to head over and add your vote to it, as well as adding any additional information in the comments for exactly what you’d like to see implemented!
I also just upvoted that idea as well.
Let me know if you have any other questions.
- Bobby