cloudverify

package module
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 5 Imported by: 0

README

Cloud-Verify

Overview

Cloud-Verify is a Go library that provides cryptographic attestation to verify if your application is running within a cloud environment. It supports multiple cloud providers and is easy to integrate into your existing Go applications.

Supported Cloud Providers

Cloud-Verify currently supports the following cloud providers:

Prerequisites

For AWS and Azure, ensure that the openssl binary is installed and available in your system's PATH. This prerequisite is not required for GCP.

How to Use

Here is a simple example of how to use Cloud-Verify in your Go application:

package main

import (
  "fmt"
  cloudverify "github.com/kamushadenes/cloud-verify"
)

func main() {
 if v, cloud := cloudverify.RunningOnCloud(); v {
  fmt.Printf("Running on Cloud (%s)\n", cloud)
 } else {
  fmt.Printf("Not running on Cloud (%s)\n", cloud)
 }
}
Updating AWS Certificates

Cloud-Verify uses the certificates present at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/regions-certs.html to validate AWS metadata.

In case those need to be updated and I haven't done so yet, you can update them manually by running the following command:

go run cmd/update-certs/main.go

License

This project is licensed under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunningOnCloud

func RunningOnCloud() (bool, string)

Types

This section is empty.

Directories

Path Synopsis
cmd
cloud-verify command
update-certs command

Jump to

Keyboard shortcuts

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