Promreg allows registering a target with no name

Bug #1673151 reported by Tim Kuhlman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Prometheus Registration
Fix Committed
Low
Tim Kuhlman

Bug Description

When working with the API manually it was found that
curl -is -H 'Accept: application/json' -H 'AuthToken: <redacted>' --data-binary '{"comment": "Added by charm snap-build", "labels": {"environment":"staging"}' http://promreg.server:12321/targets/

actually worked and in the targets.yaml there was an entry with an empty target set.

Tim Kuhlman (timkuhlman)
Changed in prometheus-registration:
assignee: nobody → Tim Kuhlman (timkuhlman)
Tim Kuhlman (timkuhlman)
Changed in prometheus-registration:
status: New → In Progress
Tim Kuhlman (timkuhlman)
Changed in prometheus-registration:
importance: Undecided → Low
status: In Progress → Fix Committed
Paul Gear (paulgear)
description: updated
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.