wrapDBAuthz adds our Authorization/RBAC around the given database store, to ensure the reaper has the right permissions to do its work.
(db database.Store, logger slog.Logger)
| 794 | // wrapDBAuthz adds our Authorization/RBAC around the given database store, to |
| 795 | // ensure the reaper has the right permissions to do its work. |
| 796 | func wrapDBAuthz(db database.Store, logger slog.Logger) database.Store { |
| 797 | return dbauthz.New( |
| 798 | db, |
| 799 | rbac.NewStrictCachingAuthorizer(prometheus.NewRegistry()), |
| 800 | logger, |
| 801 | coderdtest.AccessControlStorePointer(), |
| 802 | ) |
| 803 | } |
no test coverage detected