Charm should create 'admin' account

Bug #1731825 reported by Haw Loeung
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
InfluxDB Charm
Fix Released
High
Paul Collins

Bug Description

Hi,

In order to enforce auth, InfluxDB requires at least one 'admin' account. I think the charm should create this, and then allow retrieval of credentials via juju actions.

We also need to write out ~nagios/.influx-auth with the 'admin' credentials as the nagios check needs this to run 'show diagnostics'.

Related branches

Haw Loeung (hloeung)
Changed in influxdb-charm:
importance: Undecided → Wishlist
Haw Loeung (hloeung)
description: updated
Revision history for this message
Jacek Nykis (jacekn) wrote :

Bumping importance because it's related to monitoring (we need a way to automatically create account for nagios)

Changed in influxdb-charm:
assignee: nobody → Jacek Nykis (jacekn)
importance: Wishlist → High
Jacek Nykis (jacekn)
Changed in influxdb-charm:
status: New → Confirmed
Jacek Nykis (jacekn)
Changed in influxdb-charm:
assignee: Jacek Nykis (jacekn) → nobody
Revision history for this message
Laurent Sesquès (sajoupa) wrote :

This is also needed for backups.
In templates/influxdb-backup, the following line:
DATABASES=$(influx --execute 'show databases' --format=json | jq --raw-output '.results[0].series[0].values[][0]' | grep -ve '^_internal$')
should be updated to add --username [...] --password [...]

Paul Collins (pjdc)
Changed in influxdb-charm:
assignee: nobody → Paul Collins (pjdc)
Haw Loeung (hloeung)
Changed in influxdb-charm:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.