MCPcopy Index your code
hub / github.com/coder/coder / ListUserSecretsWithValues

Method ListUserSecretsWithValues

coderd/database/dbauthz/dbauthz.go:6249–6257  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

6247}
6248
6249func (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
6259func (q *querier) ListUserSkillMetadataByUserID(ctx context.Context, userID uuid.UUID) ([]database.ListUserSkillMetadataByUserIDRow, error) {
6260 obj := rbac.ResourceUserSkill.WithOwner(userID.String())

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected