Fork me on GitHub
#clojars
<
2021-02-12
>
tcrawley21:02:20

I've been thinking about this for a bit. I don't think it would be too difficult/onerous to move to a safer model. I hope to have time to write up a proposal for discussion this weekend.

👍 6
dominicm21:02:02

The key part is the validation right?

dominicm21:02:09

I suppose some easy validations for Clojars without impeding users too much would be GH OAuth, etc.

dominicm21:02:15

The sonatype process is a little onerous, requiring the creation of jira tickets (and we know how much clojurists hate jira) so I think clojars could automate that.

tcrawley22:02:21

Well, I didn't have a chance to write up my thoughts, but they are, roughly: This is indeed a validation problem - we want to validate group names. • org.clojars.<clojars-username> groups - we don't have to do anything here, since we are already validating these • com.github.<github-username> groups - validating these would be straightforward since we already have "Log in with GitHub". We would just need to add some logic there, then deny deploys to those groups until someone that is group owner (or the group creator, if a push will create the group) logs in via GitHub with that username • other reverse-hostname groups - We could validate these automatically with a TXT record. I think initially I would prefer doing so manually with folks filing GH issues, since that would let us see what validation methods work for folks, and wouldn't require as much upfront implementation (so could be released sooner - my availability to work on Clojars is essentially a small amount of time on the weekends ATM) • That leaves non-reverse-hostname groups - these are (generally) less likely to shadow internal artifacts, especially when the group and artifact name are the same (`cheshire/cheshire` , hiccup/hiccup, etc). These require a bit of thought on how to validate. We could: ◦ Allow deployment to continue to existing ones, but don't allow new ones to be created, pushing folks to use reverse-hostname groups ◦ Allow them to be created unvalidated. This isn't a great option, since it would still allow potential shadowing, and would push more folks to using these types of groups since reverse-hostname groups now require validation, and it would be good for us to go the other way as a community. An open question is do we disallow all deploys to an unvalidated group? Or just forbid creation of new artifacts until validation? Or just disallow new group creation until validation? Another easier (implementation-wise) but more painful (for the community) option is to make clojars read-only, and have folks switch to deploying to OSSRH. That would require lots more work from library maintainers, and would change the names of almost everything, so probably isn't a great option. But it would move us to a more vetted/trusted model, and would take some of the burden of maintaining our own package system off of me/the community. That's my $0.02 currently. I would love feedback on this from anyone interested. I can take the discussion here and move it to: https://github.com/clojars/clojars-web/discussions later cc: @U051KLSJF

Alex Miller (Clojure team)22:02:53

personally, I'd like to add friction/resistance to adding new foo/foo names and do whatever we can to encourage either hostname (or copyright/trademark "ownership") or conferred identity via hosts like github

👍 1
Alex Miller (Clojure team)22:02:38

I do not think we need or want to push people to OSSRH, it really is significantly more onerous due to several rules

Alex Miller (Clojure team)22:02:02

not just signing, but silly things for clojurians like source/javadocs

tcrawley22:02:05

I agree there as well, but wanted to present it because it is an option

tcrawley22:02:39

I have moved this discussion to https://github.com/clojars/clojars-web/discussions/777. Let's continue it there if that works for folks

👍 10
Alex Miller (Clojure team)00:02:08

I appreciate your work on this...

tcrawley01:02:58

My pleasure!

Alex Miller (Clojure team)16:02:48

^^ food for serious thought

tcrawley22:02:39

I have moved this discussion to https://github.com/clojars/clojars-web/discussions/777. Let's continue it there if that works for folks

👍 10