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

Method ListUserSecretsWithValues

coderd/database/querier.go:1077–1077  ·  view source on GitHub ↗

Returns all columns including the secret value. Used by the provisioner (build-time injection) and the agent manifest (runtime injection).

(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

1075 // provisioner (build-time injection) and the agent manifest
1076 // (runtime injection).
1077 ListUserSecretsWithValues(ctx context.Context, userID uuid.UUID) ([]UserSecret, error)
1078 ListUserSkillMetadataByUserID(ctx context.Context, userID uuid.UUID) ([]ListUserSkillMetadataByUserIDRow, error)
1079 ListWorkspaceAgentPortShares(ctx context.Context, workspaceID uuid.UUID) ([]WorkspaceAgentPortShare, error)
1080 MarkAllInboxNotificationsAsRead(ctx context.Context, arg MarkAllInboxNotificationsAsReadParams) error

Callers 12

TestUserSecretsMethod · 0.65
TestGetManifestFunction · 0.65
GetManifestMethod · 0.65
TestServerDBCryptFunction · 0.65
RotateFunction · 0.65
DecryptFunction · 0.65
TestUserSecretsFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 6

TestUserSecretsMethod · 0.52
TestGetManifestFunction · 0.52
TestServerDBCryptFunction · 0.52
TestUserSecretsFunction · 0.52