-
Notifications
You must be signed in to change notification settings - Fork 931
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
Auth: Untangle auth entity types and functions from the driver implementations #13551
Conversation
Heads up @ru-fu - the "Documentation" label was applied to this issue. |
LGTM in principle. The lxd-agent dep list needs a slight update for the new deps. The mini-oidc seems to need to be switched from "github.com/go-jose/go-jose/v3" to "github.com/go-jose/go-jose/v4". |
77a2e82
to
a4f8db0
Compare
dc092fb
to
27989a5
Compare
…unctions into own package To avoid unnecessary dependencies elsewhere. Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…essary dependencies elsewhere Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Changes references of github.com/canonical/lxd/lxd/auth to github.com/canonical/lxd/lxd/auth/entity Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…odule Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…me changes Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
And updates for other change. Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…unexported type *storage.multiStorage, which can be annoying to use linter warning Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…oidc.Error Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…ops (revive) as this is intended As per comment. Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
10bc181
to
f4ffb34
Compare
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the non-Go bits and it LGTM, thanks!
Ill merge for now and can change if mark sees some issues |
@tomponline what was the import path that pulled the For the sake of import naming I would consider a pattern more like we have in |
I agree, but didn't really have time to start a wide ranging refactor of how auth was implemented - but not against your proposal at all. IIRC correctly lxd-agent was pulling in |
Yeah fair enough. I'm happy to make an attempt. It would lead to fewer merge conflicts when rebasing #13262 |
Thanks. As long as the lxd-agent import list remains as it is, or gets smaller :) |
Additionally, move entitlement definitions out of `auth/entity` and back into the `auth` package. This performs the same function as canonical#13551 but has more intuitive package naming. Signed-off-by: Mark Laing <mark.laing@canonical.com>
Additionally, move entitlement definitions out of `auth/entity` and back into the `auth` package. This performs the same function as canonical#13551 but has more intuitive package naming. Signed-off-by: Mark Laing <mark.laing@canonical.com>
This avoids the driver implementation dependencies (such as openfga) being built where they are not needed.
This stops openfga packages being used by the lxd-agent binary (which we previously avoided using build tags workaround).
Also bumps Go to 1.22.3 and updates go mod dependencies.