Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Mask addon credentials in app task logs

Mask addon credentials in app task logs

Scheduled Pinned Locked Moved Solved Support
serviceslogs
3 Posts 2 Posters 179 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • marcusquinnM
    marcusquinnM
    marcusquinn
    CA Maintainer Super Fan
    wrote last edited by marcusquinn
    #1

    When an app is installed or updated, the app log includes lines like:

    services: Setting postgresql addon config to [{"name":"CLOUDRON_POSTGRESQL_URL","value":"postgres://<user>:<password>@postgresql/<db>"},{"name":"CLOUDRON_POSTGRESQL_PASSWORD","value":"<password>"},...]
    services: Setting sendmail addon config to [...{"name":"CLOUDRON_MAIL_SMTP_PASSWORD","value":"<password>"}...]
    

    Only admins and operators can see these (including AI sessions), and they can already read the environment, so this isn't an access problem.

    But app logs are what people paste into forum posts and support requests, and AI sessions logs can be mined — and these lines sit in the middle of normal startup output.

    Could the values be masked in those debug lines (for example "value":"***" for passwords and URL userinfo), keeping just the variable names?

    Web Design & Development: https://www.evergreen.je
    Technology & Apps: https://www.marcusquinn.com

    1 Reply Last reply
    1
    • girishG
      girishG
      girish
      Staff
      wrote last edited by
      #2

      Those credentials only work internally on the server and cannot be used from outside. But OK, we can hide them since we don't really use those lines for debugging.

      1 Reply Last reply
      2
      • girishG
        girishG
        girish
        Staff
        wrote last edited by
        #3

        It's gone.

        1 Reply Last reply
        2
        • girishG girish has marked this topic as solved

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search