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

No clear way of pushing a signature to a specific organization #121

Open
pojntfx opened this issue Nov 16, 2023 · 0 comments
Open

No clear way of pushing a signature to a specific organization #121

pojntfx opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pojntfx
Copy link
Member

pojntfx commented Nov 16, 2023

There is currently no clear way of how pushing a signature to a specific organization/prefix would work, and logins with login -o have no effect on where the signature is being pushed to.

Versions used:

pojntfx@fedora:~$ go version
go version go1.21.1 linux/amd64
pojntfx@fedora:~$ scale version
scale version v0.1.7-dev12 (build date: Sat Oct 21 00:42:52 UTC 2023 git commit: 676f8de0feb1371469be159c3de896848f4e61e5 go version: go1.21.3 build platform: linux/amd64)

Steps to reproduce:

$ scale login -o atmosfeed

Confirmation Code: XHEHUTAA
Opening browser to https://scale.sh/device-auth?code=XHEHUTAA&organization=atmosfeed

If something goes wrong, copy and paste this URL into your browser: https://scale.sh/device-auth?code=XHEHUTAA&organization=atmosfeed

Logged in as [email protected] (using organization felicitaspojtinger)
$ scale registry signature push local/classifier:latest
Pushed signature felicitaspojtinger/classifier:latest to the Scale Registry
The following packages are now publicly available:
  Golang (Guest): go.scale.sh/v1/felicitaspojtinger/classifier/latest/guest
  Golang (Host): go.scale.sh/v1/felicitaspojtinger/classifier/latest/host
  Rust (Guest): felicitaspojtinger_classifier_latest_guest

I would have expected the signature classifier to have been pushed to atmosfeed/classifier instead of felicitaspojtinger/classifier.

It is also not possible to create a signature with an org in the name locally, adding to the confusion:

$ scale signature generate atmosfeed/classifier:latest -d ./pkg/signatures/classifier
Error: invalid name 'atmosfeed/classifier', names can only include letters, numbers, periods (`.`), and dashes (`-`)
@pojntfx pojntfx added the bug Something isn't working label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants