MCPcopy Create free account

hub / github.com/cloudflare/pal / functions

Functions94 in github.com/cloudflare/pal

↓ 21 callersMethodString
()
log/log.go:24
↓ 8 callersMethodError
()
messages.go:27
↓ 6 callersMethodDecrypt
Decrypt sends decryption requests to pald for every secret specified in the configuration for this Client. Upon success, the decrypted plaintexts are
client.go:22
↓ 6 callersMethodQuit
(t *testing.T)
integration_test.go:178
↓ 6 callersMethodmustEncryptAndDelegate
Encrypts the given secret with the given encryptLabels for both alice and bob with a minimum of two delegations. Then, alice and bob each delegate for
integration_test.go:108
↓ 6 callersFunctionoutput
(l logLevel, v []interface{})
log/log.go:53
↓ 6 callersFunctionoutputf
(l logLevel, format string, v []interface{})
log/log.go:47
↓ 5 callersFunctionbase64Decode
(val string)
client.go:79
↓ 5 callersFunctionwriteDecryptionError
(w *json.Encoder, code int, msg string, secret string)
server.go:286
↓ 4 callersMethodDecrypt
Decrypt the ciphertext r.
decrypter/decrypter.go:28
↓ 4 callersFunctionNewServer
NewServer constructs a new Server that supports versions 1 and 2 of the PAL protocol.
server.go:81
↓ 4 callersMethodServeRPC
ServeRPC serves version 2 of the PAL protocol.
server.go:194
↓ 4 callersFunctionmustROTestInstance
(t *testing.T)
integration_test.go:57
↓ 4 callersFunctionnewClientV2
(config *ConfigEntry, socketAddr string)
client_v2.go:35
↓ 3 callersFunctionloadConfigEntry
(r io.Reader, environment string)
client.go:47
↓ 3 callersFunctionmustListenUnixSocket
returns the listener and the temporary directory that was created to contain it; the listener should be closed and the directory deleted when finished
integration_test.go:42
↓ 2 callersMethodExec
Exec executes the given command with the given environment. It additonally injects any secrets decrypted with a previous call to Decrypt.
client.go:25
↓ 2 callersFunctionbase64Encode
(val string)
client_test.go:206
↓ 2 callersMethoddecryptMap
(m map[string]string)
client_v1.go:130
↓ 2 callersMethoddecryptMap
(m map[string]string)
client_v2.go:125
↓ 2 callersMethodhasSecrets
(section map[string]string)
client_v1.go:193
↓ 2 callersFunctionnewClientV1
(config *ConfigEntry, socketAddr string)
client_v1.go:38
↓ 2 callersFunctionreplaceEnvVar
(env []string, name, val string)
client.go:68
↓ 1 callersMethodDecrypt
Decrypt sends decryption requests to pald for every secret specified in the configuration for this Client. Upon success, the decrypted plaintexts are
client_v2.go:48
↓ 1 callersMethodLabelsForPID
(pid int)
trustedlabels/labels.go:8
↓ 1 callersFunctionNewPGPDecrypter
NewPGPDecrypter returns a new Decrypter that operates by using the provided keyring and credentials to perform PGP decryption on ciphertexts.
decrypter/decrypter_pgp.go:30
↓ 1 callersFunctionNewPGPPacketConfig
NewPGPPacketConfig constructs a new OpenPGP packet configuration from the given cipher and hash, as specified in RFC 4880.
decrypter/decrypter_pgp.go:21
↓ 1 callersFunctionSplitPALValue
SplitPALValue parses a PAL secret, returning the parsed decrypter type, whether or not the plaintext is itself base64-encoded, and the value of the ci
decrypter/decrypter.go:34
↓ 1 callersFunctionconvertTarget
(t notary.Target)
trustedlabels/labels_docker.go:238
↓ 1 callersMethoddoDecryptionRequest
(dreq *decryptionRequest)
client_v1.go:153
↓ 1 callersMethoddoRPCdecryptionRequest
(dreq *decryptionRequest)
client_v2.go:147
↓ 1 callersFunctiongetListeners
(addrs ...string)
cmd/pald/pald.go:114
↓ 1 callersFunctiongetUcred
(conn net.Conn)
identity.go:14
↓ 1 callersFunctionisSecret
(v string)
client_v2.go:171
↓ 1 callersMethodisTrusted
(imageName string, localDigest string)
trustedlabels/labels_docker.go:120
↓ 1 callersFunctionlistenFDAddrs
listenFDAddrs returns the list of listeners backed by the systemd-activated sockets. It returns error if the required listeners are not in the list of
cmd/pald/pald.go:156
↓ 1 callersFunctionlistenUnixAddrs
listenUnixAddrs returns list of unix-socket listeners mapped to their local addresses
cmd/pald/pald.go:198
↓ 1 callersFunctionmustROServer
(t *testing.T, vaultPath, certPath, keyPath, addr, metricsPort string)
integration_test.go:162
↓ 1 callersMethodnotaryRepository
notaryRepository returns a NotaryRepository which stores all the information needed to operate on a notary repository. It creates an HTTP transport pr
trustedlabels/labels_docker.go:179
↓ 1 callersFunctionparseROLabel
(data []byte)
server_test.go:34
↓ 1 callersFunctionparseROLabels
(data []byte)
decrypter/decrypter_ro.go:64
↓ 1 callersFunctionpgpCipherIDFromName
Convert a cipher name into an RFC 4880 identifier. Why is there no function for this in golang.org/x/crypto/openpgp?
decrypter/decrypter_pgp.go:91
↓ 1 callersFunctionpgpHashIDFromName
Convert a named hash algorithm into Go's hash algorithm enumeration for parsing configuration
decrypter/decrypter_pgp.go:74
↓ 1 callersFunctionserveMetrics
()
cmd/pald/pald.go:110
↓ 1 callersMethodserveRPCConn
(c *conn)
server.go:221
↓ 1 callersMethodtrustedReference
(name string)
trustedlabels/labels_docker.go:133
MethodBasic
(u *url.URL)
trustedlabels/labels_docker.go:263
FunctionCritical
Critical logs its arguments at the "critical" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:81
FunctionCriticalf
Criticalf logs a formatted message at the "critical" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:75
FunctionDebug
Debug logs its arguments at the "debug" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:129
FunctionDebugf
Debugf logs a formatted message at the "debug" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:123
MethodDecrypt
()
client_v1.go:51
MethodDecrypt
(r io.Reader)
decrypter/decrypter_pgp.go:60
MethodDecrypt
(ct io.Reader)
decrypter/decrypter_ro.go:36
FunctionDisable
Disable disables logging altogether, regardless of level. However, calls to Fatal and Fatalf will still halt the process; they just won't log anything
log/log.go:136
FunctionEnable
Enable enables logging if it has previously been disabled with Disable. Calling Enable when logging is already enabled is a no-op.
log/log.go:142
FunctionError
Error logs its arguments at the "error" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:93
FunctionErrorf
Errorf logs a formatted message at the "error" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:87
MethodExec
(argv, environ []string)
client_v1.go:67
MethodExec
Exec executes the given command with the given environment. It additonally injects any secrets decrypted with a previous call to Decrypt.
client_v2.go:62
FunctionFatal
Fatal logs its arguments at the "fatal" level and then exits. The arguments are handled in the same manner as fmt.Print.
log/log.go:68
FunctionFatalf
Fatalf logs a formatted message at the "fatal" level and then exits. The arguments are handled in the same manner as fmt.Printf.
log/log.go:61
FunctionInfo
Info logs its arguments at the "info" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:117
FunctionInfof
Infof logs a formatted message at the "info" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:111
MethodLabelsForPID
(pid int)
trustedlabels/labels_docker.go:72
MethodLabelsForPID
(int)
trustedlabels/labels.go:21
FunctionLoadServerConfigEntry
LoadServerConfigEntry reads and parses r as a PAL server YAML configuration file, and returns the entry corresponding to the given environment name.
server.go:60
FunctionNewClientV1
NewClientV1 constructs a new Client that implements version 1 of the PAL protocol. r is a PAL YAML configuration, socketAddr is the file path to the p
client_v1.go:30
FunctionNewClientV2
NewClientV2 constructs a new Client that implements version 2 of the PAL protocol. r is a PAL YAML configuration, socketAddr is the file path to the p
client_v2.go:27
FunctionNewDocker
NewDocker returns a new Retriever that uses the provided notary server and trust store base directory to look up labels in the Docker daemon and then
trustedlabels/labels_docker.go:54
FunctionNewMock
NewMock returns a mocked Retriever which always responds with the given set of labels to any request.
trustedlabels/labels.go:17
FunctionNewRODecrypter
NewRODecrypter returns a new Decrypter that operates by making decryption requests to the specified Red October server with the given credentials. ca
decrypter/decrypter_ro.go:24
MethodQuit
(t *testing.T)
integration_test.go:150
MethodRefreshToken
(u *url.URL, service string)
trustedlabels/labels_docker.go:267
MethodServeHTTP
ServeHTTP serves the legacy version 1 of the PAL protocol. It is only capable of handling Red October decryption requests.
server.go:133
MethodSetRefreshToken
(*url.URL, string, string)
trustedlabels/labels_docker.go:271
FunctionTestClientExec
(t *testing.T)
client_test.go:98
FunctionTestConfig
(t *testing.T)
client_test.go:15
FunctionTestPGPDecrypter
(t *testing.T)
decrypter/decrypter_pgp_test.go:11
FunctionTestParseROLabel
(t *testing.T)
server_test.go:10
FunctionTestRPCServerWithInvalidLabel
(t *testing.T)
integration_v2_test.go:79
FunctionTestRPCServerWithoutPeerCred
(t *testing.T)
integration_v2_test.go:115
FunctionTestServerWithClientV1
(t *testing.T)
integration_v1_test.go:11
FunctionTestServerWithClientV2
(t *testing.T)
integration_v2_test.go:11
FunctionTestSplitPALValue
(t *testing.T)
decrypter/decrypter_test.go:5
FunctionWarning
Warning logs its arguments at the "warning" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:105
FunctionWarningf
Warningf logs a formatted message at the "warning" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:99
Functioninit
()
util_test.go:5
Functioninit
()
decrypter/decrypter.go:13
Functionmain
()
cmd/pal/pal.go:22
Functionmain
()
cmd/palpgpenc/main.go:30
Functionmain
()
cmd/pald/pald.go:31
Functionmain
()
demo/demo.go:10
FunctiontrustServer
()
trustedlabels/labels_docker.go:255