▲ | Illniyar 5 days ago | ||||||||||||||||||||||
Solved the problem almost completely in npm. Sure you can't search for a name of a company or a project and expect it to be related to the company or project. But there's no way to solve that. But once you know a namespace is owned by a company or project, you can know that everything under it is legit. Which solves the vast majority of squatting and impersonation problems. Also you know that everything under "node" for example is part of the language. | |||||||||||||||||||||||
▲ | eru 5 days ago | parent [-] | ||||||||||||||||||||||
> Sure you can't search for a name of a company or a project and expect it to be related to the company or project. But there's no way to solve that. There's a way to solve it partially: you can have a special part of your namespace tied to domains and require that eg com.google.some-package be signed by a certificate that can also sign some-package.google.com Of course, there's no guarantee that https://company.com belongs to the company, but the public has already developed ways of coping with that. (I specifically suggest doing that only to part of your namespace, because you still want people to be able to upload packages without having to register a domain first.) | |||||||||||||||||||||||
|