mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-06 22:14:24 -04:00
config: mark attestationconfigapi as unimplemented
This commit is contained in:
parent
b4811b8b76
commit
f7ce3d9d4e
2 changed files with 30 additions and 27 deletions
|
@ -164,7 +164,6 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "Creating cluster using config:"
|
echo "Creating cluster using config:"
|
||||||
cat constellation-conf.yaml
|
|
||||||
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' || true
|
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' || true
|
||||||
|
|
||||||
- name: Constellation create (CLI)
|
- name: Constellation create (CLI)
|
||||||
|
|
|
@ -72,35 +72,39 @@ func (c *GCPSEVSNP) getToMarshallLatestWithResolvedVersions() AttestationCfg {
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchAndSetLatestVersionNumbers fetches the latest version numbers from the configapi and sets them.
|
// FetchAndSetLatestVersionNumbers fetches the latest version numbers from the configapi and sets them.
|
||||||
func (c *GCPSEVSNP) FetchAndSetLatestVersionNumbers(ctx context.Context, fetcher attestationconfigapi.Fetcher) error {
|
func (c *GCPSEVSNP) FetchAndSetLatestVersionNumbers(_ context.Context, _ attestationconfigapi.Fetcher) error {
|
||||||
// Only talk to the API if at least one version number is set to latest.
|
panic("not implemented")
|
||||||
if !(c.BootloaderVersion.WantLatest || c.TEEVersion.WantLatest || c.SNPVersion.WantLatest || c.MicrocodeVersion.WantLatest) {
|
|
||||||
return nil
|
// TODO(msanft): Implement with https://dev.azure.com/Edgeless/Edgeless/_workitems/edit/4024
|
||||||
|
|
||||||
|
// // Only talk to the API if at least one version number is set to latest.
|
||||||
|
// if !(c.BootloaderVersion.WantLatest || c.TEEVersion.WantLatest || c.SNPVersion.WantLatest || c.MicrocodeVersion.WantLatest) {
|
||||||
|
// return nil
|
||||||
|
// }
|
||||||
|
|
||||||
|
// versions, err := fetcher.FetchSEVSNPVersionLatest(ctx, variant.GCPSEVSNP{})
|
||||||
|
// if err != nil {
|
||||||
|
// return fmt.Errorf("fetching latest TCB versions from configapi: %w", err)
|
||||||
|
// }
|
||||||
|
// // set number and keep isLatest flag
|
||||||
|
// c.mergeWithLatestVersion(versions.SEVSNPVersion)
|
||||||
|
// return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
versions, err := fetcher.FetchSEVSNPVersionLatest(ctx, variant.GCPSEVSNP{})
|
// func (c *GCPSEVSNP) mergeWithLatestVersion(latest attestationconfigapi.SEVSNPVersion) {
|
||||||
if err != nil {
|
// if c.BootloaderVersion.WantLatest {
|
||||||
return fmt.Errorf("fetching latest TCB versions from configapi: %w", err)
|
// c.BootloaderVersion.Value = latest.Bootloader
|
||||||
}
|
// }
|
||||||
// set number and keep isLatest flag
|
// if c.TEEVersion.WantLatest {
|
||||||
c.mergeWithLatestVersion(versions.SEVSNPVersion)
|
// c.TEEVersion.Value = latest.TEE
|
||||||
return nil
|
// }
|
||||||
}
|
// if c.SNPVersion.WantLatest {
|
||||||
|
// c.SNPVersion.Value = latest.SNP
|
||||||
func (c *GCPSEVSNP) mergeWithLatestVersion(latest attestationconfigapi.SEVSNPVersion) {
|
// }
|
||||||
if c.BootloaderVersion.WantLatest {
|
// if c.MicrocodeVersion.WantLatest {
|
||||||
c.BootloaderVersion.Value = latest.Bootloader
|
// c.MicrocodeVersion.Value = latest.Microcode
|
||||||
}
|
// }
|
||||||
if c.TEEVersion.WantLatest {
|
// }
|
||||||
c.TEEVersion.Value = latest.TEE
|
|
||||||
}
|
|
||||||
if c.SNPVersion.WantLatest {
|
|
||||||
c.SNPVersion.Value = latest.SNP
|
|
||||||
}
|
|
||||||
if c.MicrocodeVersion.WantLatest {
|
|
||||||
c.MicrocodeVersion.Value = latest.Microcode
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetVariant returns gcp-sev-es as the variant.
|
// GetVariant returns gcp-sev-es as the variant.
|
||||||
func (GCPSEVES) GetVariant() variant.Variant {
|
func (GCPSEVES) GetVariant() variant.Variant {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue