mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
f2ce9518a3
* create and update maa attestation policy * use interface to allow unit testing * fix test csp * http request for policy patch * go mod tidy * remove hyphen * go mod tidy * wip: adapt to feedback * linting fixes * remove csp from tf call * fix type assertion * Add MAA URL to instance tags (#1409) Signed-off-by: Daniel Weiße <dw@edgeless.systems> * conditionally create maa provider * only set instance tag when maa is created * fix azure unit test * bazel tidy * remove AzureCVM const Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> * encode policy at runtime * remove policy arg * fix unit test --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package clusterid
|
|
|
|
import (
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
|
)
|
|
|
|
// File contains identifying information about a cluster.
|
|
type File struct {
|
|
// ClusterID is the unique identifier of the cluster.
|
|
ClusterID string `json:"clusterID,omitempty"`
|
|
// OwnerID is the unique identifier of the owner of the cluster.
|
|
OwnerID string `json:"ownerID,omitempty"`
|
|
// UID is the unique identifier of the cluster, used for infrastructure management.
|
|
UID string `json:"uid,omitempty"`
|
|
// CloudProvider is the cloud provider of the cluster.
|
|
CloudProvider cloudprovider.Provider `json:"cloudprovider,omitempty"`
|
|
// IP is the IP address the cluster can be reached at (often the load balancer).
|
|
IP string `json:"ip,omitempty"`
|
|
// InitSecret is the secret the first Bootstrapper uses to verify the user.
|
|
InitSecret []byte `json:"initsecret,omitempty"`
|
|
// AttestationURL is the URL of the attestation service.
|
|
// It is only set if the cluster is created on Azure.
|
|
AttestationURL string `json:"attestationURL,omitempty"`
|
|
}
|