refs #2575 adds grafana user for datasource in postinstall #45

Merged
narenas merged 2 commits from grafana-user into main 2025-08-07 12:06:07 +02:00
Collaborator

Prueba llevada a cabo

MariaDB [(none)]> SELECT User, Host FROM mysql.user;                                                                                                                                                                                                    
+-------------+-----------+                                                                                                                                                                                                                             
| User        | Host      |                                                                                                                                                                                                                             
+-------------+-----------+
| mariadb.sys | localhost |
| mysql       | localhost |
| root        | localhost |
+-------------+-----------+
3 rows in set (0.002 sec)

Creamos el usuario el usuario grafana con password grafana

mariadb -e "                                                                                                                                                                                                     
CREATE USER IF NOT EXISTS 'grafana'@'%' IDENTIFIED BY 'grafana';
GRANT SELECT ON ogcore.* TO 'grafana'@'%';
FLUSH PRIVILEGES;"

Comprobamos que existe y se ha creado correctamente

 mariadb -e "SELECT User, Host FROM mysql.user WHERE User = 'grafana';"
+---------+------+
| User    | Host |
+---------+------+
| grafana | %    |
+---------+------+
root@og-main-dev-ogcore-log-repo:~# mariadb -e "SHOW GRANTS FOR 'grafana'@'%';"
+--------------------------------------------------------------------------------------------------------+
| Grants for grafana@%                                                                                   |
+--------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO `grafana`@`%` IDENTIFIED BY PASSWORD '*6FE1B8EEF0FC656F4A50580649E9CD221BF168FE' |
| GRANT SELECT ON `ogcore`.* TO `grafana`@`%`                                                            |
+--------------------------------------------------------------------------------------------------------+

Prueba llevada a cabo ``` MariaDB [(none)]> SELECT User, Host FROM mysql.user; +-------------+-----------+ | User | Host | +-------------+-----------+ | mariadb.sys | localhost | | mysql | localhost | | root | localhost | +-------------+-----------+ 3 rows in set (0.002 sec) ``` Creamos el usuario el usuario grafana con password grafana ``` mariadb -e " CREATE USER IF NOT EXISTS 'grafana'@'%' IDENTIFIED BY 'grafana'; GRANT SELECT ON ogcore.* TO 'grafana'@'%'; FLUSH PRIVILEGES;" ``` Comprobamos que existe y se ha creado correctamente ``` mariadb -e "SELECT User, Host FROM mysql.user WHERE User = 'grafana';" +---------+------+ | User | Host | +---------+------+ | grafana | % | +---------+------+ root@og-main-dev-ogcore-log-repo:~# mariadb -e "SHOW GRANTS FOR 'grafana'@'%';" +--------------------------------------------------------------------------------------------------------+ | Grants for grafana@% | +--------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO `grafana`@`%` IDENTIFIED BY PASSWORD '*6FE1B8EEF0FC656F4A50580649E9CD221BF168FE' | | GRANT SELECT ON `ogcore`.* TO `grafana`@`%` | +--------------------------------------------------------------------------------------------------------+ ```
lgromero added 1 commit 2025-08-07 11:58:57 +02:00
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main There was a failure building this commit Details
9d6ef41f02
refs #2575 adds grafana user for datasource in postinstall
narenas was assigned by lgromero 2025-08-07 12:01:15 +02:00
lgromero added 1 commit 2025-08-07 12:05:15 +02:00
testing/ogcore-api/pipeline/pr-main Build started... Details
d63bc2d798
refs #2575 updates CHANGELOG
narenas merged commit 1d366bd7ff into main 2025-08-07 12:06:07 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: opengnsys/ogcore#45
There is no content yet.