Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
sinopia-gitlab-api-v4
Advanced tools
Readme
Sinopia plugin for Gitlab authentication and package access/publish authorization.
This plugin allows authentication to Sinopia using a gitlab username and password. It also checks access levels for users and projects before allowing access to project code (minimum level "Reporter") or publish access (minimum level "Master").
auth:
gitlab:
gitlab_server: https://git.example.com
gitlab_admin_private_token: XXXXXXXXXXXX # (Recommended) You can use private token here
gitlab_use_scope_as_group: false # (Optional) Match scope as group (Default false)group/scope-project
gitlab_project_prefix: npm- # (Optional) Use this if you prefix your projects in gitlab
gitlab_retain_group: false # (Optional) Use this to retain group name when perform project name conversion
#gitlab_ca_file: /path/to/ca/ca.crt # (Optional) Use for self-signed certificates
packages:
'@*/*':
gitlab: true
'scope-*':
gitlab: true
'prefix-*':
gitlab: true
'*':
allow_access: $authenticated
allow_publish: []
proxy: npmjs
// Import
var SinopiaGitlab = require('sinopia-gitlab');
// Initialize
var sinopiaGitlab = SinopiaGitlab({
// your configuration goes here
gitlab_project_prefix: '',
gitlab_use_scope_as_group: false,
gitlab_namespaces: [],
gitlab_retain_group: false
}, {
// Set environment to test config
_test_config: true
});
// Run test
var packageName = '@ns/scope-name';
sinopiaGitlab._testConfig(packageName, function(err, result) {
// Check the conversion result
console.log(result);
});
// This only show the process of conversion of one entry of gitlab_namespaces
// package name is '@ns/scope-name'
i = 0
if (gitlab_use_scope_as_group)
namespace = gitlab_retain_group ? 'ns/scope' : 'scope'
else
namespace = 'ns'
project = gitlab_project_prefix + 'name'
if (gitlab_namespaces[i])
namespace = gitlab_retain_group ? namespace + '/' + gitlab_namespaces[i] : gitlab_namespaces[i]
gitlab_project_prefix: ''
gitlab_use_scope_as_group: false
gitlab_namespaces: []
gitlab_retain_group: false
NPM Project Name | GitLab Project Name |
---|---|
project-a | project-a |
@mysterious/project-b | mysterious/project-b |
gitlab_project_prefix: 'my-'
gitlab_use_scope_as_group: false
gitlab_namespaces: []
gitlab_retain_group: false
NPM Project Name | GitLab Project Name |
---|---|
project-a | my-project-a |
@mysterious/project-b | mysterious/my-project-b |
gitlab_project_prefix: ''
gitlab_use_scope_as_group: true
gitlab_namespaces: []
gitlab_retain_group: false
NPM Project Name | GitLab Project Name |
---|---|
project-a | project/a |
@mysterious/project-b | project/b |
gitlab_project_prefix: ''
gitlab_use_scope_as_group: false
gitlab_namespaces: [npm]
gitlab_retain_group: false
NPM Project Name | GitLab Project Name |
---|---|
project-a | npm/project-a |
@mysterious/project-b | npm/project-b |
gitlab_project_prefix: 'my-'
gitlab_use_scope_as_group: true
gitlab_namespaces: [npm]
gitlab_retain_group: false
NPM Project Name | GitLab Project Name |
---|---|
project-a | npm/my-a |
@mysterious/project-b | npm/my-b |
gitlab_project_prefix: 'my-'
gitlab_use_scope_as_group: false
gitlab_namespaces: [npm]
gitlab_retain_group: true
NPM Project Name | GitLab Project Name |
---|---|
project-a | npm/my-project-a |
@mysterious/project-b | npm/mysterious/my-project-b |
gitlab_project_prefix: 'my-'
gitlab_use_scope_as_group: true
gitlab_namespaces: [npm]
gitlab_retain_group: true
NPM Project Name | GitLab Project Name |
---|---|
project-a | npm/project/my-a |
@mysterious/project-b | npm/mysterious/project/my-b |
FAQs
Gitlab authentication plugin for sinopia
The npm package sinopia-gitlab-api-v4 receives a total of 0 weekly downloads. As such, sinopia-gitlab-api-v4 popularity was classified as not popular.
We found that sinopia-gitlab-api-v4 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.