solo-io / wasm

Web Assembly tools and SDKs for extending cloud-native infrastructure
Apache License 2.0
306 stars 40 forks source link

WASME cli doesnt work with oracle open cloud initiative compliant repository. #264

Open sumitaneja opened 3 years ago

sumitaneja commented 3 years ago

Using Oracle cloud infra repository which is compliant with OCI registry https://docs.oracle.com/en-us/iaas/Content/Registry/Concepts/registryoverview.htm

cli fails in login with not found.

for wasme push gves below error oras push failed: no scope specified for token auth challenge

Sodman commented 3 years ago

Wasme falls back to using the docker credentials when it's talking to a non-wasmhub registry. If you use docker login to log into the registry first, then wasme push will use those credentials.

sumitaneja commented 3 years ago

@Sodman this is not working


docker login iad.ocir.io/<repo>
Authenticating with existing credentials...
Login Succeeded

wasme push iad.ocir.io/<repo>/<image>:v1
INFO[0000] Pushing image iad.ocir.io/<repo>/<image>:v1
Error: All attempts fail:
#1: oras push failed: no scope specified for token auth challenge
sumitaneja commented 3 years ago

wasme --version wasme version 0.0.33

Sodman commented 3 years ago

Looks like this would be solved by implementing https://github.com/solo-io/wasm/issues/241 - for now it looks like that user managed a workaround, see this comment for more details.

sumitaneja commented 3 years ago

@Sodman no luck


oras login iad.ocir.io/<repo> 
Username: <uname>
Password: <pwd>
Login Succeeded

 wasme push iad.ocir.io/<repo>/<image>:v1
INFO[0000] Pushing image iad.ocir.io/<repo>/<image>:v1
Error: All attempts fail:
#1: oras push failed: no scope specified for token auth challenge
sumitaneja commented 3 years ago

fyi https://github.com/solo-io/wasm/issues/129#issuecomment-789189355 helps