Documentation ¶
Overview ¶
Package security provides various security-in-mind built features across various domains.
The package is a part of the "Secure SDK" project.
It provides a set of libraries to mitigate common security issues and vulnerabilities. The project is designed to be a one-stop-shop for security features and libraries for Go developers.
The project is released to the public as a set of open-source libraries to cover Datadog open-source projects.
The project is licensed under the Apache License, Version 2.0. The license can be found in the LICENSE file in the root of the project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDevMode ¶
func SetDevMode() (revert func())
SetDevMode enables the local development mode in this package and returns a function to revert the configuration.
Calling this method multiple times once the flag is enabled produces no effect.
func SetFIPSMode ¶
func SetFIPSMode() (revert func())
SetFIPSMode enables the FIPS compliance mode in this package and returns a function to revert the configuration.
Calling this method multiple times once the flag is enabled produces no effect.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package compression provides hardened compression related features.
|
Package compression provides hardened compression related features. |
archive
Package archive provides high level compressed archive management features.
|
Package archive provides high level compressed archive management features. |
archive/tar
Package tar provides TAR archive management functions
|
Package tar provides TAR archive management functions |
archive/tar/builder
Package builder provides a tar archive builder essentially for testing purposes.
|
Package builder provides a tar archive builder essentially for testing purposes. |
archive/zip
Package zip provides hardened ZIP archive management functions
|
Package zip provides hardened ZIP archive management functions |
crypto
|
|
hashutil
Package hashutil provides secured cryptographic hash functions
|
Package hashutil provides secured cryptographic hash functions |
keyutil
Package keyutil provides cryptographic keys management functions.
|
Package keyutil provides cryptographic keys management functions. |
generator
|
|
randomness
Package randomness provides `math/rand` dropin replace with secured initialization.
|
Package randomness provides `math/rand` dropin replace with secured initialization. |
Package ioutil provides I/O hardened operations.
|
Package ioutil provides I/O hardened operations. |
Package net provides network security related functions.
|
Package net provides network security related functions. |
httpclient
Package httpclient provides a SSRF-safe HTTP client implementation.
|
Package httpclient provides a SSRF-safe HTTP client implementation. |
httpclient/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
tlsclient
Package tlsclient provides hardened TLS dialer functions.
|
Package tlsclient provides hardened TLS dialer functions. |
Package vfs extends the default Golang FS abstraction to support secured write operations.
|
Package vfs extends the default Golang FS abstraction to support secured write operations. |