package
8.0.2
Repository: https://github.com/apache/trafficcontrol.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CheckLocalUserToken checks the passed token against the records in the db for a match, up to a maximum duration of timeout.
No description provided by the author
DerivePassword uses the https://pkg.go.dev/golang.org/x/crypto/scrypt package to return an encrypted password that is compatible with the Perl CPAN library Crypt::ScryptKDF for backward compatibility to authenticate through the Perl API the same way.
No description provided by the author
GetCurrentUserFromDB - returns the id and privilege level of the given user along with the username, or -1 as the id, - as the userName and PrivLevelInvalid if the user doesn't exist, along with a user facing error, a system error to log, and an error code to return.
GetUserUcdn returns the Upstream CDN to which the user belongs for CDNi operations.
InitUsersCache attempts to initialize the in-memory users data (if enabled) then starts a goroutine to periodically refresh the in-memory data from the database.
No description provided by the author
No description provided by the author
No description provided by the author
Expects a relative path from the traffic_ops directory.
No description provided by the author
ParseClientCertificateUID takes an x509 Certificate and loops through the Names in the Subject.
VerifyClientCertificate takes a http.Request, pulls the (optionally) provided client TLS certificates and attempts to verify them against the directory of provided Root CA certificates.
VerifySCRYPTPassword parses the original Derived Key (DK) from the SCRYPT password so that it can compare that with the password/scriptPassword param.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PrivLevelInvalid - The Default Priv level.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TenantIDInvalid - The default Tenant ID.

# Variables

The SCRYPT functionality defined in this package is derived based upon the following references: https://pkg.go.dev/golang.org/x/crypto/scrypt https://www.tarsnap.com/scrypt/scrypt.pdf.

# Structs

No description provided by the author
No description provided by the author
SCRYPTComponents the input parameters to the Scrypt encryption key format.