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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.