Prepare returns the underlying PreparedAuthorized. The cache does not apply to prepared authorizations. These should be using a SQL filter, and therefore the cache is not needed.
(ctx context.Context, subject Subject, action policy.Action, objectType string)
| 801 | // to prepared authorizations. These should be using a SQL filter, and |
| 802 | // therefore the cache is not needed. |
| 803 | func (c *authCache) Prepare(ctx context.Context, subject Subject, action policy.Action, objectType string) (PreparedAuthorized, error) { |
| 804 | return c.authz.Prepare(ctx, subject, action, objectType) |
| 805 | } |
| 806 | |
| 807 | // rbacTraceAttributes are the attributes that are added to all spans created by |
| 808 | // the rbac package. These attributes should help to debug slow spans. |