Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codahale/sneaker
/ functions
Functions
42 in github.com/codahale/sneaker
⨍
Functions
42
◇
Types & classes
7
↓ 5 callers
Method
List
List returns a list of files which match the given pattern, or if the pattern is blank, all files.
list.go:14
↓ 5 callers
Function
openPath
(file string, o func(string) (*os.File, error), def *os.File)
cmd/sneaker/main.go:250
↓ 4 callers
Method
Download
Download fetches and decrypts the given secrets.
download.go:12
↓ 4 callers
Method
Open
Open takes the output of Seal and decrypts it. If any part of the ciphertext or context is modified, Seal will return an error instead of the decrypte
envelope.go:45
↓ 4 callers
Method
Seal
Seal generates a 256-bit data key using KMS and encrypts the given plaintext with AES-256-GCM using a random nonce. The ciphertext is appended to the
envelope.go:24
↓ 3 callers
Method
Upload
Upload encrypts the given secret with a KMS data key and uploads it to S3.
upload.go:14
↓ 3 callers
Function
decrypt
(key, ciphertext, data []byte)
envelope.go:72
↓ 3 callers
Function
parseContext
(s string)
cmd/sneaker/main.go:234
↓ 2 callers
Method
Pack
Pack puts the given secrets into a TAR file and encrypts that with a new KMS data key with the context. The result is written into the given writer.
pack.go:13
↓ 2 callers
Method
Rm
Rm deletes the given secret.
rm.go:11
↓ 2 callers
Method
Rotate
Rotate downloads all of the secrets whose paths match the given pattern, decrypts them, re-encrypts them with new data keys, and re-uploads them.
rotate.go:7
↓ 2 callers
Method
Unpack
Unpack decrypts the secrets using KMS and the given context, returning an io.Reader containing a TAR file with all the secrets.
unpack.go:11
↓ 2 callers
Method
context
(c map[string]string)
envelope.go:64
↓ 2 callers
Method
context
(path string)
sneaker.go:46
↓ 2 callers
Function
encrypt
(key, plaintext, data []byte)
envelope.go:90
↓ 2 callers
Function
fromAWS
(m map[string]*string)
packaging_test.go:103
↓ 2 callers
Function
zero
(b []byte)
envelope.go:124
↓ 1 callers
Method
Decrypt
(*kms.DecryptInput)
sneaker.go:26
↓ 1 callers
Method
DeleteObject
(*s3.DeleteObjectInput)
sneaker.go:18
↓ 1 callers
Method
GenerateDataKey
(*kms.GenerateDataKeyInput)
sneaker.go:25
↓ 1 callers
Method
GetObject
(*s3.GetObjectInput)
sneaker.go:20
↓ 1 callers
Method
ListObjects
(*s3.ListObjectsInput)
sneaker.go:17
↓ 1 callers
Method
PutObject
(*s3.PutObjectInput)
sneaker.go:19
↓ 1 callers
Function
join
(a, b []byte)
envelope.go:111
↓ 1 callers
Function
loadManager
()
cmd/sneaker/main.go:208
↓ 1 callers
Function
match
(pattern, name string)
list.go:51
↓ 1 callers
Function
split
(v []byte)
envelope.go:119
Method
Decrypt
(req *kms.DecryptInput)
fake_kms_test.go:20
Method
DeleteObject
(req *s3.DeleteObjectInput)
fake_s3_test.go:26
Method
GenerateDataKey
(req *kms.GenerateDataKeyInput)
fake_kms_test.go:13
Method
GetObject
(req *s3.GetObjectInput)
fake_s3_test.go:40
Method
ListObjects
(req *s3.ListObjectsInput)
fake_s3_test.go:19
Method
PutObject
(req *s3.PutObjectInput)
fake_s3_test.go:33
Function
TestDownload
(t *testing.T)
download_test.go:14
Function
TestEnvelopeRoundTrip
(t *testing.T)
envelope_test.go:11
Function
TestListNoPattern
(t *testing.T)
list_test.go:83
Function
TestListPattern
(t *testing.T)
list_test.go:12
Function
TestPackagingRoundTrip
(t *testing.T)
packaging_test.go:15
Function
TestRm
(t *testing.T)
rm_test.go:9
Function
TestRotate
(t *testing.T)
rotate_test.go:14
Function
TestUpload
(t *testing.T)
upload_test.go:14
Function
main
()
cmd/sneaker/main.go:42