Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CA PHL's ReportStream Sender #165

Merged
merged 2 commits into from
Sep 18, 2024
Merged
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
2 changes: 1 addition & 1 deletion operations/template/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resource "azurerm_linux_web_app" "sftp" {
AZURE_STORAGE_CONNECTION_STRING = azurerm_storage_account.storage.primary_blob_connection_string
REPORT_STREAM_URL_PREFIX = "https://${local.rs_domain_prefix}prime.cdc.gov"
AZURE_KEY_VAULT_URI = azurerm_key_vault.key_storage.vault_uri
CA_PHL_CLIENT_NAME = "flexion.simulated-lab"
CA_PHL_CLIENT_NAME = "ca-phl.etor-nbs-results"
QUEUE_MAX_DELIVERY_ATTEMPTS = azurerm_eventgrid_system_topic_event_subscription.topic_sub.retry_policy.0.max_delivery_attempts # making the Azure container <-> queue retry count be in sync with the queue <-> application retry count..
}

Expand Down
2 changes: 1 addition & 1 deletion src/senders/report_stream_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (sender Sender) getToken() (string, error) {
}

data := url.Values{
"scope": {"flexion.*.report"},
"scope": {"ca-phl.*.report"},
"grant_type": {"client_credentials"},
"client_assertion_type": {"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},
"client_assertion": {senderJwt},
Expand Down
Loading