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

Provide apikey to reporting indexers #2524

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Provide apikey to reporting indexers #2524

merged 2 commits into from
Jan 22, 2024

Conversation

paul-butcher
Copy link
Contributor

What does this change?

The reporting indexers now use an API Key instead of a username and password. This change provides that API Key in the ECS environment.

I have already deployed this change.

Fixes #2520

How to test

Look at the calm_indexer and sierra_indexer. The deployment state should not be FAILED.

Look at the calm indexer input queue and the Sierra indexer input queue. The number of available messages should either be zero, or a very low number. If it is a low number, then wait a bit (possibly looking at the above ECS instances. The messages will be processed by them

How can we measure success?

When new content is published in Sierra or CALM, we will be able to query it in Reporting.

Have we considered potential risks?

This fixes something that has been broken for some months. We should probably have an alarm that can alert us to this failure. The indexers would not start, and messages were hitting their retention period and disappearing. This change does not create any new alert, so if this happens again (e.g. if the API Key is removed), then we may suffer the same problem where we don't spot it until something nearby makes us look. I have raised #2523 to put in an alert.

The API Key itself has been manually created (using the same permissions as the user that the indexers used to use), rather than managed by Terraform. We should look at including this in the critical infrastructure tf, but AFAICT, the previous username/password approach was also manually managed, hence my decision to follow the same approach here

@paul-butcher paul-butcher merged commit 95eda8a into main Jan 22, 2024
1 check passed
@paul-butcher paul-butcher deleted the reporting-indexers branch January 22, 2024 16:21
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.

something has gone awry in the calm adapter
2 participants