verifier

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package verifier ensures that only allowed containers (images) are launched

Index

Constants

View Source
const (
	ErrorNone         = "ERROR_NONE"
	InvalidParameter  = "INVALID_PARAMETER"
	SecureMgrError    = "INTERNAL_SECUREMGR_ERROR"
	NotAllowedCommand = "NOT_ALLOWED_COMMAND"
)

cwl - Container White List

Variables

This section is empty.

Functions

func Init

func Init(cwlPath string)

Init sets the environments for securemgr

Types

type Conf added in v1.1.0

type Conf interface {
	RequestVerifierConf(containerInfo RequestVerifierConf) ResponseVerifierConf
}

Conf is the interface implemented by external REST API

type RequestDescInfo

type RequestDescInfo struct {
	//ContainerName string
	ContainerHash string
}

RequestDescInfo describes the requested container

type RequestVerifierConf

type RequestVerifierConf struct {
	SecureInsName string
	CmdType       string
	Desc          []RequestDescInfo
}

RequestVerifierConf describes the request configuration

type ResponseVerifierConf

type ResponseVerifierConf struct {
	Message       string
	SecureCmpName string
}

ResponseVerifierConf describes the verifier configuration response

type VerificationImpl added in v1.1.0

type VerificationImpl struct{}

VerificationImpl structure

func GetInstance

func GetInstance() *VerificationImpl

GetInstance gives the VerificationImpl singletone instance

func (VerificationImpl) ContainerIsInWhiteList added in v1.1.0

func (VerificationImpl) ContainerIsInWhiteList(containerName string) error

ContainerIsInWhiteList checks if the containerName is in containerWhiteList

func (*VerificationImpl) RequestVerifierConf added in v1.1.0

func (verifier *VerificationImpl) RequestVerifierConf(containerInfo RequestVerifierConf) ResponseVerifierConf

RequestVerifierConf is Verifier configuration request handler

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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