Matt Keeler 6e6910ea11
Dont modify memdb owned token data for get/list requests of tokens (#5412)
Previously we were fixing up the token links directly on the *ACLToken returned by memdb. This invalidated some assumptions that a snapshot is immutable as well as potentially being able to cause a crash.

The fix here is to give the policy link fixing function copy on write semantics. When no fixes are necessary we can return the memdb object directly, otherwise we copy it and create a new list of links.

Eventually we might find a better way to keep those policy links in sync but for now this fixes the issue.
2019-03-04 09:28:46 -05:00
..
2018-11-02 12:00:39 -05:00
2017-10-25 19:30:35 +02:00
2018-10-19 12:04:07 -04:00
2017-07-18 20:24:38 +02:00
2019-02-19 13:45:33 +00:00
2018-10-19 12:04:07 -04:00
2018-10-19 12:04:07 -04:00
2019-01-28 21:46:00 +00:00
2018-02-12 10:15:31 -08:00
2018-02-12 10:15:31 -08:00
2018-09-05 13:38:13 -07:00
2018-02-12 10:15:31 -08:00
2018-02-12 10:15:31 -08:00
2018-03-19 16:56:00 +00:00