Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
HUBBLE_PROD_ORG_ID: ${{ secrets.HUBBLE_PROD_ORG_ID }}
HUBBLE_PROD_API_TOKEN: ${{ secrets.HUBBLE_PROD_API_TOKEN }}
run: |
pytest tests/test_cloud_integration.py::TestProdEnvironment -v --tb=short
pytest -m integration -v --tb=short

- name: Run TESTING integration tests
env:
HUBBLE_TESTING_ORG_ID: ${{ secrets.HUBBLE_TESTING_ORG_ID }}
HUBBLE_TESTING_API_TOKEN: ${{ secrets.HUBBLE_TESTING_API_TOKEN }}
run: |
pytest tests/test_cloud_integration.py::TestTestingEnvironment -v --tb=short
pytest -m integration -v --tb=short

- name: Run invalid credentials test
run: |
pytest tests/test_cloud_integration.py::TestInvalidCredentials -v --tb=short
pytest -m integration -v --tb=short
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,37 @@ hubblenetwork ble scan --key "base64key=" --counter-mode DEVICE_UPTIME # counte
hubblenetwork org get-packets --payload-format string
```

### Generate a packet from a key

Produce a well-formed encrypted Hubble BLE packet from a key + payload. Useful
for matching observed hardware emissions against expected output, or for seeding
the cloud with deterministic test data.

```bash
# AES-256-CTR (32-byte key)
hubblenetwork ble generate \
--key "0000000000000000000000000000000000000000000000000000000000000000" \
--payload "deadbeef" \
--payload-format hex \
--counter-mode DEVICE_UPTIME \
--counter 5 \
--seq-no 42

# AES-128-EAX (16-byte key)
hubblenetwork ble generate \
--key "00000000000000000000000000000000" \
--payload "deadbeef" \
--payload-format hex \
--counter 0 \
--nonce-salt 0001

# Pipe the raw bytes for scripting
hubblenetwork ble generate --key ... --payload ab --payload-format hex --format hex

# Send the generated packet to the cloud (requires HUBBLE_ORG_ID, HUBBLE_API_TOKEN)
hubblenetwork ble generate --key ... --payload ab --payload-format hex --ingest
```

### Payload format option

Commands that output packet data (`ble scan`, `ble detect`, `org get-packets`) support the `--payload-format` flag to control how payloads are displayed:
Expand Down
Loading
Loading