{"action":"created","issue":{"url":"https://api.github.com/repos/coldfix/udiskie/issues/66","labels_url":"https://api.github.com/repos/coldfix/udiskie/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/coldfix/udiskie/issues/66/comments","events_url":"https://api.github.com/repos/coldfix/udiskie/issues/66/events","html_url":"https://github.com/coldfix/udiskie/issues/66","id":77538569,"number":66,"title":"[feature request] use keyfile for opening luks device","user":{"login":"grrrbl","id":12492124,"avatar_url":"https://avatars.githubusercontent.com/u/12492124?v=3","gravatar_id":"","url":"https://api.github.com/users/grrrbl","html_url":"https://github.com/grrrbl","followers_url":"https://api.github.com/users/grrrbl/followers","following_url":"https://api.github.com/users/grrrbl/following{/other_user}","gists_url":"https://api.github.com/users/grrrbl/gists{/gist_id}","starred_url":"https://api.github.com/users/grrrbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grrrbl/subscriptions","organizations_url":"https://api.github.com/users/grrrbl/orgs","repos_url":"https://api.github.com/users/grrrbl/repos","events_url":"https://api.github.com/users/grrrbl/events{/privacy}","received_events_url":"https://api.github.com/users/grrrbl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-18T07:23:59Z","updated_at":"2015-09-16T05:05:04Z","closed_at":null,"body":"I'm working for dm-crypt (luks) encrypted external devices and use them with keyfiles, too. Would be great if it were possible to advice udiskie to use a keyfile instead of the password prompt."},"comment":{"url":"https://api.github.com/repos/coldfix/udiskie/issues/comments/140627339","html_url":"https://github.com/coldfix/udiskie/issues/66#issuecomment-140627339","issue_url":"https://api.github.com/repos/coldfix/udiskie/issues/66","id":140627339,"user":{"login":"mathstuf","id":97253,"avatar_url":"https://avatars.githubusercontent.com/u/97253?v=3","gravatar_id":"","url":"https://api.github.com/users/mathstuf","html_url":"https://github.com/mathstuf","followers_url":"https://api.github.com/users/mathstuf/followers","following_url":"https://api.github.com/users/mathstuf/following{/other_user}","gists_url":"https://api.github.com/users/mathstuf/gists{/gist_id}","starred_url":"https://api.github.com/users/mathstuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathstuf/subscriptions","organizations_url":"https://api.github.com/users/mathstuf/orgs","repos_url":"https://api.github.com/users/mathstuf/repos","events_url":"https://api.github.com/users/mathstuf/events{/privacy}","received_events_url":"https://api.github.com/users/mathstuf/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T05:05:04Z","updated_at":"2015-09-16T05:05:04Z","body":"It looks like in order to do it, you set up a [\"configuration\"](http://udisks.freedesktop.org/docs/latest/gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.Configuration) for the block device which udisks then writes to `/etc/crypttab` (it seems).\r\n\r\nIn any case, what seems to be asked for here is to provide a file that is not in `crypttab` and instead have `udiskie` read it and plumb it over. That would be possible for non-binary data. What needs to happen for it to work in general is to have some `Unlock`-like method which takes binary data (`ay`) as a passphrase and then basically just `.read_all()` from the given path into that parameter."}}