-
Notifications
You must be signed in to change notification settings - Fork 907
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
Backports and gomod dependency updates (stable-5.21) #13244
Commits on Apr 2, 2024
-
test/lint/client-imports: rename godeps.list file
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 2c2f513 - Browse repository at this point
Copy the full SHA 2c2f513View commit details -
test/lint/client-imports: export LC_ALL for predictable sorting
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 9fc35bf - Browse repository at this point
Copy the full SHA 9fc35bfView commit details -
test/lint: add lxd-agent-imports
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 8a371ca - Browse repository at this point
Copy the full SHA 8a371caView commit details -
Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 7c989fb - Browse repository at this point
Copy the full SHA 7c989fbView commit details -
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 9689f89 - Browse repository at this point
Copy the full SHA 9689f89View commit details -
lxd/api_metrics: Check individual project permissions if set
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 5ea61b2 - Browse repository at this point
Copy the full SHA 5ea61b2View commit details -
lxd/metrics: Use label aware permission check when filtering samples
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for fdaeef9 - Browse repository at this point
Copy the full SHA fdaeef9View commit details -
lxd/api_metrics: Filter metrics by looping only once
This way we can apply multiple filters on internal server and project metrics at once. Additionally this ensures that entity URLs are always called with the right type. Otherwise this will raise a warning for every sample. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for fa6116e - Browse repository at this point
Copy the full SHA fa6116eView commit details -
lxd/auth/driver_tls: Allow viewing metrics for unrestricted metrics c…
…erts Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 645d832 - Browse repository at this point
Copy the full SHA 645d832View commit details -
lxd/db/cluster: Add identityTypeCertificateMetricsRestricted and iden…
…tityTypeCertificateMetricsUnrestricted This effectively replaces identityTypeCertificateMetrics with identityTypeCertificateMetricsRestricted and adds the new type identityTypeCertificateMetricsUnrestricted. By replacing identityTypeCertificateMetrics with identityTypeCertificateMetricsRestricted we ensure that restricted metrics certificates that were falsely moved to identityTypeCertificateMetrics are still considered to be secure. On the other side this marks unrestricted certificates as restricted by default. This has to be manually modified by unrestricting the respective metrics certficiate. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 5e5f4e9 - Browse repository at this point
Copy the full SHA 5e5f4e9View commit details -
lxd/db/cluster/identities: Handle unrestricted metrics certificates
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for e5d4476 - Browse repository at this point
Copy the full SHA e5d4476View commit details -
shared/api/auth: Replace IdentityTypeCertificateMetrics with a restri…
…cted and unrestricted type Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 1be949f - Browse repository at this point
Copy the full SHA 1be949fView commit details -
lxd/daemon: Use IdentityTypeCertificateMetricsRestricted and Identity…
…TypeCertificateMetricsUnrestricted Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for fe6b6ba - Browse repository at this point
Copy the full SHA fe6b6baView commit details -
lxd/db/cluster/certificates: Use IdentityTypeCertificateMetricsRestri…
…cted and IdentityTypeCertificateMetricsUnrestricted Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 1a60684 - Browse repository at this point
Copy the full SHA 1a60684View commit details -
lxd/identity: Use IdentityTypeCertificateMetricsRestricted and Identi…
…tyTypeCertificateMetricsUnrestricted Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 024c122 - Browse repository at this point
Copy the full SHA 024c122View commit details -
lxd/auth/openfga: Extend can_view_metrics entitlement to projects
This allows granting the can_view_metrics entitlement on specific projects so that requests to the metrics endpoint containing the project query parameter only return the respective project's metrics. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for f4db647 - Browse repository at this point
Copy the full SHA f4db647View commit details -
lxd/db/cluster/update: Fix updateFromV69
Ensure that restricted certificates are mapped to IdentityTypeCertificateMetricsRestricted and vice versa. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for da71678 - Browse repository at this point
Copy the full SHA da71678View commit details -
test/suites/auth: Update test to account for can_view_metrics
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for aab49aa - Browse repository at this point
Copy the full SHA aab49aaView commit details -
test/suites/metrics: Add restricted and unrestricted certificate tests
Additionally check the responses if the endpoint gets queried using the project parameter as this is producing different results for restricted and unrestricted metrics certificates. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 9c3d5d2 - Browse repository at this point
Copy the full SHA 9c3d5d2View commit details -
shared: Return new structure from
ParseLXDFileHeaders
In preparation for canonical#13193; makes it less gross to return additional fields. This also allows ParseLXDFileHeaders to return error and validates the values of the `X-LXD-*` headers Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 7896e0a - Browse repository at this point
Copy the full SHA 7896e0aView commit details -
lxd: Refactor calls to
shared.ParseLXDFileHeaders
Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 3d8cbf0 - Browse repository at this point
Copy the full SHA 3d8cbf0View commit details -
client: Refactor calls to
shared.ParseLXDFileHeaders
Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 62da816 - Browse repository at this point
Copy the full SHA 62da816View commit details -
api: Add
instances_files_modify_permissions
extensionSigned-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 619ae2a - Browse repository at this point
Copy the full SHA 619ae2aView commit details -
shared: Parse
X-LXD-modify-perm
headerSigned-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 52699b3 - Browse repository at this point
Copy the full SHA 52699b3View commit details -
lxd: Allow setting permissions for existing files via API
Implements the `instances_files_permissions` api extension Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 3e75d74 - Browse repository at this point
Copy the full SHA 3e75d74View commit details -
client: Send
X-LXD-modify-perm
on file POSTSigned-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 9cfde0e - Browse repository at this point
Copy the full SHA 9cfde0eView commit details -
lxc/file: Set ModifyExisting when --mode, --uid, or --gid are passed
Fixes canonical#12724 Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for b64aa4b - Browse repository at this point
Copy the full SHA b64aa4bView commit details -
Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for a6d61cf - Browse repository at this point
Copy the full SHA a6d61cfView commit details -
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 061b563 - Browse repository at this point
Copy the full SHA 061b563View commit details -
incusd/instance/qemu: Set auto-converge on all migrations
Signed-off-by: Stéphane Graber <stgraber@stgraber.org> (cherry picked from commit 26ea414cf2fcc70101d929cb42b180a77825de31) Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com> License: Apache-2.0
Configuration menu - View commit details
-
Copy full SHA for 91bf8fa - Browse repository at this point
Copy the full SHA 91bf8faView commit details -
incusd/device/disk: Remove bad comment
Signed-off-by: Stéphane Graber <stgraber@stgraber.org> (cherry picked from commit 19e428ced76907c21fd2eb19f8e34a848b09fa7e) Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com> License: Apache-2.0
Configuration menu - View commit details
-
Copy full SHA for 7002db0 - Browse repository at this point
Copy the full SHA 7002db0View commit details -
lxc/config/default: Add images remote for images.lxd.canonical.com
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 7d3ae3e - Browse repository at this point
Copy the full SHA 7d3ae3eView commit details