http://streams/{topic}
{ "headers": {}, "payload": "can be text, an embedded JSON structure, or some other encoded format", "restricted_payload": "" }
{ "headers": { "message_class": "regular", "message_type": "gts.synapps.unique_type_name", "account": { "id": "ou_short_id" }, "object_id": "v4_uuid", "transaction_id": "v4_uuid", "message_format": "some/mimetype", "encryption_key": "<base64_encoded_encrypted_string_if_payload_is_encrypted>", "key_version": 1, "restricted_data_encryption_key": "<base64_encoded_encrypted_string_if_payload_is_encrypted>", "restricted_key_version": 1, "sender_service": "", "action": {}, "stream": {} } }
. This token is required to authenticate API requests./vault/secrets/token
API category | URL (within cluster) | URL (external) |
|---|---|---|
Messaging (with Consumer Group) | ||
./vault/secrets/token
TOKEN=$(cat /vault/secrets/token) curl -H "Authorization: Bearer $TOKEN" \ -H "Connection: close" \ -d '{"message": "testing 123"}' \ http://streams/mytopic
TOKEN=$(cat /vault/secrets/token) curl -H "Authorization: Bearer $TOKEN" \ -H "Connection: close" \ http://streams/mytopic GET <base-url>/<topic> GET <base-url>/<topic>/<consumerGroup>
TOKEN=$(cat /vault/secrets/token) curl -H "Authorization: Bearer $TOKEN" \ -N -H "Connection: close" \ http://streams/mytopic?tail=true GET <base-url>/<topic>?tail=true GET <base-url>/<topic>/<consumerGroup>?tail=true
query parameter. Filters can be applied to both the message payload (q
)data
)headers
q=data.testing==123
q=headers.message_class==mymessageclass
q=data.testing==123&&data.extra.say==blah
q=headers.message_class==mymessageclass||data.testing!=123
apiVersion: apps/v1 kind: Deployment metadata: annotations: vault.hashicorp.com/agent-inject: "true" vault.hashicorp.com/agent-inject-token: "true" vault.hashicorp.com/role: "my-data-streaming-service"
inside the container. This token must be used to authenticate with DSS APIs./vault/secrets/token
apiVersion: synapps.kyndryl.com/v1 kind: Topic metadata: annotations: synapps/keep: "true" helm.sh/resource-policy: keep name: spec: partitions: retentionMs: cleanupPolicy: