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

Method SigningKey

coderd/cryptokeys/cache.go:48–48  ·  view source on GitHub ↗

SigningKey returns the latest valid key for signing. A valid key is one that is both past its start time and before its deletion time.

(ctx context.Context)

Source from the content-addressed store, hash-verified

46 // SigningKey returns the latest valid key for signing. A valid key is one
47 // that is both past its start time and before its deletion time.
48 SigningKey(ctx context.Context) (id string, key interface{}, err error)
49 // VerifyingKey returns the key with the provided id which should map to its
50 // sequence number. The key is valid for verifying as long as it is not deleted
51 // or past its deletion date. We must allow for keys prior to their start time

Callers 1

TestCryptoKeyCacheFunction · 0.65

Implementers 3

keycoderd/jwtutils/jwt_test.go
StaticKeycoderd/jwtutils/jws.go
cachecoderd/cryptokeys/cache.go

Calls

no outgoing calls

Tested by 1

TestCryptoKeyCacheFunction · 0.52