-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secret ownership fixes #86
Conversation
PietroPasotti
commented
Nov 20, 2023
- uniform Secret.owner = app | Secret.granted = app
- validate ownership on write paths and grantedness on read paths
todo: figure out if 'owner=app' means something different in terms of who can read and what non-leaders can read. |
See also canonical/operator#1067. Juju is changing how secret-get works (for secrets owners to work more like secret observers with "refresh" and so on). We're updating ops to that approach (ahead of the Juju change). |
@benhoyt added a switch to toggle that behaviour if juju_version<3.2 |
The problem I see with that is that it seems like Juju isn't really semver? If it was, then the "owner always peeks" removal would be going into 4.0 and not any 3.x. But if I understand correctly, it's not even being introduced in a minor version but in multiple patch ones. It's before my time, but it looks like I do think it would be great to have something better than having lots of |
Let's keep it in the back of our heads, something will come up eventually |
@benhoyt @tonyandrewmeyer I refactored the access control logic based on my latest findings It should be correct now. |
One more thing: Then I realized we can strip that whole concept completely: it doesn't make sense to put a Secret in This is a BC change so far as the API is concerned, I added a deprecation notice for @tonyandrewmeyer major vbump? |
👍
Imo, yes. |