Documentation ¶
Index ¶
- func NewDefaultVaultClient() (*api.Client, error)
- type AccessControl
- func (a AccessControl) Authenticate(accessToken string) error
- func (a AccessControl) CRLPurge(accessToken string) error
- func (a AccessControl) CreateCertificate(accessToken string, templateName string) error
- func (a AccessControl) CreateSSHCertificate(accessToken string, templateName string) error
- func (a AccessControl) CreateSSHTemplate(accessToken string) error
- func (a AccessControl) CreateTemplate(accessToken string) error
- func (a AccessControl) DeleteSSHTemplate(accessToken string, templateName string) error
- func (a AccessControl) DeleteTemplate(accessToken string, templateName string) error
- func (a AccessControl) GenerateIntermediateCSR(accessToken string) error
- func (a AccessControl) ListSSHTemplates(accessToken string) error
- func (a AccessControl) ListTemplates(accessToken string) error
- func (a AccessControl) ManageSSHTemplate(accessToken string, templateName string) error
- func (a AccessControl) ManageTemplate(accessToken string, templateName string) error
- func (a AccessControl) Purge(accessToken string) error
- func (a AccessControl) ReadSSHTemplate(accessToken string, templateName string) error
- func (a AccessControl) ReadTemplate(accessToken string, templateName string) error
- func (a AccessControl) RevokeCertificate(accessToken string, serialNumber string) error
- func (a AccessControl) SetCAChain(accessToken string) error
- func (a AccessControl) SetIntermediateCertificate(accessToken string) error
- func (a AccessControl) SignCertificate(accessToken string, templateName string) error
- type Privileges
- type StorageBackend
- func (c StorageBackend) CertificateRevoked(serialNumber *big.Int) (types.RevokedCertificate, error)
- func (c StorageBackend) CreateCertificate(cert types.CreateCertificateData) error
- func (c StorageBackend) CreateSSHTemplate(template types.SSHTemplate) error
- func (c StorageBackend) CreateTemplate(template types.Template) error
- func (c StorageBackend) DeleteCertificate(serialNumber *big.Int) error
- func (c StorageBackend) DeleteSSHTemplate(templateName string) error
- func (c StorageBackend) DeleteTemplate(templateName string) error
- func (c StorageBackend) GetAccessControl() backend.Access
- func (c StorageBackend) GetCAChain() ([]string, error)
- func (c StorageBackend) GetCRL() (string, error)
- func (c StorageBackend) GetCertificate(serialNumber *big.Int) (string, error)
- func (c StorageBackend) GetRevokedCerts() ([]types.RevokedCertificate, error)
- func (c StorageBackend) GetSSHTemplate(templateName string) (types.SSHTemplate, error)
- func (c StorageBackend) GetSigningCert() (string, error)
- func (c StorageBackend) GetSigningKey() (string, error)
- func (c StorageBackend) GetTemplate(templateName string) (types.Template, error)
- func (c StorageBackend) InitConfig() error
- func (c StorageBackend) ListCertificates() ([]*big.Int, error)
- func (c StorageBackend) ListExpiredCertificates(dayBuffer int) ([]*big.Int, error)
- func (c StorageBackend) ListSSHTemplates() ([]string, error)
- func (c StorageBackend) ListTemplates() ([]string, error)
- func (c StorageBackend) RevokeCertificate(serialNumber *big.Int, reasonCode int, revocationDate time.Time) error
- func (c StorageBackend) WriteCAChain(certBundle []string) error
- func (c StorageBackend) WriteCRL(content string) error
- func (c StorageBackend) WriteSigningCert(content string) error
- func (c StorageBackend) WriteSigningKey(content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultVaultClient ¶
NewDefaultVaultClient return the default conjur client
Types ¶
type AccessControl ¶
type AccessControl struct {
// contains filtered or unexported fields
}
AccessControl ...
func NewAccessFromDefaultsDisabled ¶
func NewAccessFromDefaultsDisabled(conjurConfig conjurapi.Config, policyBranch string) AccessControl
NewAccessFromDefaultsDisabled ...
func (AccessControl) Authenticate ¶
func (a AccessControl) Authenticate(accessToken string) error
Authenticate If the client has ability to authenticate to the PKI service
func (AccessControl) CRLPurge ¶
func (a AccessControl) CRLPurge(accessToken string) error
CRLPurge ...
func (AccessControl) CreateCertificate ¶
func (a AccessControl) CreateCertificate(accessToken string, templateName string) error
CreateCertificate ...
func (AccessControl) CreateSSHCertificate ¶
func (a AccessControl) CreateSSHCertificate(accessToken string, templateName string) error
CreateSSHCertificate ----
func (AccessControl) CreateSSHTemplate ¶
func (a AccessControl) CreateSSHTemplate(accessToken string) error
CreateSSHTemplate ----
func (AccessControl) CreateTemplate ¶
func (a AccessControl) CreateTemplate(accessToken string) error
CreateTemplate creating a template is not granular, you either have the ability to create templates or not
func (AccessControl) DeleteSSHTemplate ¶
func (a AccessControl) DeleteSSHTemplate(accessToken string, templateName string) error
DeleteSSHTemplate ----
func (AccessControl) DeleteTemplate ¶
func (a AccessControl) DeleteTemplate(accessToken string, templateName string) error
DeleteTemplate ..
func (AccessControl) GenerateIntermediateCSR ¶
func (a AccessControl) GenerateIntermediateCSR(accessToken string) error
GenerateIntermediateCSR ...
func (AccessControl) ListSSHTemplates ¶
func (a AccessControl) ListSSHTemplates(accessToken string) error
ListSSHTemplates ----
func (AccessControl) ListTemplates ¶
func (a AccessControl) ListTemplates(accessToken string) error
ListTemplates ...
func (AccessControl) ManageSSHTemplate ¶
func (a AccessControl) ManageSSHTemplate(accessToken string, templateName string) error
ManageSSHTemplate ---
func (AccessControl) ManageTemplate ¶
func (a AccessControl) ManageTemplate(accessToken string, templateName string) error
ManageTemplate ...
func (AccessControl) ReadSSHTemplate ¶
func (a AccessControl) ReadSSHTemplate(accessToken string, templateName string) error
ReadSSHTemplate ----
func (AccessControl) ReadTemplate ¶
func (a AccessControl) ReadTemplate(accessToken string, templateName string) error
ReadTemplate ...
func (AccessControl) RevokeCertificate ¶
func (a AccessControl) RevokeCertificate(accessToken string, serialNumber string) error
RevokeCertificate ...
func (AccessControl) SetCAChain ¶
func (a AccessControl) SetCAChain(accessToken string) error
SetCAChain ...
func (AccessControl) SetIntermediateCertificate ¶
func (a AccessControl) SetIntermediateCertificate(accessToken string) error
SetIntermediateCertificate ...
func (AccessControl) SignCertificate ¶
func (a AccessControl) SignCertificate(accessToken string, templateName string) error
SignCertificate ...
type Privileges ¶
type Privileges struct { Authenticate string Purge string CRLPurge string CertificateSignSpecific string CertificateCreateSpecific string CertificateRevokeSpecific string TemplateCreateAny string TemplateManageSpecific string TemplateDeleteSpecific string TemplateReadSpecific string ListTemplates string GenerateIntermediateCSR string SetIntermediateCertificate string SetCAChain string }
Privileges ...
type StorageBackend ¶
type StorageBackend struct { Access AccessControl // contains filtered or unexported fields }
StorageBackend ...
func NewVaultPKI ¶
func NewVaultPKI(client *api.Client, access AccessControl) StorageBackend
NewVaultPKI ...
func (StorageBackend) CertificateRevoked ¶
func (c StorageBackend) CertificateRevoked(serialNumber *big.Int) (types.RevokedCertificate, error)
CertificateRevoked Return the types.RevokedCertifcate repersented by the certificate If the certificate is not revoked, and empty types.RevokedCertificate is returned
func (StorageBackend) CreateCertificate ¶
func (c StorageBackend) CreateCertificate(cert types.CreateCertificateData) error
CreateCertificate ...
func (StorageBackend) CreateSSHTemplate ¶
func (c StorageBackend) CreateSSHTemplate(template types.SSHTemplate) error
CreateSSHTemplate Creates a new SSH template in the Conjur backend
func (StorageBackend) CreateTemplate ¶
func (c StorageBackend) CreateTemplate(template types.Template) error
CreateTemplate ...
func (StorageBackend) DeleteCertificate ¶
func (c StorageBackend) DeleteCertificate(serialNumber *big.Int) error
DeleteCertificate ...
func (StorageBackend) DeleteSSHTemplate ¶
func (c StorageBackend) DeleteSSHTemplate(templateName string) error
DeleteSSHTemplate Deletes the template with given as `templateName` from the Conjur backend
func (StorageBackend) DeleteTemplate ¶
func (c StorageBackend) DeleteTemplate(templateName string) error
DeleteTemplate ...
func (StorageBackend) GetAccessControl ¶
func (c StorageBackend) GetAccessControl() backend.Access
GetAccessControl -----
func (StorageBackend) GetCAChain ¶
func (c StorageBackend) GetCAChain() ([]string, error)
GetCAChain ...
func (StorageBackend) GetCertificate ¶
func (c StorageBackend) GetCertificate(serialNumber *big.Int) (string, error)
GetCertificate ...
func (StorageBackend) GetRevokedCerts ¶
func (c StorageBackend) GetRevokedCerts() ([]types.RevokedCertificate, error)
GetRevokedCerts ...
func (StorageBackend) GetSSHTemplate ¶
func (c StorageBackend) GetSSHTemplate(templateName string) (types.SSHTemplate, error)
GetSSHTemplate Retrieves the information about a given template with `templateName` from the Conjur backend
func (StorageBackend) GetSigningCert ¶
func (c StorageBackend) GetSigningCert() (string, error)
GetSigningCert ...
func (StorageBackend) GetSigningKey ¶
func (c StorageBackend) GetSigningKey() (string, error)
GetSigningKey ...
func (StorageBackend) GetTemplate ¶
func (c StorageBackend) GetTemplate(templateName string) (types.Template, error)
GetTemplate ...
func (StorageBackend) InitConfig ¶
func (c StorageBackend) InitConfig() error
InitConfig ... TODO: Might have to initilize some roles?? Not sure right now
func (StorageBackend) ListCertificates ¶
func (c StorageBackend) ListCertificates() ([]*big.Int, error)
ListCertificates ...
func (StorageBackend) ListExpiredCertificates ¶
func (c StorageBackend) ListExpiredCertificates(dayBuffer int) ([]*big.Int, error)
ListExpiredCertificates List all certificates that are currenty expired
func (StorageBackend) ListSSHTemplates ¶
func (c StorageBackend) ListSSHTemplates() ([]string, error)
ListSSHTemplates Retrieves a list of all templates in the Conjur backend
func (StorageBackend) ListTemplates ¶
func (c StorageBackend) ListTemplates() ([]string, error)
ListTemplates ...
func (StorageBackend) RevokeCertificate ¶
func (c StorageBackend) RevokeCertificate(serialNumber *big.Int, reasonCode int, revocationDate time.Time) error
RevokeCertificate ...
func (StorageBackend) WriteCAChain ¶
func (c StorageBackend) WriteCAChain(certBundle []string) error
WriteCAChain ...
func (StorageBackend) WriteCRL ¶
func (c StorageBackend) WriteCRL(content string) error
WriteCRL ...
func (StorageBackend) WriteSigningCert ¶
func (c StorageBackend) WriteSigningCert(content string) error
WriteSigningCert ...
func (StorageBackend) WriteSigningKey ¶
func (c StorageBackend) WriteSigningKey(content string) error
WriteSigningKey ...