(ctx context.Context, userID uuid.UUID)
| 6247 | } |
| 6248 | |
| 6249 | func (q *querier) ListUserSecretsWithValues(ctx context.Context, userID uuid.UUID) ([]database.UserSecret, error) { |
| 6250 | // This query returns decrypted secret values and must only be called |
| 6251 | // from system contexts (provisioner, agent manifest). REST API |
| 6252 | // handlers should use ListUserSecrets (metadata only). |
| 6253 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceUserSecret); err != nil { |
| 6254 | return nil, err |
| 6255 | } |
| 6256 | return q.db.ListUserSecretsWithValues(ctx, userID) |
| 6257 | } |
| 6258 | |
| 6259 | func (q *querier) ListUserSkillMetadataByUserID(ctx context.Context, userID uuid.UUID) ([]database.ListUserSkillMetadataByUserIDRow, error) { |
| 6260 | obj := rbac.ResourceUserSkill.WithOwner(userID.String()) |
nothing calls this directly
no test coverage detected