discovery

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

README ΒΆ

Discovery Status

βœ…: Discovered
❌: Not Discovered
🚫: Not available

Compute
Expand
Function
Evidence Azure AWS
Compute βœ… βœ…
RuntimeLanguage βœ… ❌
RuntimeVersion βœ… ❌
VirtualMachine
Evidence Azure AWS
Compute βœ… βœ…
BlockStorage βœ… βœ…
MalwareProtection βœ… ❌
BootLogging βœ… βœ…
OSLogging βœ… βœ…
AutomaticUpdates βœ… ❌
Compute
Evidence Azure AWS
Resource βœ… βœ…
NetworkInterfaces βœ… βœ…
ResourceLogging βœ…
Backups ❌
Resource
Evidence Azure AWS
ID βœ… βœ…
Name βœ… βœ…
Type βœ… βœ…
GeoLocation βœ… βœ…
Labels βœ… βœ…
OSLogging
Evidence Azure AWS
Auditing βœ… 🚫
SecurityFeature βœ… 🚫
Enabled βœ… ❌
LoggingService βœ… 🚫
RetentionPeriod βœ… 🚫
BootLogging
Evidence Azure AWS
Auditing βœ… 🚫
SecurityFeature βœ… 🚫
Enabled βœ… ❌
LoggingService βœ… 🚫
RetentionPeriod βœ… 🚫
ResourceLogging
Evidence Azure AWS
MonitoringLogDataEnabled βœ…
SecurityAlertsEnabled βœ…
BlockStorage
Evidence Azure AWS
Resource βœ… βœ…
AtRestEncryption βœ… βœ…
Immutability βœ… ❌
Backups βœ… ❌
ManagedKeyEncryption
Evidence Azure AWS
Enabled βœ… ❌
Algorithm βœ… ❌
CustomerKeyEncryption
Evidence Azure AWS
Enabled βœ… ❌
Algorithm ❌ ❌
KeyUrl βœ… ❌
Network
Expand
LoadBalancer
Evidence Azure AWS
Networkservice βœ… ❌
AccessRestriction βœ… ❌
HttpEndpoints βœ… ❌
Networkservices βœ… ❌
Urls βœ… ❌
Networkservice
Evidence Azure AWS
Networking βœ… ❌
Authenticity βœ… ❌
Compute βœ… ❌
TransportEncryption βœ… ❌
Ips βœ… ❌
Ports βœ… ❌
Networkinterfaces
Evidence Azure AWS
Networking βœ… βœ…
Networkservice ❌ ❌
AccessRestriction partly ❌
Storage
Expand
ObjectStorage
Evidence Azure AWS
Storage βœ… βœ…
PublicAccess βœ… ❌
Backups βœ…
Storage
Evidence Azure AWS
Resource βœ… βœ…
AtRestEncryption βœ… βœ…
Immutability βœ… ❌
ResourceLogging βœ…
Backups βœ…
ObjectStorageService
Evidence Azure AWS
NetworkService βœ… βœ…
HttpEndpoint βœ… βœ…
Networkservice
Evidence Azure AWS
Networking βœ… βœ…
Authenticity ❌ ❌
Compute ❌ ❌
TransportEncryption βœ… βœ…
Ips ❌ ❌
Ports ❌ ❌
HttpEndpoint
Evidence Azure AWS
Url βœ… βœ…
TransportEncryption βœ… βœ…
FileStorage
Evidence Azure AWS
Storage βœ… ❌
Backups ❌
ManagedKeyEncryption
Evidence Azure AWS
Enabled βœ… βœ…
Algorithm βœ… βœ…
CustomerKeyEncryption
Evidence Azure AWS
Enabled βœ… βœ…
Algorithm ❌ ❌
KeyUrl βœ… βœ…
Database Storage
Evidence Azure AWS
Storage βœ… ❌
Parent βœ… ❌
Database Service
Evidence Azure AWS
NetworkService βœ… ❌
AnomalyDetection βœ… ❌
Networkservice
Evidence Azure AWS
Networking βœ… βœ…
Authenticity ❌ ❌
Compute ❌ ❌
TransportEncryption ❌ βœ…
Ips ❌ ❌
Ports ❌ ❌

Azure Backup

Expand

There are 2 different backup solutions for different resources

  • Backup Vaults and
  • Recovery Services Vault.
Resource Backup Vaults Recovery Services Vault
Azure Virtual Machine x
Azure Storage (Files) x
Azure Backup Agent x
Azure Backup Server x
DPM x
SQL in Azure VM x
SAP HANA in Azure VM x
Azure Storage (Blobs) x
Azure disks x
Azure Database for PostgreSQL servers x
Kubernetes Services x

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

View Source
const (
	ProviderAWS   = "aws"
	ProviderK8S   = "k8s"
	ProviderAzure = "azure"
)
View Source
const (
	// DefaultAssessmentAddress specifies the default gRPC address of the assessment service.
	DefaultAssessmentAddress = "localhost:9090"
)

Variables ΒΆ

This section is empty.

Functions ΒΆ

This section is empty.

Types ΒΆ

type Configuration ΒΆ added in v1.3.6

type Configuration struct {
	Interval time.Duration
}

type DiscoveryEvent ΒΆ added in v1.6.2

type DiscoveryEvent struct {
	Type            DiscoveryEventType
	DiscovererName  string
	DiscoveredItems int
	Time            time.Time
}

DiscoveryEvent represents an event that is emitted if certain situations happen in the discoverer (defined by DiscoveryEventType). Examples would be the start or the end of the discovery. We will potentially expand this in the future.

type DiscoveryEventType ΒΆ added in v1.6.2

type DiscoveryEventType int

DiscoveryEventType defines the event types for DiscoveryEvent.

const (
	// DiscovererStart is emmited at the start of a discovery run.
	DiscovererStart DiscoveryEventType = iota
	// DiscovererFinished is emmited at the end of a discovery run.
	DiscovererFinished
)

type Service ΒΆ

type Service struct {
	discovery.UnimplementedDiscoveryServer
	discovery.UnimplementedExperimentalDiscoveryServer

	Events chan *DiscoveryEvent
	// contains filtered or unexported fields
}

Service is an implementation of the Clouditor Discovery service (plus its experimental extensions). It should not be used directly, but rather the NewService constructor should be used.

func NewService ΒΆ added in v1.3.3

func NewService(opts ...ServiceOption) *Service

func (*Service) GetCloudServiceId ΒΆ added in v1.7.8

func (svc *Service) GetCloudServiceId() string

GetCloudServiceId implements CloudServiceRequest for this service. This is a little trick, so that we can call CheckAccess directly on the service. This is necessary because the discovery service itself is tied to a specific cloud service ID, instead of the individual requests that are made against the service.

func (*Service) ListGraphEdges ΒΆ added in v1.10.0

func (svc *Service) ListGraphEdges(ctx context.Context, req *discovery.ListGraphEdgesRequest) (res *discovery.ListGraphEdgesResponse, err error)

func (*Service) ListResources ΒΆ added in v1.7.8

func (svc *Service) ListResources(ctx context.Context, req *discovery.ListResourcesRequest) (res *discovery.ListResourcesResponse, err error)

func (*Service) Shutdown ΒΆ added in v1.3.4

func (svc *Service) Shutdown()

func (*Service) Start ΒΆ

Start starts discovery

func (*Service) StartDiscovery ΒΆ added in v1.3.3

func (svc *Service) StartDiscovery(discoverer discovery.Discoverer)

func (*Service) UpdateResource ΒΆ added in v1.10.0

func (svc *Service) UpdateResource(ctx context.Context, req *discovery.UpdateResourceRequest) (res *discovery.Resource, err error)

type ServiceOption ΒΆ added in v1.3.14

type ServiceOption func(*Service)

ServiceOption is a functional option type to configure the discovery service.

func WithAssessmentAddress ΒΆ added in v1.3.14

func WithAssessmentAddress(target string, opts ...grpc.DialOption) ServiceOption

WithAssessmentAddress is an option to configure the assessment service gRPC address.

func WithAuthorizationStrategy ΒΆ added in v1.7.8

func WithAuthorizationStrategy(authz service.AuthorizationStrategy) ServiceOption

WithAuthorizationStrategy is an option that configures an authorization strategy to be used with this service.

func WithCloudServiceID ΒΆ added in v1.6.2

func WithCloudServiceID(ID string) ServiceOption

WithCloudServiceID is an option to configure the cloud service ID for which resources will be discovered.

func WithOAuth2Authorizer ΒΆ added in v1.4.0

func WithOAuth2Authorizer(config *clientcredentials.Config) ServiceOption

WithOAuth2Authorizer is an option to use an OAuth 2.0 authorizer

func WithProviders ΒΆ added in v1.4.0

func WithProviders(providersList []string) ServiceOption

WithProviders is an option to set providers for discovering

func WithStorage ΒΆ added in v1.7.6

func WithStorage(storage persistence.Storage) ServiceOption

WithStorage is an option to set the storage. If not set, NewService will use inmemory storage.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

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