Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Oct 24, 2024
1 parent 48405ad commit ca2de2e
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
# builder-tools
# System API

WIP Toolbox
System API is used as interface between TDX services and the operator.

- [Create ECDSA keypair](cmd/ecdsa-gen/main.go)
- [Create TLS certificate + key (PEM format)](cmd/tls-gen/main.go)
- [Server using custom TLS certificate](cmd/https-server/main.go)
- [Client allowing only server using the custom TLS certificate](cmd/https-client/main.go)
- [Status API server, with ability for recording and querying events](cmd/system-api/)
It currently does the following things:

---

## Usage

```bash
# create the TLS cert (cert.pem) and key (key.pem)
$ go run cmd/tls-gen/main.go --host 127.0.0.1,localhost
- **Event log**: Services inside a TDX instance can record events they want exposed to the operator
used to record and query events. Useful to record service startup/shutdown, errors, progress updates,
hashes, etc.

# run the server (serving the created TLS cert)
$ go run cmd/https-server/main.go
Future features:

# check with curl
$ curl --cacert cert.pem https://127.0.0.1:8080
- Operator can set a password for http-basic-auth (persisted, for all future requests)
- Operator-provided configuration (i.e. config values, secrets, etc.)
- Restart of services / execution of scripts

# run the client (allowing only server with that specific TLS cert)
$ go run cmd/https-client/main.go
```
---

### System API server
## Event log

The system api server is used to record and query events. Events can be added through local named pipe (file `pipe.fifo`), or through HTTP API.
Events can be added via local named pipe (i.e. file `pipe.fifo`) or through HTTP API:

```bash
# Start the server
Expand Down

0 comments on commit ca2de2e

Please sign in to comment.