0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-04 02:02:39 -05:00
verdaccio/website/translated_docs/sr-SP/packages.md
Juan Picado 0165ac1cd1
docs(website): new cCrowdin updates (#2324)
* docs(website): new translation for logo.md in Korean

* docs(website): new translation for logo.md in Polish

* docs(website): new translation for logo.md in Portuguese

* docs(website): new translation for logo.md in Russian

* docs(website): new translation for logo.md in Serbian (Cyrillic)

* docs(website): new translation for logo.md in Chinese Simplified

* docs(website): new translation for logo.md in Chinese Traditional

* docs(website): new translation for logo.md in Vietnamese

* docs(website): new translation for logo.md in Galician

* docs(website): new translation for logo.md in Portuguese, Brazilian

* docs(website): new translation for logo.md in Hindi

* docs(website): new translation for logger.md in Hindi

* docs(website): new translation for logger.md in Galician

* docs(website): new translation for linking.md in Chinese Simplified

* docs(website): new translation for logger.md in Spanish

* docs(website): new translation for linking.md in Chinese Traditional

* docs(website): new translation for linking.md in Vietnamese

* docs(website): new translation for linking.md in Galician

* docs(website): new translation for amazon.md in French

* docs(website): new translation for linking.md in Hindi

* docs(website): new translation for linking.md in Filipino

* docs(website): new translation for linking.md in Serbian (Latin)

* docs(website): new translation for linking.md in Tajik

* docs(website): new translation for linking.md in Yoruba

* docs(website): new translation for logger.md in Romanian

* docs(website): new translation for logger.md in French

* docs(website): new translation for logger.md in Arabic

* docs(website): new translation for logger.md in Vietnamese

* docs(website): new translation for logger.md in Czech

* docs(website): new translation for logger.md in German

* docs(website): new translation for logger.md in Italian

* docs(website): new translation for logger.md in Japanese

* docs(website): new translation for logger.md in Korean

* docs(website): new translation for logger.md in Polish

* docs(website): new translation for logger.md in Portuguese

* docs(website): new translation for logger.md in Russian

* docs(website): new translation for logger.md in Serbian (Cyrillic)

* docs(website): new translation for logger.md in Chinese Simplified

* docs(website): new translation for logger.md in Chinese Traditional

* docs(website): new translation for install.md in Arabic

* docs(website): new translation for reverse-proxy.md in German

* docs(website): new translation for repositories.md in Hindi

* docs(website): new translation for repositories.md in Filipino

* docs(website): new translation for repositories.md in Serbian (Latin)

* docs(website): new translation for repositories.md in Tajik

* docs(website): new translation for repositories.md in Yoruba

* docs(website): new translation for reverse-proxy.md in Romanian

* docs(website): new translation for reverse-proxy.md in French

* docs(website): new translation for reverse-proxy.md in Spanish

* docs(website): new translation for reverse-proxy.md in Arabic

* docs(website): new translation for reverse-proxy.md in Czech

* docs(website): new translation for reverse-proxy.md in Italian

* docs(website): new translation for repositories.md in Galician

* docs(website): new translation for reverse-proxy.md in Japanese

* docs(website): new translation for reverse-proxy.md in Korean

* docs(website): new translation for reverse-proxy.md in Polish

* docs(website): new translation for reverse-proxy.md in Portuguese

* docs(website): new translation for reverse-proxy.md in Russian

* docs(website): new translation for reverse-proxy.md in Serbian (Cyrillic)

* docs(website): new translation for reverse-proxy.md in Chinese Simplified

* docs(website): new translation for reverse-proxy.md in Chinese Traditional

* docs(website): new translation for reverse-proxy.md in Vietnamese

* docs(website): new translation for reverse-proxy.md in Galician

* docs(website): new translation for reverse-proxy.md in Portuguese, Brazilian

* docs(website): new translation for repositories.md in Portuguese, Brazilian

* docs(website): new translation for repositories.md in Vietnamese

* docs(website): new translation for reverse-proxy.md in Filipino

* docs(website): new translation for repositories.md in French

* docs(website): new translation for puppet.md in Chinese Simplified

* docs(website): new translation for puppet.md in Chinese Traditional

* docs(website): new translation for puppet.md in Vietnamese

* docs(website): new translation for puppet.md in Galician

* docs(website): new translation for puppet.md in Portuguese, Brazilian

* docs(website): new translation for puppet.md in Hindi

* docs(website): new translation for puppet.md in Filipino

* docs(website): new translation for puppet.md in Serbian (Latin)

* docs(website): new translation for puppet.md in Tajik

* docs(website): new translation for puppet.md in Yoruba

* docs(website): new translation for repositories.md in Romanian

* docs(website): new translation for repositories.md in Spanish

* docs(website): new translation for repositories.md in Chinese Traditional

* docs(website): new translation for repositories.md in Arabic

* docs(website): new translation for repositories.md in Czech

* docs(website): new translation for repositories.md in German

* docs(website): new translation for repositories.md in Italian

* docs(website): new translation for repositories.md in Japanese

* docs(website): new translation for repositories.md in Korean

* docs(website): new translation for repositories.md in Polish

* docs(website): new translation for repositories.md in Portuguese

* docs(website): new translation for repositories.md in Russian

* docs(website): new translation for repositories.md in Serbian (Cyrillic)

* docs(website): new translation for repositories.md in Chinese Simplified

* docs(website): new translation for reverse-proxy.md in Hindi

* docs(website): new translation for reverse-proxy.md in Serbian (Latin)

* docs(website): new translation for puppet.md in Russian

* docs(website): new translation for server.md in Chinese Traditional

* docs(website): new translation for server.md in Czech

* docs(website): new translation for server.md in German

* docs(website): new translation for server.md in Italian

* docs(website): new translation for server.md in Japanese

* docs(website): new translation for server.md in Korean

* docs(website): new translation for server.md in Polish

* docs(website): new translation for server.md in Portuguese

* docs(website): new translation for server.md in Russian

* docs(website): new translation for server.md in Serbian (Cyrillic)

* docs(website): new translation for server.md in Chinese Simplified

* docs(website): new translation for server.md in Vietnamese

* docs(website): new translation for server.md in Spanish

* docs(website): new translation for server.md in Galician

* docs(website): new translation for server.md in Portuguese, Brazilian

* docs(website): new translation for server.md in Hindi

* docs(website): new translation for server.md in Filipino

* docs(website): new translation for server.md in Serbian (Latin)

* docs(website): new translation for server.md in Tajik

* docs(website): new translation for server.md in Yoruba

* docs(website): new translation for ssl.md in Romanian

* docs(website): new translation for ssl.md in French

* docs(website): new translation for ssl.md in Spanish

* docs(website): new translation for ssl.md in Arabic

* docs(website): new translation for server.md in Arabic

* docs(website): new translation for server.md in French

* docs(website): new translation for reverse-proxy.md in Tajik

* docs(website): new translation for reverse-proxy.md in Yoruba

* docs(website): new translation for server.md in Romanian

* docs(website): new translation for puppet.md in Serbian (Cyrillic)

* docs(website): new translation for puppet.md in Portuguese

* docs(website): new translation for plugins.md in French

* docs(website): new translation for plugins.md in Romanian

* docs(website): new translation for plugins.md in Spanish

* docs(website): new translation for puppet.md in Polish

* docs(website): new translation for protect-your-dependencies.md in Filipino

* docs(website): new translation for protect-your-dependencies.md in Polish

* docs(website): new translation for protect-your-dependencies.md in Portuguese

* docs(website): new translation for protect-your-dependencies.md in Russian

* docs(website): new translation for protect-your-dependencies.md in Serbian (Cyrillic)

* docs(website): new translation for protect-your-dependencies.md in Chinese Simplified

* docs(website): new translation for protect-your-dependencies.md in Chinese Traditional

* docs(website): new translation for protect-your-dependencies.md in Vietnamese

* docs(website): new translation for protect-your-dependencies.md in Galician

* docs(website): new translation for protect-your-dependencies.md in Portuguese, Brazilian

* docs(website): new translation for protect-your-dependencies.md in Hindi

* docs(website): new translation for protect-your-dependencies.md in Serbian (Latin)

* docs(website): new translation for protect-your-dependencies.md in Japanese

* docs(website): new translation for protect-your-dependencies.md in Tajik

* docs(website): new translation for protect-your-dependencies.md in Yoruba

* docs(website): new translation for puppet.md in Romanian

* docs(website): new translation for puppet.md in French

* docs(website): new translation for puppet.md in Spanish

* docs(website): new translation for puppet.md in Arabic

* docs(website): new translation for puppet.md in Czech

* docs(website): new translation for puppet.md in German

* docs(website): new translation for puppet.md in Italian

* docs(website): new translation for puppet.md in Japanese

* docs(website): new translation for puppet.md in Korean

* docs(website): new translation for protect-your-dependencies.md in Korean

* docs(website): new translation for protect-your-dependencies.md in Italian

* docs(website): new translation for plugins.md in Arabic

* docs(website): new translation for plugins.md in Vietnamese

* docs(website): new translation for plugins.md in Czech

* docs(website): new translation for plugins.md in German

* docs(website): new translation for plugins.md in Italian

* docs(website): new translation for plugins.md in Japanese

* docs(website): new translation for plugins.md in Korean

* docs(website): new translation for plugins.md in Polish

* docs(website): new translation for plugins.md in Portuguese

* docs(website): new translation for plugins.md in Russian

* docs(website): new translation for plugins.md in Serbian (Cyrillic)

* docs(website): new translation for plugins.md in Chinese Simplified

* docs(website): new translation for plugins.md in Chinese Traditional

* docs(website): new translation for plugins.md in Galician

* docs(website): new translation for protect-your-dependencies.md in German

* docs(website): new translation for plugins.md in Portuguese, Brazilian

* docs(website): new translation for plugins.md in Hindi

* docs(website): new translation for plugins.md in Filipino

* docs(website): new translation for plugins.md in Serbian (Latin)

* docs(website): new translation for plugins.md in Tajik

* docs(website): new translation for plugins.md in Yoruba

* docs(website): new translation for protect-your-dependencies.md in Romanian

* docs(website): new translation for protect-your-dependencies.md in French

* docs(website): new translation for protect-your-dependencies.md in Spanish

* docs(website): new translation for protect-your-dependencies.md in Arabic

* docs(website): new translation for protect-your-dependencies.md in Czech

* docs(website): new translation for install.md in Czech

* docs(website): new translation for linking.md in Portuguese, Brazilian

* docs(website): new translation for install.md in Spanish

* docs(website): new translation for caching.md in Serbian (Cyrillic)

* docs(website): new translation for caching.md in Spanish

* docs(website): new translation for caching.md in Arabic

* docs(website): new translation for caching.md in Czech

* docs(website): new translation for caching.md in German

* docs(website): new translation for caching.md in Italian

* docs(website): new translation for caching.md in Japanese

* docs(website): new translation for caching.md in Korean

* docs(website): new translation for caching.md in Polish

* docs(website): new translation for caching.md in Portuguese

* docs(website): new translation for caching.md in Russian

* docs(website): new translation for caching.md in Chinese Simplified

* docs(website): new translation for caching.md in Romanian

* docs(website): new translation for caching.md in Chinese Traditional

* docs(website): new translation for caching.md in Vietnamese

* docs(website): new translation for caching.md in Galician

* docs(website): new translation for caching.md in Portuguese, Brazilian

* docs(website): new translation for caching.md in Hindi

* docs(website): new translation for caching.md in Filipino

* docs(website): new translation for caching.md in Serbian (Latin)

* docs(website): new translation for install.md in French

* docs(website): new translation for caching.md in Yoruba

* docs(website): new translation for chef.md in Romanian

* docs(website): new translation for chef.md in French

* docs(website): new translation for caching.md in French

* docs(website): new translation for best-practices.md in Yoruba

* docs(website): new translation for chef.md in Arabic

* docs(website): new translation for best-practices.md in Korean

* docs(website): new translation for best-practices.md in Romanian

* docs(website): new translation for who-is-using.md in Russian

* docs(website): new translation for windows.md in Serbian (Latin)

* docs(website): new translation for windows.md in Tajik

* docs(website): new translation for windows.md in Yoruba

* docs(website): new translation for windows.md in Hindi

* docs(website): new translation for en.json in Chinese Simplified

* docs(website): new translation for windows.md in Filipino

* docs(website): new translation for windows.md in Portuguese, Brazilian

* docs(website): new translation for who-is-using.md in Serbian (Cyrillic)

* docs(website): new translation for windows.md in Spanish

* docs(website): new translation for who-is-using.md in Chinese Simplified

* docs(website): new translation for who-is-using.md in Chinese Traditional

* docs(website): new translation for who-is-using.md in Vietnamese

* docs(website): new translation for who-is-using.md in Galician

* docs(website): new translation for who-is-using.md in Portuguese, Brazilian

* docs(website): new translation for who-is-using.md in Hindi

* docs(website): new translation for who-is-using.md in Filipino

* docs(website): new translation for who-is-using.md in Serbian (Latin)

* docs(website): new translation for who-is-using.md in Tajik

* docs(website): new translation for who-is-using.md in Yoruba

* docs(website): new translation for windows.md in Romanian

* docs(website): new translation for windows.md in French

* docs(website): new translation for windows.md in Arabic

* docs(website): new translation for windows.md in Galician

* docs(website): new translation for windows.md in Czech

* docs(website): new translation for windows.md in German

* docs(website): new translation for windows.md in Italian

* docs(website): new translation for windows.md in Japanese

* docs(website): new translation for windows.md in Korean

* docs(website): new translation for windows.md in Polish

* docs(website): new translation for windows.md in Portuguese

* docs(website): new translation for windows.md in Russian

* docs(website): new translation for windows.md in Serbian (Cyrillic)

* docs(website): new translation for windows.md in Chinese Simplified

* docs(website): new translation for windows.md in Chinese Traditional

* docs(website): new translation for windows.md in Vietnamese
2021-07-11 18:01:00 +02:00

8.8 KiB
Raw Blame History

id title
packages Package Access

This is a series of constraints that allow or restrict access to the local storage based on specific criteria.

Сигурност пада на плећа plugina који се користи. По правилу, verdaccio користи htpasswd plugin. Ако користите различит plugin, начин извршавања (behaviour) би такође могао бити промењен. Подразумевани plugin не руководи (handle) са allow_access и allow_publish самостално, већ користи интерни fallback у случају да не постоји спремни plugin.

За више информација о дозволама, посетите authentification секцију на wiki.

Коришћење

packages:
  # scoped packages
  '@scope/*':
    access: $all
    publish: $all
    proxy: server2

  'private-*':
    access: $all
    publish: $all
    proxy: uplink1

  '**':
    # allow all users (including non-authenticated users) to read and
    # publish all packages
    access: $all
    publish: $all
    proxy: uplink2

ако ништа није прецизирано, остаје како је подразумевано

packages:
  '**':
    access: $all
    publish: $authenticated

The list internal groups handled by verdaccio are:

'$all', '$anonymous', '@all', '@anonymous', 'all', 'undefined', 'anonymous'

Сви корисници примају све наведено како би подесили овлашћења независно од тога јесу ли анонимна или више група није омогућено од стране плугина, а у случају да је тако htpasswd враћа username као групу. На пример, ако сте пријављени као npmUser листа група ће изгледати овако.

// groups without '$' are going to be deprecated eventually
'$all', '$anonymous', '@all', '@anonymous', 'all', 'undefined', 'anonymous', 'npmUser'

Ако желите да заштитите специфични сет пакета у оквиру групе, потребно је да урадите овако нешто. Користимо Regex који покрива све npmuser- пакете са префиксима. Препоручујемо коришћење префикса за Ваше пакете, јер ћете их на тај начин лакше заштитити.

packages:
  'npmuser-*':
    access: npmuser
    publish: npmuser

Рестартујте verdaccio и у својој конзоли пробајте да инсталирате npmuser-core.

$ npm install npmuser-core
npm install npmuser-core
npm ERR! code E403
npm ERR! 403 Forbidden: npmuser-core@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user/.npm/_logs/2017-07-02T12_20_14_834Z-debug.log

Можете променити постојећи behaviour коришћењем различите plugin аутентификације. verdaccio проверава да ли корисник који је покушао да приступи неком пакету или публикује пакет припада исправној групи корисника.

Please note that if you set the access permission of a package to something that requires Verdaccio to check your identity, for example $authenticated, npm does not send your access key by default when fetching packages. This means all requests for downloading packages will be rejected as they are made anonymously even if you have logged in. To make npm include you access key with all requests, you should set the always-auth npm setting to true on any client machines. This can be accomplished by running:

$ npm config set always-auth=true

Подешавање мултиплих група

Defining multiple access groups is fairly easy, just define them with a white space between them.

  'company-*':
    access: admin internal
    publish: admin
    proxy: server1
  'supersecret-*':
    access: secret super-secret-area ultra-secret-area
    publish: secret ultra-secret-area
    proxy: server1

Блокирање приступа сету пакета

If you want to block the access/publish to a specific group of packages. Just do not define access and publish.

packages:
  'old-*':
  '**':
    access: $all
    publish: $authenticated

Блокирање proxying-а за сет специфичних пакета

You might want to block one or several packages from fetching from remote repositories., but, at the same time, allow others to access different uplinks.

Let's see the following example:

packages:
  'jquery':
    access: $all
    publish: $all
  'my-company-*':
    access: $all
    publish: $authenticated
  '@my-local-scope/*':
    access: $all
    publish: $authenticated
  '**':
    access: $all
    publish: $authenticated
    proxy: npmjs

Let's describe what we want with the above example:

  • Желим да хостујем свој jquery dependency али истовремено желим да избегнем њено proxying-овање.
  • Желим све dependencies које се поклапају са my-company-* али уједно имам потребу да избегнем њихово proxying-овање.
  • Желим све dependencies које су у my-local-scope али уједно желим да избегнем њихово proxying-овање.
  • Желим да proxying-ујем све остале dependencies.

Be aware that the order of your packages definitions is important and always use double wilcard. Because if you do not include it verdaccio will include it for you and the way that your dependencies are resolved will be affected.

You may assign multiple uplinks for use as a proxy to use in the case of failover, or where there may be other private registries in use.

'**':
  access: $all
  publish: $authenticated
  proxy: npmjs uplink2

Unpublishing Packages

The property publish handle permissions for npm publish and npm unpublish. But, if you want to be more specific, you can use the property unpublish in your package access section, for instance:

packages:
  'jquery':
    access: $all
    publish: $all
    unpublish: root
  'my-company-*':
    access: $all
    publish: $authenticated
    unpublish:
  '@my-local-scope/*':
    access: $all
    publish: $authenticated
    # unpublish: property commented out
  '**':
    access: $all
    publish: $authenticated
    proxy: npmjs

In the previous example, the behaviour would be described:

  • all users can publish the jquery package, but only the user root would be able to unpublish any version.
  • only authenticated users can publish my-company-* packages, but nobody would be allowed to unpublish them.
  • If unpublish is commented out, the access will be granted or denied by the publish definition.

Конфигурисање

You can define mutiple packages and each of them must have an unique Regex. The syntax is based on minimatch glob expressions.

Својство Тип Неопходно Пример Подршка Опис
access string Не $all all дефинише групе којима је дозвољен приступ пакету
publish string Не $authenticated all дефинише групе којима је дозвољено да публикују
proxy string Не npmjs all лимитира look ups за специфични uplink
storage string Не string /some-folder креира под-фолдер унутрар storage фолдера за сваки приступ пакетима

We higlight that we recommend to not use allow_access/allow_publish and proxy_access anymore, those are deprecated and will soon be removed, please use the short version of each of those (access/publish/proxy).

If you want more information about how to use the storage property, please refer to this comment.