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

Method ListUserSecrets

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

Source from the content-addressed store, hash-verified

6239}
6240
6241func (q *querier) ListUserSecrets(ctx context.Context, userID uuid.UUID) ([]database.ListUserSecretsRow, error) {
6242 obj := rbac.ResourceUserSecret.WithOwner(userID.String())
6243 if err := q.authorizeContext(ctx, policy.ActionRead, obj); err != nil {
6244 return nil, err
6245 }
6246 return q.db.ListUserSecrets(ctx, userID)
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

Callers

nothing calls this directly

Calls 4

authorizeContextMethod · 0.95
WithOwnerMethod · 0.80
ListUserSecretsMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected