Skip to content

Add support for security.tags and exposure to OpenFGA - #4049

Merged
presztak merged 14 commits into
lxc:mainfrom
stgraber:main
Sep 22, 2026
Merged

presztak merged 14 commits into
lxc:mainfrom
stgraber:main

Conversation

@stgraber

Copy link
Copy Markdown
Member

This adds a new comma separate security.tags key on the instances and when using OpenFGA, maps it to a new security_tag object. This by itself doesn't do anything but what it does is expose those tags within the OpenFGA model, making it possible for external authorization provisioning tools to look at instances and know the tags that are applied to them.

Such tools typically exclusively work against the OpenFGA data with no direct access to Incus. Up until this point, all they could do was look at instance and project names and inject tuples based on that. With this extra option, they can now also consider security tags applied to the instances.

It's up to the external tool whether to trust those tags and whether to trust them globally or just for a particular project, Incus just exposes the value.

@github-actions github-actions Bot added Documentation Documentation needs updating API Changes to the REST API labels Sep 21, 2026
Comment thread internal/server/auth/driver_openfga.go Resolved
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Closes lxc#4006

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber

Copy link
Copy Markdown
Member Author

@presztak that should take care of the review feedback

@presztak
presztak merged commit 76acc22 into lxc:main Sep 22, 2026
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Changes to the REST API Documentation Documentation needs updating

Development

Successfully merging this pull request may close these issues.

2 participants