1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00
Commit graph

12 commits

Author SHA1 Message Date
Zhaofeng Li
14cb5f9e46 Trivial semver-incompatible upgrades 2024-06-01 13:47:27 -06:00
Cole Helbling
18dedcc30b token: switch to using IndexMap for consistent ordering of entries
Because of the random ordering of HashMap, if you have
overlapping token permissions, it is possible to randomly pick
one that leads to some operation working intermittently (see
https://github.com/zhaofengli/attic/issues/133 for an example of this).

By using an IndexMap instead, we make "iteration order of the key-value
pairs [...] independent of the hash values of the keys" (from the
indexmap crate docs [1]), which leads to more predictable behavior.

[1]: https://docs.rs/indexmap/latest/indexmap/
2024-05-25 11:26:40 -07:00
Cole Helbling
f18f581188 token: test that permissions iteration order is consistent 2024-05-25 11:26:40 -07:00
Zhaofeng Li
2d0aeefd2f Trivial semver-incompatible upgrades 2023-05-28 15:23:45 -06:00
Zhaofeng Li
6489d775ae Update deps 2023-05-28 15:23:45 -06:00
Zhaofeng Li
ba8bd5d66c Thanks clippy 2023-03-21 18:45:34 -06:00
Zhaofeng Li
2e68228fee token: Enforce the same lint configs 2023-03-21 18:45:34 -06:00
Zhaofeng Li
97285de54f Upgrade base64 2023-03-05 11:05:11 -07:00
Zhaofeng Li
18ca2cf29a Update deps 2023-03-05 11:05:11 -07:00
Zhaofeng Li
6c4d04da74 Migrate to jwt-simple 2023-01-08 00:57:22 -07:00
Zhaofeng Li
1c2173caac token: Update comments to reflect actual implementation 2023-01-08 00:57:22 -07:00
Zhaofeng Li
77070b9895 Refactor token into a separate crate 2023-01-08 00:57:22 -07:00