5 Commits

Author SHA1 Message Date
Miguel Pires
047639426b o/h/ctlcmd: support reading registry views in snapctl (#14120)
Adds registry support to `snapctl get` so snaps can access registry
views, if they have a matching connected plug for the view and if the
registry assertion can be found.

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2024-07-04 11:46:12 +02:00
Miguel Pires
283f8abb6b i/builtin: add registry interface (#14113)
* i/builtin: add registry interface

Add a registry interface that snaps can use to access a particular
registry view.

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>

* registry: constrain registry name

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>

---------

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2024-06-27 11:15:13 +02:00
Miguel Pires
ae2077b813 registry: validate view names on registry creation (#14096)
When creating registries, constrain view names to a simpler pattern
(like the storage path elements).

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2024-06-21 09:09:50 +01:00
Miguel Pires
5d73ed0590 registry: restrict path patterns (#14090)
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2024-06-17 19:17:40 +01:00
Miguel Pires
8128ed20bb many: rename aspect/bundle to view/registry
This changes the naming of the aspects feature to be "registry" instead
of bundle (i.e., a configuration space backed with its own storage) and
"view" instead of aspect. Once this lands, anyone that has this enabled
needs to unset the experimental flag and rename the state entry before
refreshing snapd and then re-enable.

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2024-06-17 17:16:57 +02:00