Skip to content

tufup hangs on windows image in aws codebuild #146

Answered by dennisvang
dennisvang asked this question in Q&A
Discussion options

You must be logged in to vote

The default shell used by the aws/codebuild/windows-base:2019-3.0 image is windows powershell, i.e. powershell version 5.

This can be verified by running $PSversionTable and checking the logs.

If your key files are written using Out-File in powershell 5, the default encoding for that file will be utf-8 with BOM (byte-order-mark).
This raises an error when securesystemslib (<1.0) tries to read the private key file:

JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig)

However, this error is silently caught by tufup, and tufup then makes another attempt to read the private key, this time with a password prompt.
The password prompt causes the build to hang, because it's waiting fo…

Replies: 1 comment

Comment options

dennisvang
Jun 5, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by dennisvang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant