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
npm token create password (npm token) #541
Comments
@tvb ??? |
I am trying to create a token on the server itself as I still have issues getting authenticated by login in. |
|
But it sounds like a good research for somebody is willing to contribute 👍 |
@juanpicado how can I easily create a token now, without having to use npm login? Needed for ci/cd |
Just login with verdaccio and took it from |
I can't get it to work. Whenever I login this ends up in my .npmrc file:
|
@juanpicado Exactly this. Not sure what the solution is. While this setup works for me as I am using the AWS Parameter Store to store my hashed password safely and encrypted the token would simplify the setup |
Options:
|
Using an older version of node via Docker is also an option, just not a great one.
|
Hi, this issue is in Pick up for v4, I would love to pick it up and contribute... |
You can do it right now following these steps.. ( i think this might be the old way, but it is working for me on NPMJS)
#auth can be generate by username:password
echo -n 'usernm:passwd' | openssl base64
#output YWRtaW46YWRtaW4xMjN=
docker build -t verdaccio --build-arg NPMTOKEN=$NPMTOKEN . COPY .npmrc ./
RUN [[ -z "$NPMTOKEN" ]] && exit 1 || echo "_auth=${NPMTOKEN}" >> .npmrc
RUN npm ci
:) |
This is an effor of: This commit intent to provide npm token support. https: //github.com//issues/541 https: //github.com//pull/1271 https: //github.com/verdaccio/local-storage/pull/168 Co-Authored-By: Manuel Spigolon <behemoth89@gmail.com> Co-Authored-By: Juan Gabriel Jiménez <juangabreil@gmail.com>
If you want to try a PoC, feel free to share feedback.
|
How to use it? |
You want me to install this on verdaccio directly? i'm using verdaccio on docker. |
Docker image for testing is not available yet, but it will. I'll let you know @carlosen14 in the next week. |
ok, i did So, there is a token, i copied from there!
On CICD i put it using
|
* feat: support for npm token This is an effor of: This commit intent to provide npm token support. https: //github.com//issues/541 https: //github.com//pull/1271 https: //github.com/verdaccio/local-storage/pull/168 Co-Authored-By: Manuel Spigolon <behemoth89@gmail.com> Co-Authored-By: Juan Gabriel Jiménez <juangabreil@gmail.com> * chore: update secrets baselines Co-Authored-By: Liran Tal <liran.tal@gmail.com> * chore: update lock file * chore: add logger mock methods * chore: update @verdaccio/types * refactor: unit test was flacky adapt the pkg access to the new configuration setup * refactor: add plugin methods validation * test: add test for aesEncrypt * chore: update local-storage dependency * chore: add support for experimetns token will be part of the experiment lists * chore: increase timeout * chore: increase timeout threshold * chore: update nock * chore: update dependencies * chore: update eslint config * chore: update dependencies * test: add unit test for npm token * chore: update readme
🤖This thread has been automatically locked 🔒 since there has not been any recent activity after it was closed. |
What is the password asking its for?
The text was updated successfully, but these errors were encountered: