Skip to content

Commit

Permalink
lxd/instances: Don't bypass instance limit check (from Incus) (#14021)
Browse files Browse the repository at this point in the history
User reported in lxc/incus#463 that project
limits were not being enforced on the cluster member in direct
communication with the client during instance creation.

~I also noticed that the limit checks were being skipped based on the
value of the [`User-Agent`
header](d6871e4),
which is spoofable. This pushes the limits check back to the target
cluster member.~

Contains cherry-picks from lxc/incus#505
  • Loading branch information
tomponline authored Sep 4, 2024
2 parents 156f1ce + 05c5aff commit 7374739
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lxd/instances_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,8 +1238,6 @@ func instancesPost(d *Daemon, r *http.Request) response.Response {
if err != nil {
return err
}

return nil
}

if !clusterNotification {
Expand Down

0 comments on commit 7374739

Please sign in to comment.