`juju offers` should not give an error when there are inaccessible offers

Bug #1754748 reported by james beedy on 2018-03-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
High
Unassigned

Bug Description

When a user runs `juju offers` on a model for which they are not granted permissions on the endpoint they get a cryptic and broken feeling message.

$ juju offers --debug | https://paste.ubuntu.com/p/JVY45WQNsJ/

Can we get a more consumable and understandable error message here that directs the user to the next step please instead of just broken juju.

thx

John A Meinel (jameinel) wrote :

Is the issue that there is an offer in bdx/daniel-redis, but they shouldn't even have visibility on it (much less getting a NotFound error).
Or is the client currently switched to a model that they don't have access to?

Changed in juju:
importance: Undecided → High
status: New → Triaged
tags: added: cross-model usability
summary: - `juju offers` pushes cryptic and broken user facing message
+ `juju offers` should not give an error when there are inaccessible
+ offers
John A Meinel (jameinel) wrote :

I believe the intent is that offers that you cannot consume should just be treated as not there. The alternative would be to show them, but specifically flag them as "you don't have rights to consume this".

The latter is a little more discoverable, but has some issues with information leakage. (should you be able to see all the offers that other people are sharing, even if they aren't sharing it with you?)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers