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
  • 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

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Read only mysql access in cloudron - possible?

Read only mysql access in cloudron - possible?

Scheduled Pinned Locked Moved Feature Requests
6 Posts 2 Posters 834 Views 3 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.
    • dsp76D Offline
      dsp76D Offline
      dsp76
      wrote on last edited by
      #1

      Grafana recommends using a read-only user for accessing mysql databases for reporting. Absolutely valuable recommendation, as it would execute any given sql statement when setting up queries.

      Is there a way to have a restricted access for Grafana?

      I read the instruction from here:
      https://docs.cloudron.io/guides/connect-mysql/#database-credentials

      If there is no way currently, I should add it as a feature request.
      Would be great to have an read only access too.

      (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        Those credentials for the app itself need to be read+write. But I guess your use-case is to use an external mysql within Grafana?

        1 Reply Last reply
        0
        • dsp76D Offline
          dsp76D Offline
          dsp76
          wrote on last edited by
          #3

          Yes - I want to use Grafana, installed via Cloudron, to check some apps' mySQL databases.

          (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            Currently we only create one credentialset for each app using the mysql database. For your use-case only those can be used right now. For monitoring the mysql instance (which is one for all apps) maybe a single read-only credentialset should to be created for grafana, being able to access all database not just per-app. But also that is not supported out of the box right now.

            I will move this to the feature request section then instead.

            1 Reply Last reply
            1
            • nebulonN nebulon moved this topic from Support on
            • dsp76D Offline
              dsp76D Offline
              dsp76
              wrote on last edited by
              #5

              That would make things even easier 😉
              But adding that user is also out of reach for me as Cloudron admin?

              (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #6

                You should be able to create such a user if you operate with the mysql admin credentials which exist in the mysql service container. You can get a terminal into that via docker exec -ti mysql /bin/bash in an SSH session to the host system. However probably don't play around with this in a production system for a start.

                1 Reply Last reply
                1
                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