secret

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

README

Secrets service

endly -s='secret:signJWT'


Documentation

Index

Constants

View Source
const ServiceID = "secret"

ServiceID represents a system process service id

Variables

This section is empty.

Functions

func New

func New() endly.Service

New creates new system process service.

Types

type FirebaseAuthRequest added in v0.71.0

type FirebaseAuthRequest struct {
	Secret        *scy.Resource
	Credentials   *cred.Basic
	ServiceSecret *scy.Resource
	Config        *firebase.Config
}

type FirebaseAuthResponse added in v0.71.0

type FirebaseAuthResponse struct {
	Token *auth.Token
}

type RevealRequest

type RevealRequest struct {
	*scy.Resource
	Target        string
	ServiceSecret *scy.Resource
	// contains filtered or unexported fields
}

func NewRevealRequestFromURL

func NewRevealRequestFromURL(URL string) (*RevealRequest, error)

NewRevealRequestFromURL creates a request from URL

func (*RevealRequest) Init

func (r *RevealRequest) Init() error

func (*RevealRequest) Validate

func (r *RevealRequest) Validate() error

type RevealResponse

type RevealResponse struct {
	URL     string
	Target  string
	Data    string
	Generic *cred.Generic
	AWS     *cred.Aws
	SHA1    *cred.SHA1
	SSH     *cred.SSH
	JWT     *cred.JwtConfig
	Basic   *cred.Basic
}

type SecureRequest

type SecureRequest struct {
	Target string

	Source    []byte
	SourceURL string
	*scy.Resource
	// contains filtered or unexported fields
}

func NewSecureRequestFromURL

func NewSecureRequestFromURL(URL string) (*SecureRequest, error)

NewSecureRequestFromURL creates a request from URL

func (*SecureRequest) Init

func (r *SecureRequest) Init() error

func (*SecureRequest) Validate

func (r *SecureRequest) Validate() error

type SecureResponse

type SecureResponse struct{}

type SignJWTRequest

type SignJWTRequest struct {
	PrivateKey   *scy.Resource
	HMAC         *scy.Resource
	ExpiryInSec  int
	ClaimsURL    string
	UseClaimsMap bool
	ClaimsMap    map[string]interface{}
	Claims       *jwt.Claims
}

func NewSignJWTRequest

func NewSignJWTRequest(URL string) (*SignJWTRequest, error)

NewSignJWTRequest creates a request from URL

func (*SignJWTRequest) Init

func (r *SignJWTRequest) Init() error

func (*SignJWTRequest) Validate

func (r *SignJWTRequest) Validate() error

type SignJWTResponse

type SignJWTResponse struct {
	TokenString string
}

type VerifyJWTRequest

type VerifyJWTRequest struct {
	PublicKey *scy.Resource
	HMAC      *scy.Resource
	CertURL   string
	Token     string
}

func (*VerifyJWTRequest) Init

func (r *VerifyJWTRequest) Init() error

func (*VerifyJWTRequest) Validate

func (r *VerifyJWTRequest) Validate() error

type VerifyJWTResponse

type VerifyJWTResponse struct {
	Error  string
	Valid  bool
	Token  *sjwt.Token
	Claims *jwt.Claims
}

func NewVerifyJWTResponse

func NewVerifyJWTResponse(URL string) (*VerifyJWTResponse, error)

NewVerifyJWTResponse creates a request from URL

Jump to

Keyboard shortcuts

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