Skip to content

Commit

Permalink
show gpg verification
Browse files Browse the repository at this point in the history
  • Loading branch information
salrashid123 committed Mar 19, 2024
1 parent e8aa32b commit b168a5c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ It returns a live `access_token` that can be used directly by [Application Defau

For example, you can call `ADC` using default credentials or specifically with `ComputeCredentials` and also recall any GCE project or instance attribute.

First run the emulator:

```bash
./gce_metadata_server -logtostderr --configFile=config.json \
-alsologtostderr -v 5 \
-port :8080 \
--serviceAccountFile certs/metadata-sa.json
```

Then in a new window, export some env vars google SDK's under

```bash
export GCE_METADATA_HOST=localhost:8080
export GCE_METADATA_IP=127.0.0.1:8080
```

and run any application using ADC:

```python
#!/usr/bin/python

Expand Down Expand Up @@ -941,6 +959,20 @@ skopeo copy --preserve-digests docker://docker.io/salrashid123/gcemetadataserv

This is useful for unit tests and fakes. For additional examples, please see the `server_test.go` and `cmd/main.go`

#### Verify Release Binary

If you download a binary from the "Releases" page, you can verify the signature with GPG:

```bash
gpg --keyserver keyserver.ubuntu.com --recv-keys 5D8EA7261718FE5728BA937C97341836616BF511

## to verify the checksum file for a given release:
wget https://github.com/salrashid123/gce_metadata_server/releases/download/v3.4.1/gce_metadata_server_3.4.1_checksums.txt
wget https://github.com/salrashid123/gce_metadata_server/releases/download/v3.4.1/gce_metadata_server_3.4.1_checksums.txt.sig

gpg --verify gce_metadata_server_3.4.1_checksums.txt.sig gce_metadata_server_3.4.1_checksums.txt
```

## Testing

a lot todo here, right...thats just life
Expand Down

0 comments on commit b168a5c

Please sign in to comment.