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

Function AsKeyReader

coderd/database/dbauthz/dbauthz.go:776–778  ·  view source on GitHub ↗

AsKeyReader returns a context with an actor that has permissions required for reading crypto keys.

(ctx context.Context)

Source from the content-addressed store, hash-verified

774
775// AsKeyReader returns a context with an actor that has permissions required for reading crypto keys.
776func AsKeyReader(ctx context.Context) context.Context {
777 return As(ctx, subjectCryptoKeyReader)
778}
779
780func AsConnectionLogger(ctx context.Context) context.Context {
781 return As(ctx, subjectConnectionLogger)

Callers 5

newCacheFunction · 0.92
EncryptingKeyMethod · 0.92
DecryptingKeyMethod · 0.92
SigningKeyMethod · 0.92
VerifyingKeyMethod · 0.92

Calls 1

AsFunction · 0.85

Tested by

no test coverage detected