open-nomad/nomad/state
Tim Gross 4c9688271a
CSI: fix potential state store corruptions (#16256)
The `CSIVolume` struct has references to allocations that are "denormalized"; we
don't store them on the `CSIVolume` struct but hydrate them on read. Tests
detecting potential state store corruptions found two locations where we're not
copying the volume before denormalizing:

* When garbage collecting CSI volume claims.
* When checking if it's safe to force-deregister the volume.

There are no known user-visible problems associated with these bugs but both
have the potential of mutating volume claims outside of a FSM transaction. This
changeset also cleans up state mutations in some CSI tests so as to avoid having
working tests cover up potential future bugs.
2023-02-27 08:47:08 -05:00
..
indexer
paginator
autopilot.go
autopilot_test.go
deployment_events_test.go
events.go events: add ACL binding rules to core events stream topics. (#15544) 2022-12-14 14:49:49 +01:00
events_test.go events: add ACL binding rules to core events stream topics. (#15544) 2022-12-14 14:49:49 +01:00
iterator.go
schema.go
schema_test.go
state_changes.go
state_store.go CSI: fix potential state store corruptions (#16256) 2023-02-27 08:47:08 -05:00
state_store_acl.go
state_store_acl_binding_rule.go
state_store_acl_binding_rule_test.go bugfix: unit test for GetACLBindingRules (#15583) 2022-12-20 15:06:09 +01:00
state_store_acl_sso.go acl: make auth method default across all types (#15869) 2023-01-26 14:17:11 +01:00
state_store_acl_sso_test.go acl: make auth method default across all types (#15869) 2023-01-26 14:17:11 +01:00
state_store_acl_test.go
state_store_oss.go
state_store_restore.go
state_store_restore_test.go
state_store_service_regisration_test.go
state_store_service_registration.go
state_store_test.go CSI: fix potential state store corruptions (#16256) 2023-02-27 08:47:08 -05:00
state_store_variables.go
state_store_variables_oss.go
state_store_variables_test.go
testing.go