diff --git a/CHANGELOG.md b/CHANGELOG.md index b0382d3fe4..666ab13127 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - User profile UI tweaks ([#3443](https://github.com/grafana/oncall/pull/3443)) +- Ensure stack_id and org_id are ints @mderynck [(#3458](https://github.com/grafana/oncall/pull/3458)) ## v1.3.64 (2023-11-28) diff --git a/grafana-plugin/src/plugin.json b/grafana-plugin/src/plugin.json index 9e6311624e..b492048217 100644 --- a/grafana-plugin/src/plugin.json +++ b/grafana-plugin/src/plugin.json @@ -108,7 +108,7 @@ "headers": [ { "name": "X-Instance-Context", - "content": "{ \"stack_id\": \"{{ .JsonData.stackId }}\", \"org_id\": \"{{ .JsonData.orgId }}\", \"grafana_token\": \"{{ .SecureJsonData.grafanaToken }}\" }" + "content": "{ \"stack_id\": \"{{ printf \"%.0f\" .JsonData.stackId }}\", \"org_id\": \"{{ printf \"%.0f\" .JsonData.orgId }}\", \"grafana_token\": \"{{ .SecureJsonData.grafanaToken }}\" }" }, { "name": "Authorization", @@ -134,7 +134,7 @@ "headers": [ { "name": "X-Instance-Context", - "content": "{ \"stack_id\": \"{{ .JsonData.stackId }}\", \"org_id\": \"{{ .JsonData.orgId }}\" }" + "content": "{ \"stack_id\": \"{{ printf \"%.0f\" .JsonData.stackId }}\", \"org_id\": \"{{ printf \"%.0f\" .JsonData.orgId }}\" }" }, { "name": "Authorization", @@ -149,7 +149,7 @@ "headers": [ { "name": "X-Instance-Context", - "content": "{ \"stack_id\": \"{{ .JsonData.stackId }}\", \"org_id\": \"{{ .JsonData.orgId }}\" }" + "content": "{ \"stack_id\": \"{{ printf \"%.0f\" .JsonData.stackId }}\", \"org_id\": \"{{ printf \"%.0f\" .JsonData.orgId }}\" }" }, { "name": "Authorization", @@ -164,7 +164,7 @@ "headers": [ { "name": "X-Instance-Context", - "content": "{ \"stack_id\": \"{{ .JsonData.stackId }}\", \"org_id\": \"{{ .JsonData.orgId }}\" }" + "content": "{ \"stack_id\": \"{{ printf \"%.0f\" .JsonData.stackId }}\", \"org_id\": \"{{ printf \"%.0f\" .JsonData.orgId }}\" }" }, { "name": "Authorization", @@ -179,7 +179,7 @@ "headers": [ { "name": "X-Instance-Context", - "content": "{ \"stack_id\": \"{{ .JsonData.stackId }}\", \"org_id\": \"{{ .JsonData.orgId }}\" }" + "content": "{ \"stack_id\": \"{{ printf \"%.0f\" .JsonData.stackId }}\", \"org_id\": \"{{ printf \"%.0f\" .JsonData.orgId }}\" }" }, { "name": "Authorization",