security: remove all hardcoded API keys, require from environment
This commit is contained in:
@@ -98,7 +98,7 @@ CREATE TABLE job_payments (
|
||||
### 1. Client Creates Job
|
||||
```bash
|
||||
curl -X POST http://localhost:18000/v1/jobs \
|
||||
-H "X-Api-Key: REDACTED_CLIENT_KEY" \
|
||||
-H "X-Api-Key: ${CLIENT_API_KEY}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"payload": {
|
||||
@@ -124,7 +124,7 @@ curl -X POST http://localhost:18000/v1/jobs \
|
||||
### 3. Job Completion & Payment Release
|
||||
```bash
|
||||
curl -X POST http://localhost:18000/v1/payments/pay456/release \
|
||||
-H "X-Api-Key: REDACTED_CLIENT_KEY" \
|
||||
-H "X-Api-Key: ${CLIENT_API_KEY}" \
|
||||
-d '{"job_id": "abc123", "reason": "Job completed"}'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user