From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18317 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pandoc - gitlab - authentication token Date: Sun, 15 Oct 2017 20:28:42 -0700 Message-ID: <20171016032842.GB45185@Johns-MacBook-Pro.local> References: <8994b4ee-2b9c-4b53-b6cd-109bfae40189@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1508124543 9963 195.159.176.226 (16 Oct 2017 03:29:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 03:29:03 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB56OSDHQKGQENQ7GBHY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 16 05:28:57 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f64.google.com ([209.85.218.64]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3w5B-0000zh-4U for gtp-pandoc-discuss@m.gmane.org; Mon, 16 Oct 2017 05:28:49 +0200 Original-Received: by mail-oi0-f64.google.com with SMTP id f66sf11003184oib.1 for ; Sun, 15 Oct 2017 20:28:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508124536; cv=pass; d=google.com; s=arc-20160816; b=tVFDI1m1lC2wn8sFMx6KeOgDSySoejCvcuycTVD1pMtN996rBDpvwDL3jz+DgF3p/m V9lnjxoHoKQj98zsfOAwHCNPrc8mVm6ykn0XofVfF4wCFESt+znhpu/AaNqutpgY16xk RvuGWJULcXHi6aWx5pk1nPFBwf/0Up/TCzwTLNHNCXpxSxwgzyZA8l751KaqJtGdjaZj KJRJLPREys1avUixTV/YpezPTvI2shzRl7XIuI8mprVFKvrlTWG9w+83+FP14CM/tFSd 3us/Irk6lgBdzY8+2hje/3c1jSKjz2MqdGGM1/S3iZNnfQEQvf2YuwQ2Rr4DZISXagat o8Hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=7x1EJ/ZMA7cAGTFWwgDJd8lM/FLvSYmO7Jioxt8yjRs=; b=z8DobjHTCr1CmU7IBiCwMqxn236IxRigsEflsokLLDrfLBZK5h++KIahVSKYk6C3Lk h2aQu08qdZ/WjG2QsmEVTF1YujPc7+NlFxSuZpUfWmGXYjuAJIGJupNI9MQrzVdB9rOh BMv0T6hlZcq/C3rGKgsjMIa4YvvAFQHUPalu95WfsWSF5lAJ0fS+Ks4pNlvR82VZaUn5 qvBsimY0236lGCmxiEC+7MvSyLfKOfXmRw+IFdqX0APhoI6c2WI0kU64HivjKtO9Qyhz jaMdk/pSJGAS7twhgqxLIzdL+/IJiKZsTh36aXmfqxwpXUER7gC/HYwKmz0Av1SGmIg6 ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=YUUXYJWH; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=7x1EJ/ZMA7cAGTFWwgDJd8lM/FLvSYmO7Jioxt8yjRs=; b=q2SaJV/t4af/JVTl5IIN3BlJSMW7iu75pdKPISmMqPDX2BigFcQdDdGmUIfVcmibml 7rxc8qYXxIuXymmDvGF/eQ+VIfFSOcGjOIPIkvI5R7p40TJ60yLIAVdtlcQPe+xRVb+v f8m7lhJC350/oIvy6lABuQN/RK3xufySsVfaElEI3mfv3SWnCi+TjItEKkvAlLlpDVt1 6g8FkZGIH7iS9i4kxsuFBlap1IXmd6/0E5tqB9FzpOmHKkMH3Uzj3hlAVORbgKGiQQQZ qkG7ModVP+7ATg6Ay0C4EJDfmucGmSbZyhGr5XLvKckjQa7UHy+wzIdr4yp6Mwu8TC22 nJhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=7x1EJ/ZMA7cAGTFWwgDJd8lM/FLvSYmO7Jioxt8yjRs=; b=tUaBWKhbFieDJBgqQvdiYwn8EeF7vlyBmwuEoZOkeW5iBk3VAbdASlBSd2Vqtbi00s JetFF+KIIUPRdfJSRndtfNtg/xgcF5AqMAOiJ/AsFhnmQXW9gLPwTgc2pdu2Vxqhk+YL 2wlqo4eJct/oFYUSfrS/E54wfhBRntnwgS09+FEYVoNYfLHXGZzIg7LjWzufoxPXRqN7 LznMkpepXe5wogCUGlpwwXw7q8TX27NsaIAVsvBfa/diwsfNcI/7JpcMDcwOzgVzPlF6 2Zw6YhaIWngCav3XCBbyoeiaAhKgQwuiChbb0voP/HbI3SfKYi9x4u4e0G9KJqFoo2A8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaVl+GiZIDoplkt0CxiHvQpR36wNHSXMtaRPsVGM/FdBpBMaXGCM oOLIuEqxBV7LzaHphK8qNVA= X-Google-Smtp-Source: AOwi7QCT6hZwcEUzqygLh87mMiSjrK8QLONsvG27cnl39oDX8e772FZv3co/X1yn0M3RLHC2IIftlA== X-Received: by 10.157.8.51 with SMTP id 48mr305834oty.11.1508124536468; Sun, 15 Oct 2017 20:28:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.202.205.141 with SMTP id d135ls3301140oig.15.gmail; Sun, 15 Oct 2017 20:28:55 -0700 (PDT) X-Received: by 10.157.14.29 with SMTP id c29mr4551093otc.112.1508124535678; Sun, 15 Oct 2017 20:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508124535; cv=none; d=google.com; s=arc-20160816; b=iBVou35g9XCw9HOdTSLWO5z7nBDxjsn8dQIJwEzwPnRoJuZCYcjos3XA4Z2gZgcOUX G36KqXt3A4TV/bbDXTsO6s3PdWp6fFYiFG0Oc+HbmzZfFs2BQCT2L79SF/k8JbusmNbD nOQ9Pv226SK+DdtT8v0ycdQoVX7rQF6zanZolVeVdK29iycxZ+xyJSmqXPubcYe3KjK1 2iK0Cv/5DBbEuwu4bLAkhtqbAHzCcT1JRzGcpF2HOruvFO1QnO7wFwkCOOGwRvpUt1ge ESFUtntHS7MJaZzG34btDjQQJCTPGxYijsuSpP3YYPiA9sOZqANsbOPk27jGCIaAXEfD qVIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=QrvBxblynDaRy22BOB0iWKwjqhzZ8a2rWm7UM2271X8=; b=V5MroVdbtTBVe+VXw4AXQjtVTfQif/tYQztZQFZfd5X2E5scten64V52L1DsO/70Sk i1/TAUtrGW5MKj4m6FZ+GTYiJCq5QWoWc3l3BLa9iJULxCika6RaC72jdDtQimQC3lT5 Xo0NwtbI7S9anGK2bwuk90qyZdWcd1pcor4/YmmkreMSCX25xa/v/Sx2w7/RiTCZPgTW oxuPZcTgOpjt8WwSaT4TyILv5fmCk4aHfHJElRax4id1fhsDN3XjsBb+4WZj4IozhMyo yJH6g20g1iV9PBoY/Gqtg0kLHLf1QG8ILasq2BmyDHzpOyUr5sAtQT06ddS7kwaW2NqQ o2vg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=YUUXYJWH; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x22b.google.com (mail-pg0-x22b.google.com. [2607:f8b0:400e:c05::22b]) by gmr-mx.google.com with ESMTPS id b194si327013oii.0.2017.10.15.20.28.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Oct 2017 20:28:55 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22b as permitted sender) client-ip=2607:f8b0:400e:c05::22b; Original-Received: by mail-pg0-x22b.google.com with SMTP id b11so5719932pgn.12 for ; Sun, 15 Oct 2017 20:28:55 -0700 (PDT) X-Received: by 10.159.195.67 with SMTP id z3mr7735585pln.9.1508124535025; Sun, 15 Oct 2017 20:28:55 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id y27sm11658982pfi.107.2017.10.15.20.28.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Oct 2017 20:28:53 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 943D9A1ED; Sun, 15 Oct 2017 23:28:42 -0400 (EDT) Content-Disposition: inline In-Reply-To: <8994b4ee-2b9c-4b53-b6cd-109bfae40189-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=YUUXYJWH; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18317 Archived-At: No way to do this currently. There is code in openURL (in Text.Pandoc.Shared) that sets the USER_AGENT header if the USER_AGENT environment variable is set. One could do something similar for PRIVATE-TOKEN, but I worry about doing this kind of thing on an ad hoc basis. Perhaps a more principled approach would be to add a CLI option that could be repeated and that worked like the current -V option: pandoc --request-header USER_AGENT="Blah blah" --request-header PRIVATE-TOKEN="XXXXX" This would give the needed flexibility... +++ Rajko Albrecht [Oct 14 17 00:59 ]: > Hi, I searched for days and didn't found a solution. > I generate pdf from a gitlab project wiki. The markdown files are > localy checked out, so no problem using > pandoc wiki/home.md -t latex -o example.pdf > But the problem starts when the md has images insight which are > rendered by gitlab on access (pipline status etc.). Then I just get the > error > [pandoc warning] Could not find image > 'https://gitlab.xxxx/coverage.svg', skipping .... > I tried various variants giving the authentication information to > pandoc, .netrc isn't read (and not usefull), gitlab requires a header > "PRIVATE-TOKEN: XXXXXXXXX" for download. With curl I can set it and it > works. Using wrapper script eg pipline does not work 'cause wiki pages > are stored inside a git. > So - is there any solution giving pandoc authorisation tokens on > commandline for retrieving remote content? I didn't found something in > any documentation... > Bye > > -- > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/8994b4ee-2b9c-4b53- > b6cd-109bfae40189%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > >References > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/8994b4ee-2b9c-4b53-b6cd-109bfae40189-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout