Skip to content

Commit

Permalink
docs: update readme (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Jan 27, 2025
1 parent 104a0bf commit 621d517
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,19 @@ COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--admin-port value Port for the admin server (default: 50052) [$ADMIN_PORT]
--aws-access-key-id value AWS access key ID [$AWS_ACCESS_KEY_ID]
--aws-authentication-mode value AWS authentication mode - supported modes: environment, specified (default: "environment") [$AWS_AUTHENTICATION_MODE]
--aws-profile value AWS profile (default: "default") [$AWS_PROFILE]
--aws-region value AWS region (default: "us-east-2") [$AWS_REGION]
--aws-secret-access-key value AWS secret access key [$AWS_SECRET_ACCESS_KEY]
--enable-admin Enable the admin server (default: false) [$ENABLE_ADMIN]
--gcp-project-id value Project ID for Google Cloud Platform [$GCP_PROJECT_ID]
--grpc-port value Port for the gRPC server (default: "50051") [$GRPC_PORT]
--grpc-port value Port for the gRPC server (default: 50051) [$GRPC_PORT]
--keystore-dir value Directory where the keystore files are stored (default: "./data/keystore") [$KEYSTORE_DIR]
--log-format value Log format - supported formats: text, json (default: "text") [$LOG_FORMAT]
--log-level value Log level - supported levels: debug, info, warn, error (default: "info") [$LOG_LEVEL]
--metrics-port value Port for the metrics server (default: "9091") [$METRICS_PORT]
--metrics-port value Port for the metrics server (default: 9091) [$METRICS_PORT]
--postgres-database-url value Postgres database URL (default: "postgres://user:password@localhost:5432/cerberus?sslmode=disable") [$POSTGRES_DATABASE_URL]
--storage-type value Storage type - supported types: filesystem, aws-secret-manager (default: "filesystem") [$STORAGE_TYPE]
--tls-ca-cert value TLS CA certificate [$TLS_CA_CERT]
Expand All @@ -79,7 +81,7 @@ GLOBAL OPTIONS:
--version, -v print the version
COPYRIGHT:
(c) 2025 EigenLabs
(c) 2025 Eigen Labs
```
### Storage Backend
Expand Down Expand Up @@ -171,6 +173,8 @@ import (
"google.golang.org/grpc/credentials"
)
const SIGNER_API_KEY = "<API-KEY>"
func main() {
creds, err := credentials.NewClientTLSFromFile("server.crt", "")
if err != nil {
Expand All @@ -193,6 +197,9 @@ func main() {
Password: "p@$$w0rd",
Data: []byte{0x01, 0x02, 0x03},
}
// Pass the API key to the signer client
ctx = metadata.AppendToOutgoingContext(ctx, "authorization", SIGNER_API_KEY)
resp, err := c.SignGeneric(ctx, req)
if err != nil {
log.Fatalf("could not sign: %v", err)
Expand Down

0 comments on commit 621d517

Please sign in to comment.