Replies: 5 comments 8 replies
-
I have the same kind of request (also evoked in discussion #3505) |
Beta Was this translation helpful? Give feedback.
-
I will give some thoughts on this, right now forward auth token is not implemented because security reasons, :) you wouldn't want npmjs getting all your tokens, so something in the config might be need it to be done to only forward specifically registry you have control, now I have a question for both of you, who the configuration would looks like ? any ideas? |
Beta Was this translation helpful? Give feedback.
-
I Understand the security reasons and as such, I think forwarding auth tokens must be explicit in the configuration file and maybe require https uplink ?
Would something like this make sense ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the idea @flonou , the last weeks I've been refactoring the proxy part I'll consider positively your feature |
Beta Was this translation helpful? Give feedback.
-
thinking on the configuration I want to make it clear this setting is not something should be broadly used. Furthermore will print a warning on the console that mentions it is enabled for X upstream and is not considered a good practice. Also has to be mentioned that any other token configuration on each upstream will be ignored, could be the case one forgot remove previous tokens in order to use this new setup. thoughts? uplinks:
my_main_repository:
url: https://my_main_repo.com
insecure_forward_token: true |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a private registry, publicly accessible, but requires user account credentials.
Now I'm setting up another registry, which should use my private registry (this is in a company which usually has all clients protected, but allows access from a special endpoint to the outside). This second registry of course needs to authenticate against the former private registry.
How can this be done? I know, in "Uplinks" there are "auth" settings. These settings work fine. Unfortunately, I set up my logins to expire after about 3 months, so I would need to update the auth token (locally in this company) and restart Verdaccio. A lot may go wrong here.
Any better idea? Real copy of auth request (bearer and basic) will probably not work, because every instance has its own key for signing afaict.
Beta Was this translation helpful? Give feedback.
All reactions