perun

Discuss perun static site generator
juhoteperi 2016-01-18T00:00:20.000073Z

And I think it would make sense to keep built-in tasks to minimum and provide this kind of tasks as separate packages.

podviaznikov 2016-01-18T00:01:37.000074Z

I remember @micha was talking at some point about using either contentful or https://prismic.io/ with perun

podviaznikov 2016-01-18T00:02:33.000076Z

@juhoteperi: so I have

(import java.io.File)

(configure-repositories!
 (fn [m]
   (merge m (some (fn [[regex cred]] (if (re-find regex (:url m)) cred))
                  (gpg-decrypt
                   (<http://clojure.java.io/file|clojure.java.io/file>
                    (System/getProperty "user.home") ".lein/credentials.clj.gpg")
                   :as :edn)))))
in my profile.boot. Now when I run boot I get
java.lang.AssertionError: Assert failed: gpg: no valid OpenPGP data found.
                            gpg: decrypt_message failed: Unknown system error

                            (zero? exit)
                 boot.gpg/decrypt                          gpg.clj:   73
            boot.core/gpg-decrypt                         core.clj:  937

podviaznikov 2016-01-18T00:02:39.000077Z

have you seen that before?

juhoteperi 2016-01-18T00:03:21.000078Z

Something with your gpg setup

juhoteperi 2016-01-18T00:03:39.000079Z

Have you tried running gpg --decrypt ~/.lein/credentials.clj.gpg?

podviaznikov 2016-01-18T00:04:30.000080Z

same problem. I see it’s not encrypted

juhoteperi 2016-01-18T00:12:36.000081Z

gpg --default-recipient-self --encrypt ~/.lein/credentials.clj &gt; ~/.lein/credentials.clj.gpg

juhoteperi 2016-01-18T00:13:08.000082Z

Also, at least vim and emacs have plugins for editing encrypted files transparently

podviaznikov 2016-01-18T00:15:05.000083Z

I think I just encrypted that boot/credentials.gpg file (decrypt worker) and followed instructions on the boot wiki

podviaznikov 2016-01-18T00:15:41.000084Z

I pushed jar but I’m not 100% it was signed

podviaznikov 2016-01-18T00:15:46.000085Z

how to check that?

podviaznikov 2016-01-18T00:15:58.000086Z

https://clojars.org/perun/versions/0.3.0

juhoteperi 2016-01-18T00:18:15.000087Z

by running boot show -v in project that uses perun

juhoteperi 2016-01-18T00:19:23.000088Z

or no... what was the command...

podviaznikov 2016-01-18T00:20:43.000089Z

-u

podviaznikov 2016-01-18T00:20:50.000090Z

boot show -u?

juhoteperi 2016-01-18T00:21:06.000091Z

oh right it's only on 2.6.0-SNAPSHOT

juhoteperi 2016-01-18T00:21:16.000092Z

-v or --verify-deps

juhoteperi 2016-01-18T00:22:49.000093Z

It shows as signed

juhoteperi 2016-01-18T00:23:56.000094Z

❯ keybase pgp verify -i perun-0.3.0.jar -d perun-0.3.0.jar.asc
:arrow_forward: ERROR openpgp: signature made by unknown entity

podviaznikov 2016-01-18T00:24:17.000096Z

yes, it’s signed

juhoteperi 2016-01-18T00:24:20.000097Z

Doesn't look like you signed it with the key you have on keybase?

podviaznikov 2016-01-18T00:24:55.000098Z

should I have used that one?

juhoteperi 2016-01-18T00:25:29.000099Z

Well in general you should use a key which other people trust

podviaznikov 2016-01-18T00:25:50.000100Z

That makes sense

juhoteperi 2016-01-18T00:26:02.000101Z

Signature doesn't help anything if I don't know whose key it has been made with :simple_smile:

podviaznikov 2016-01-18T00:27:10.000102Z

agree. Need to read how to use that key

juhoteperi 2016-01-18T00:27:14.000103Z

But doesn't matter too much now, not too many people currently try to verify packages and the tooling is quite bad

podviaznikov 2016-01-18T00:27:38.000104Z

and there is no way to unpublish from clojars as far as I remember, right?

juhoteperi 2016-01-18T00:27:48.000105Z

Right

juhoteperi 2016-01-18T00:28:11.000106Z

But no need for that now

juhoteperi 2016-01-18T00:28:32.000107Z

There is currently no tooling to check if the signatures are made by trusted party

podviaznikov 2016-01-18T00:30:28.000108Z

yeah, I saw bites of discussion yesterday about it in the #C053K90BR channel

podviaznikov 2016-01-18T00:33:36.000110Z

@juhoteperi: there is original flag already (https://github.com/hashobject/perun/blob/master/src/io/perun/markdown.clj#L68). So you can use that for filtering too

podviaznikov 2016-01-18T00:34:46.000112Z

@pesterhazy did you build something with perun yet or just trying?

pesterhazy 2016-01-18T08:41:58.000115Z

@podviaznikov: I'm building a blog, but it's taking me way too long. I'm slowed down by the content/styling part, not perun itself though

pesterhazy 2016-01-18T08:42:35.000116Z

I actually used @martinklepsch's blog repo as a base, which worked well for me