security

package module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Go Secure SDK

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.

Functions

func InDevMode

func InDevMode() bool

InDevMode returns the development mode flag status.

func InFIPSMode

func InFIPSMode() bool

InFIPSMode returns the FIPS compliance mode flag status.

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.

Sub Packages

  • compression: Package compression provides hardened compression related features.

  • compression/archive: Package archive provides high level compressed archive management features.

  • compression/archive/tar: Package tar provides TAR archive management functions

  • compression/archive/tar/builder: Package builder provides a tar archive builder essentially for testing purposes.

  • compression/archive/zip: Package zip provides hardened ZIP archive management functions

  • crypto/hashutil: Package hashutil provides secured cryptographic hash functions

  • crypto/keyutil: Package keyutil provides cryptographic keys management functions.

  • generator/randomness: Package randomness provides math/rand dropin replace with secured initialization.

  • ioutil: Package ioutil provides I/O hardened operations.

  • net: Package net provides network security related functions.

  • net/httpclient: Package httpclient provides a SSRF-safe HTTP client implementation.

  • net/httpclient/mock: Package mock is a generated GoMock package.

  • net/tlsclient: Package tlsclient provides hardened TLS dialer functions.

  • vfs: Package vfs extends the default Golang FS abstraction to support secured write operations.

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 InDevMode

func InDevMode() bool

InDevMode returns the development mode flag status.

func InFIPSMode

func InFIPSMode() bool

InFIPSMode returns the FIPS compliance mode flag status.

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.
net
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL