1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-06 19:38:56 +00:00
steve/pkg/accesscontrol
Alejandro Ruiz fd9a516ecb
refactor(accesscontrol): deterministic cache key hashing (#292)
* refactor(accesscontrol): make addAccess directly accept PolicyRules

* refactor(accesscontrol): add new types for encapsulating all needed data

* refactor(accesscontrol): make getRules return resource version

* refactor(accesscontrol): add new getRoleRefs to policyRuleIndex

* refactor(accesscontrol): make accessStore use the new types and method

* cleanup(accesscontrol): remove unused code

* cleanup(accesscontrol): adapt tests

* cleanup(accesscontrol): add some comments and remove unused function

* refactor(accesscontrol): rework indexer to make it more readable and testable

* Fix typo

* test: consistent use of t.Error

* test: refactor policyRulesMock to just use a map

* misc: rename toUserInfo function

* refactor: consistent sort by UID
2024-10-28 09:35:59 +01:00
..
fake Migrate the mocking library to uber's (#291) 2024-10-10 10:28:25 -07:00
access_control.go updated wrangler from v2 to v3 2024-06-05 22:53:08 +05:30
access_set.go Drop unused variable 2021-08-04 15:03:57 -07:00
access_store_test.go refactor(accesscontrol): deterministic cache key hashing (#292) 2024-10-28 09:35:59 +01:00
access_store.go refactor(accesscontrol): deterministic cache key hashing (#292) 2024-10-28 09:35:59 +01:00
policy_rule_index_test.go refactor(accesscontrol): deterministic cache key hashing (#292) 2024-10-28 09:35:59 +01:00
policy_rule_index.go refactor(accesscontrol): deterministic cache key hashing (#292) 2024-10-28 09:35:59 +01:00
user_grants.go refactor(accesscontrol): deterministic cache key hashing (#292) 2024-10-28 09:35:59 +01:00