balena-cli icon indicating copy to clipboard operation
balena-cli copied to clipboard

Add debug logs when registry secrets are being used

Open LucianBuzzo opened this issue 3 years ago • 3 comments

If you unknowingly have a secrets.json file that has incorrect credentials, it can be really hard to debug why you're builds will start failing with the error:

unauthorized: incorrect username or password

This change adds extra logging that will make it more obvious what's going on when you use --debug.

Change-type: patch Signed-off-by: Lucian Buzzo [email protected]

Resolves: #
Change-type: major|minor|patch
Depends-on:
See:


Please check the CONTRIBUTING.md file for relevant information and some guidance. Keep in mind that the CLI is a cross-platform application that runs on Windows, macOS and Linux. Tests will be automatically run by balena CI on all three operating systems, but this will only help if you have added test code that exercises the modified or added feature code.

Note that each commit message (currently only the first line) will be automatically copied to the CHANGELOG.md file, so try writing it in a way that describes the feature or fix for CLI users.

If there isn't a linked issue or if the linked issue doesn't quite match the PR, please add a PR description to explain its purpose or the features that it implements. Adding PR comments to blocks of code that aren't self explanatory usually helps with the review process.

If the PR introduces security considerations or affects the development, build or release process, please be sure to highlight this in the PR description.

Thank you very much for your contribution!

LucianBuzzo avatar Jun 21 '22 11:06 LucianBuzzo

Your landr site preview has been successfully deployed to https://landr-balena-io-repo-balena-cli-preview-2494.netlify.app

Deployed with Landr 9.4.20

ghost avatar Jun 21 '22 11:06 ghost

@balena-ci retest

LucianBuzzo avatar Jun 21 '22 15:06 LucianBuzzo

@balena-ci retest

dfunckt avatar Jun 22 '22 12:06 dfunckt