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

registry-secrets does not accept an auth token #1297

Open
Page- opened this issue Jun 6, 2019 · 2 comments
Open

registry-secrets does not accept an auth token #1297

Page- opened this issue Jun 6, 2019 · 2 comments

Comments

@Page-
Copy link
Contributor

Page- commented Jun 6, 2019

When using a registry-secrets file with an auth token instead of hardcoded username/password I get the following error

Error validating registry secrets file "registry.json":
data['auths'] should NOT have additional properties

Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/
  • Cli version: 11.0.4
  • Standalone install: no
  • Node version: 10.16.0
  • Npm version: 6.9.0
  • Operating system and architecture: windows 10 x64

Please keep in mind that we try to use the issue tracker of this repository for specific bug reports & CLI feature requests. General & troubleshooting questions are encouraged to be posted to the balena forums where the community can both contribute and benefit from the answers.

Before submitting this issue please check that this issue is not a duplicate. If there is another issue describing the same problem or feature please add your information to the existing issue's comments.

@pdcastro
Copy link
Contributor

pdcastro commented Jun 6, 2019

For what it is worth -- probably only loosely related to this issue -- I know that the password field can be used to store the yaml-escaped contents of a Google Container Registry "keyfile.json" file. balena help push prints an outline for it:

$ balena help push
...
Sample registry-secrets YAML file:

	'eu.gcr.io':  # Google Container Registry
		username: '_json_key'
		password: '{escaped contents of the GCR keyfile.json file}'

@Page-
Copy link
Contributor Author

Page- commented Jun 6, 2019

I actually messed up the file format somewhat because I thought it match the format of .docker/config.json so the correct error for using an auth token instead is actually:

Error validating registry secrets file "registry.json":
data['https://index.docker.io/v1/'] should NOT have additional properties

Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants