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

Method SigningKey

coderd/cryptokeys/cache.go:181–189  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

179}
180
181func (c *cache) SigningKey(ctx context.Context) (string, interface{}, error) {
182 if !isSigningKeyFeature(c.feature) {
183 return "", nil, ErrInvalidFeature
184 }
185
186 //nolint:gocritic // cache can only read crypto keys.
187 ctx = dbauthz.AsKeyReader(ctx)
188 return c.cryptoKey(ctx, latestSequence)
189}
190
191func (c *cache) VerifyingKey(ctx context.Context, id string) (interface{}, error) {
192 if !isSigningKeyFeature(c.feature) {

Callers

nothing calls this directly

Calls 3

cryptoKeyMethod · 0.95
AsKeyReaderFunction · 0.92
isSigningKeyFeatureFunction · 0.85

Tested by

no test coverage detected