User secrets return a permission error rather than not found when permissions are missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
High
|
Jordan Barrett |
Bug Description
Normally with secrets, I can't tell if the secret doesn't exist or I don't have permission to access it. For example, here this is a valid secret, but the charm only has view permission (the same happens with charm secrets with only view, or with `secret-get` and charm secrets where there's no grant):
```
root@secretconf
ERROR secret "cpaj0kvmp25c76
```
However, with a user secret that the charm doesn't have access to, Juju leaks to me that the secret exists but I don't have permission to see it (if it doesn't exist then I get the expected "not found"):
```
root@secretconf
ERROR permission denied
```
There is an [ops bug](https:/
Changed in juju: | |
milestone: | none → 3.4.4 |
tags: | added: secrets |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju: | |
assignee: | nobody → Jordan Barrett (barrettj12) |
Changed in juju: | |
status: | In Progress → Invalid |
https:/ /github. com/juju/ juju/pull/ 17467