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

Not necessary to output to /dev/tty, is forbidden in lambda env #2806

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

kenoir
Copy link
Contributor

@kenoir kenoir commented Jan 9, 2025

What does this change?

For wellcomecollection/platform#5870

A tweak to ensure secret retrieval is logged correctly in the bash secrets lambda extensions.

Screenshot 2025-01-09 at 13 58 30

This error appears in logs in a deployed lambda. I believe this is because /dev/tty is unavailable in the lambda environment, although the command to retrieve the secret is succeeding.

How to test

  • Deploy the change, does the error go away?

How can we measure success?

Less confusing errors, better logs.

Have we considered potential risks?

The 2024-11-18 pipeline is not the production pipeline yet, so a failure should not impact end users.

@kenoir kenoir self-assigned this Jan 9, 2025
@kenoir kenoir requested a review from a team as a code owner January 9, 2025 14:00
@kenoir kenoir merged commit ca01e4f into main Jan 9, 2025
5 checks passed
@kenoir kenoir deleted the rk/bash-secrets-tweak branch January 9, 2025 14:36
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