Question

Should the logtail token be treated as a secret?

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?

Show comments

Submit an answer


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!

Sign In or Sign Up to Answer

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!

https://ideas.digitalocean.com/app-platform/p/encrypted-log-forwarding-api-keys

I also just upvoted that idea as well.

Let me know if you have any other questions.

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more