Git Product home page Git Product logo

acr-login's People

Contributors

cpwxli avatar denverdino avatar dependabot[bot] avatar jacksontian avatar mozillazg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acr-login's Issues

Print more clear `login success` information

In my test, when successfully logging to ACR, it will print the information as below:

I also went through the code and found out the information below indicates successful login.

Run aliyun/acr-login@v1
  with:
    login-server: https://kubevela-registry.cn-hangzhou.cr.aliyuncs.com
    username: ***
    password: ***
    region-id: cn-hangzhou
  env:
    BUCKET: ***
    ENDPOINT: ***
    ACCESS_KEY: ***
    ACCESS_KEY_SECRET: ***
    ARTIFACT_HUB_REPOSITORY_ID: ***

DOCKER_CONFIG environment variable is set

How about we appending some similar information as below?

...

Successfully login to ACR.

bug

Run denverdino/acr-login@v10s
}
Run denverdino/acr-login@v1
with:
login-server: registry.cn-hangzhou.aliyuncs.com
region-id: cn-hangzhou
access-key-id:
access-key-secret:
internal/modules/cjs/loader.js:800
throw err;
^

Error: Cannot find module '@actions/core'
Require stack:

  • /home/runner/work/_actions/denverdino/acr-login/v1/lib/login.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/runner/work/_actions/denverdino/acr-login/v1/lib/login.js:21:27)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/home/runner/work/_actions/denverdino/acr-login/v1/lib/login.js' ]
    }

login success but push fail with err_msg "denied: requested access to the resource is denied"

i follow the readme example, set USER_NAME and PASSWORD,github action login success but push fails
below is github action config file:

- name: Check out the repo
   uses: actions/checkout@v2

- name: Login to ACR
  uses: aliyun/acr-login@v1
  with:
    login-server: https://registry.cn-beijing.aliyuncs.com
    region-id: cn-beijing
    username: "${{ secrets.USERNAME }}"
    password: "${{ secrets.PASSWORD }}"

- name: Build and push image
  env:
    IMAGE_TAG: latest
  run: |
    docker build -t registry.cn-beijing.aliyuncs.com/tmoe/resume_web:$IMAGE_TAG .
    docker push registry.cn-beijing.aliyuncs.com/tmoe/resume_web:$IMAGE_TAG

below is action fail screenshot:
image

I try to exec docker push registry.cn-beijing.aliyuncs.com/tmoe/resume_web:$IMAGE_TAG on my local machine, and it works, but github action can not work. before use acr, i push to dockerhub, it works too.

Cannot login with token - InvalidAccessKeyIdError

2021-05-27 18_01_16-build-deployment-image yml - mai-cms  WSL_ Ubuntu  - Visual Studio Code
2021-05-27 18_00_42-trial 3 acr login · hkai-io_mai-cms@21a5ae5 and 16 more pages - Work - Microsoft

My account has permission 'AliyunContainerRegistryFullAccess'
I can use my access key to configure and access CR using the Aliyun CLI
I had double check the access key and access secret and tried two different pair but still invalid.
Thanks!

Getting /tokens with RAM user failed with 404 USER_NOT_EXIST error

I was experimenting with aliyun command line client against cr Personal Edition. It seems the aliyun cr GetAuthorizationToken command only supports 2016-06-07 API for now

image

Invoking aliyun --access-key-id "$ak" --access-key-secret "$sk" --region cn-beijing cr GetAuthorizationToken will fail with the following error, with http status code being 404 (req id: 77C730C7-CE62-51FD-AC39-2658DCF9EE05). The aksk was for a RAM user with AdministratorAccess role policy.

image

Same command but with access key created from "AccessKey Management" works just fine.

My end goal is to use aksk from a RAM user with only permission to access specified repo. Aksk from "AccessKey Management" does not pertain to the least permission security practice.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.