Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/pal
/ functions
Functions
94 in github.com/cloudflare/pal
⨍
Functions
94
◇
Types & classes
23
↓ 21 callers
Method
String
()
log/log.go:24
↓ 8 callers
Method
Error
()
messages.go:27
↓ 6 callers
Method
Decrypt
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 callers
Method
Quit
(t *testing.T)
integration_test.go:178
↓ 6 callers
Method
mustEncryptAndDelegate
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 callers
Function
output
(l logLevel, v []interface{})
log/log.go:53
↓ 6 callers
Function
outputf
(l logLevel, format string, v []interface{})
log/log.go:47
↓ 5 callers
Function
base64Decode
(val string)
client.go:79
↓ 5 callers
Function
writeDecryptionError
(w *json.Encoder, code int, msg string, secret string)
server.go:286
↓ 4 callers
Method
Decrypt
Decrypt the ciphertext r.
decrypter/decrypter.go:28
↓ 4 callers
Function
NewServer
NewServer constructs a new Server that supports versions 1 and 2 of the PAL protocol.
server.go:81
↓ 4 callers
Method
ServeRPC
ServeRPC serves version 2 of the PAL protocol.
server.go:194
↓ 4 callers
Function
mustROTestInstance
(t *testing.T)
integration_test.go:57
↓ 4 callers
Function
newClientV2
(config *ConfigEntry, socketAddr string)
client_v2.go:35
↓ 3 callers
Function
loadConfigEntry
(r io.Reader, environment string)
client.go:47
↓ 3 callers
Function
mustListenUnixSocket
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 callers
Method
Exec
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 callers
Function
base64Encode
(val string)
client_test.go:206
↓ 2 callers
Method
decryptMap
(m map[string]string)
client_v1.go:130
↓ 2 callers
Method
decryptMap
(m map[string]string)
client_v2.go:125
↓ 2 callers
Method
hasSecrets
(section map[string]string)
client_v1.go:193
↓ 2 callers
Function
newClientV1
(config *ConfigEntry, socketAddr string)
client_v1.go:38
↓ 2 callers
Function
replaceEnvVar
(env []string, name, val string)
client.go:68
↓ 1 callers
Method
Decrypt
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 callers
Method
LabelsForPID
(pid int)
trustedlabels/labels.go:8
↓ 1 callers
Function
NewPGPDecrypter
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 callers
Function
NewPGPPacketConfig
NewPGPPacketConfig constructs a new OpenPGP packet configuration from the given cipher and hash, as specified in RFC 4880.
decrypter/decrypter_pgp.go:21
↓ 1 callers
Function
SplitPALValue
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 callers
Function
convertTarget
(t notary.Target)
trustedlabels/labels_docker.go:238
↓ 1 callers
Method
doDecryptionRequest
(dreq *decryptionRequest)
client_v1.go:153
↓ 1 callers
Method
doRPCdecryptionRequest
(dreq *decryptionRequest)
client_v2.go:147
↓ 1 callers
Function
getListeners
(addrs ...string)
cmd/pald/pald.go:114
↓ 1 callers
Function
getUcred
(conn net.Conn)
identity.go:14
↓ 1 callers
Function
isSecret
(v string)
client_v2.go:171
↓ 1 callers
Method
isTrusted
(imageName string, localDigest string)
trustedlabels/labels_docker.go:120
↓ 1 callers
Function
listenFDAddrs
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 callers
Function
listenUnixAddrs
listenUnixAddrs returns list of unix-socket listeners mapped to their local addresses
cmd/pald/pald.go:198
↓ 1 callers
Function
mustROServer
(t *testing.T, vaultPath, certPath, keyPath, addr, metricsPort string)
integration_test.go:162
↓ 1 callers
Method
notaryRepository
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 callers
Function
parseROLabel
(data []byte)
server_test.go:34
↓ 1 callers
Function
parseROLabels
(data []byte)
decrypter/decrypter_ro.go:64
↓ 1 callers
Function
pgpCipherIDFromName
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 callers
Function
pgpHashIDFromName
Convert a named hash algorithm into Go's hash algorithm enumeration for parsing configuration
decrypter/decrypter_pgp.go:74
↓ 1 callers
Function
serveMetrics
()
cmd/pald/pald.go:110
↓ 1 callers
Method
serveRPCConn
(c *conn)
server.go:221
↓ 1 callers
Method
trustedReference
(name string)
trustedlabels/labels_docker.go:133
Method
Basic
(u *url.URL)
trustedlabels/labels_docker.go:263
Function
Critical
Critical logs its arguments at the "critical" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:81
Function
Criticalf
Criticalf logs a formatted message at the "critical" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:75
Function
Debug
Debug logs its arguments at the "debug" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:129
Function
Debugf
Debugf logs a formatted message at the "debug" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:123
Method
Decrypt
()
client_v1.go:51
Method
Decrypt
(r io.Reader)
decrypter/decrypter_pgp.go:60
Method
Decrypt
(ct io.Reader)
decrypter/decrypter_ro.go:36
Function
Disable
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
Function
Enable
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
Function
Error
Error logs its arguments at the "error" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:93
Function
Errorf
Errorf logs a formatted message at the "error" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:87
Method
Exec
(argv, environ []string)
client_v1.go:67
Method
Exec
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
Function
Fatal
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
Function
Fatalf
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
Function
Info
Info logs its arguments at the "info" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:117
Function
Infof
Infof logs a formatted message at the "info" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:111
Method
LabelsForPID
(pid int)
trustedlabels/labels_docker.go:72
Method
LabelsForPID
(int)
trustedlabels/labels.go:21
Function
LoadServerConfigEntry
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
Function
NewClientV1
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
Function
NewClientV2
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
Function
NewDocker
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
Function
NewMock
NewMock returns a mocked Retriever which always responds with the given set of labels to any request.
trustedlabels/labels.go:17
Function
NewRODecrypter
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
Method
Quit
(t *testing.T)
integration_test.go:150
Method
RefreshToken
(u *url.URL, service string)
trustedlabels/labels_docker.go:267
Method
ServeHTTP
ServeHTTP serves the legacy version 1 of the PAL protocol. It is only capable of handling Red October decryption requests.
server.go:133
Method
SetRefreshToken
(*url.URL, string, string)
trustedlabels/labels_docker.go:271
Function
TestClientExec
(t *testing.T)
client_test.go:98
Function
TestConfig
(t *testing.T)
client_test.go:15
Function
TestPGPDecrypter
(t *testing.T)
decrypter/decrypter_pgp_test.go:11
Function
TestParseROLabel
(t *testing.T)
server_test.go:10
Function
TestRPCServerWithInvalidLabel
(t *testing.T)
integration_v2_test.go:79
Function
TestRPCServerWithoutPeerCred
(t *testing.T)
integration_v2_test.go:115
Function
TestServerWithClientV1
(t *testing.T)
integration_v1_test.go:11
Function
TestServerWithClientV2
(t *testing.T)
integration_v2_test.go:11
Function
TestSplitPALValue
(t *testing.T)
decrypter/decrypter_test.go:5
Function
Warning
Warning logs its arguments at the "warning" level. The arguments are handled in the same manner as fmt.Print.
log/log.go:105
Function
Warningf
Warningf logs a formatted message at the "warning" level. The arguments are handled in the same manner as fmt.Printf.
log/log.go:99
Function
init
()
util_test.go:5
Function
init
()
decrypter/decrypter.go:13
Function
main
()
cmd/pal/pal.go:22
Function
main
()
cmd/palpgpenc/main.go:30
Function
main
()
cmd/pald/pald.go:31
Function
main
()
demo/demo.go:10
Function
trustServer
()
trustedlabels/labels_docker.go:255