MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getSecret

Method getSecret

backend/src/secrets/secrets.service.ts:59–62  ·  view source on GitHub ↗
(auth: AuthContext | null, secretId: string)

Source from the content-addressed store, hash-verified

57 }
58
59 async getSecret(auth: AuthContext | null, secretId: string): Promise<SecretSummary> {
60 const organizationId = this.assertOrganizationId(auth);
61 return this.repository.findById(secretId, { organizationId });
62 }
63
64 async getSecretByName(auth: AuthContext | null, secretName: string): Promise<SecretSummary> {
65 const organizationId = this.assertOrganizationId(auth);

Callers 1

Calls 2

assertOrganizationIdMethod · 0.95
findByIdMethod · 0.45

Tested by

no test coverage detected