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

FFM-9930 Fix 403 when posting metrics for new env #220

Merged
merged 1 commit into from
Nov 15, 2023
Merged

FFM-9930 Fix 403 when posting metrics for new env #220

merged 1 commit into from
Nov 15, 2023

Conversation

jcox250
Copy link
Contributor

@jcox250 jcox250 commented Nov 15, 2023

What

  • Fixes a bug where we'd get a 403 if we created a new environment while the Proxy was running and the Proxy tried to forward metrics for that environment to Saas.

Why

  • When a new env gets created we refresh the auth token that the proxy uses to commuincate with Saas so that it has the new env in the claims. However in the metrics service we were still using the old token that was fetched on startup which meant the metrics request for the new env would get a 403 from Saas.

Testing

  • Manually tested locally

**What**

- Fixes a bug where we'd get a 403 if we created a new environment while
  the Proxy was running and the Proxy tried to forward metrics for that
environment to Saas.

**Why**

- When a new env gets created we refresh the auth token that the proxy
  uses to commuincate with Saas so that it has the new env in the
claims. However in the metrics service we were still using the old token
that was fetched on startup which meant the metrics request for the new
env would get a 403 from Saas.

**Testing**

- Manually tested locally
@jcox250 jcox250 merged commit 96c34ff into v2 Nov 15, 2023
3 checks passed
@jcox250 jcox250 deleted the FFM-9930 branch June 28, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants