Closed ohrite closed 2 months ago
While attempting to rotate keys using the steps in the runbook, this command failed:
$ aws iam create-access-key --user-name cal-itp-default --profile cal-itp
An error occurred (AccessDenied) when calling the CreateAccessKey operation: User: arn:aws:iam::xxx:user/system/cal-itp-default is not authorized to perform: iam:CreateAccessKey on resource: user cal-itp-default with an explicit deny in an identity-based policy
On 9/15/2024 at 6am UTC, the sync_littlepay
job failed to copy Littlepay logs from S3, and is continuing to fail.
Littlepay recommends rotating agency-specific AWS credentials every 90 days. The Littlepay AWS credentials currently in use were created prior to April. After discussion with @vevetron, we suspect the credentials have expired, and we are no longer able to regenerate new access key/id pairs for rotation.
The credentials will continue to expire at some point after each 90 day window, as designed.
The feeds have since begun working again. The following email was sent by Littlepay in response:
Please can I ask you to try to access data feeds again? This is an issue that appears to have affected multiple merchants, and a fix has been launched. If you could please let me know if this fix is working for you.
Airflow jobs aren't failing, can be marked completed
Describe the bug The
sync_littlepay
job in Composer has started failing as of the Sunday @ 11pm Pacific (2024-09-16Z06:00:00) run. In this case, MST is Monterey-Salinas Transit.The following log entries are visible:
To Reproduce After configuring
aws
CLI with the key id/secret pair from Google Secrets Manager, running the following command reproduces the error:Expected behavior The log entry does not appear and synchronization is able to finish for Monterey-Salinas Transit.
Additional context The following runbook applies to this situation: https://github.com/cal-itp/data-infra/blob/main/runbooks/workflow/creating-maintaining-littlepay-data-syncs.md