Affected by GO-2024-3010
and 2 other vulnerabilities
GO-2024-3010: CVE-2024-6984 in github.com/juju/juju
GO-2024-3040: Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm in github.com/juju/juju
GO-2024-3175: Vulnerable juju introspection abstract UNIX domain socket in github.com/juju/juju
type Key struct {
// Cloud is the cloud name that the credential applies to. Key is valid when// this value is set.
Cloud string// Owner is the owner of the credential. Key is valid when this value is set. Owner user.Name// Name is the name of the credential. It is valid when this value is set. Name string
}
Key represents the natural key of a cloud credential.
KeyFromTag provides a utility for converting a CloudCredentialTag into a Key
struct. If the tags IsZero() returns true then a zero value Key struct is
returned.
Tag will convert this Key struct to a juju names CloudCredentialTag. Errors in
parsing of the tag will be returned. If the Key struct is it's zero value then
a zero value Tag will be returned.
Validate is responsible for checking all of the fields of Key are in a set
state that is valid for use. You can also use IsZero() to test if the Key is
currently set to it's zero value.