From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18318 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 22:15:27 -0700 Message-ID: <20171016051527.GA55583@Johns-MacBook-Pro.local> References: <8994b4ee-2b9c-4b53-b6cd-109bfae40189@googlegroups.com> <20171016032842.GB45185@Johns-MacBook-Pro.local> 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 1508130949 4847 195.159.176.226 (16 Oct 2017 05:15:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 05:15:49 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB7EASHHQKGQEOHCWQTQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 16 07:15:43 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f55.google.com ([209.85.214.55]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3xkT-00083Q-WA for gtp-pandoc-discuss@m.gmane.org; Mon, 16 Oct 2017 07:15:34 +0200 Original-Received: by mail-it0-f55.google.com with SMTP id e195sf11671398itc.20 for ; Sun, 15 Oct 2017 22:15:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508130941; cv=pass; d=google.com; s=arc-20160816; b=ef/vy4dOMVD+7dg5qIPEXNucjVSIwK1HID8KojSWdiwrtVCabO4bz/uCtKflQRn2sf /vvde0397gOzQcby1i0miYqWq6MX0+DFoAiReSQCxeCW3mDvKYCVSRagFSxnCNZY/hmu 334ECo4eDGhv1WEfTI+049D5Ux1AIRjQlzXjgehPLrDNxzObszkz0vRjuUdHXYawoFTM F+EBsMha1gZ2GprTpkDR/+59yT30yEkUDpuxdcAl1HjmOhAMROvJZCZssT9n4xzq3X7u TH+OxiTWXCep7y5MjlVSF1NTUskT6gvEoV8pgGnUZz04izqXyiCD9plhsR26nJapzxFl J8cA== 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=fOQLxy8jsD40d5zD04K+R2Sg2XC+RmbAkcKDQT3sUZc=; b=rd9BHFFnfZG5sznObO4kp6LPP92EorKlfJJyO0FN0k3ihALGlmea8eTd3464Hn5avN RLHhtFSe0R78nqiDFC20NL1ueAwo4fvwZIPhCir6hcIhCfidvk5ZUnRen7F3crNZTD3L X7zGMLXLuCgnmTKR9uX4t3PzkHmhkAcZB2jTaEM//kZa0JK5lHdHbKPE8B8y6yr1TH3d fF+jzZliSe9Bt2mmHfjSDtyKaSUjVFVzyF1UP5t0OOIPaCkHRC4AewOzsYo6CtDGm6a5 mBVDnmsmwsfKlANPefhEBYlWv1uxiB1+fQRGFiCuUmUg09vs2QIcmy2Fotq53j3Y4VsI ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=WILDEdH1; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::235 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=fOQLxy8jsD40d5zD04K+R2Sg2XC+RmbAkcKDQT3sUZc=; b=i/u5ZREbO4ae98UfCf/FikG12tBNZc+yasSThpPtoWsCIMJ/vkG9Id3Gy579aYTc5e PIgZH7Px7was51wbiDQJoH4Sc183UlTTOYhR4WjdCuORbETXDSUcaNVBJqrlQavJOUF1 OIlVdwopimIuWKUa/EvLo4z5cZQg/5PzCFLgitNUumZlo1Q6eQGeEUo+/gG+rL3tLQ7R f/xbxOTinORKhzSVd+PAejnzrA2ADuXdJybFKUXPy5XFjm6UrEbJyvo9Y92UgDqwNc1S 2rqkj9Ssi2k/5tbPfZFBAXgHAB6/MOjFhKgrJ20uU62ESGNNiqUVHWJvqwseEUtC2Upm knXg== 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=fOQLxy8jsD40d5zD04K+R2Sg2XC+RmbAkcKDQT3sUZc=; b=s97zvB1Polijvk+H/pYraEMw6/nAy/j4GAR0w6G/diBoZkGAFEl+fbDf8klePjgehr yfN5BLVWIFODQuf5S2j2TA+8KqxB5+JiP0h2S1kfikiMZYWXs1N/kDSUnOtsGyo/2EmX uP7Jg+KU6aMrnQ1pP3isAiMpSQHfvKK7qxgc+2SFHaFVP/RlBW6ettDUbastBAcLo8h5 e+mkaj+YZMNlsQRw6uBszu+87/pJ4/65KzEvGhoenwapMBv5SRXs7F1436PiiJFhsGpz gc0OtSPm+vBT4FI1MuYwCYE4e5g13ony3riebFYFnyQigOSsO4ayHbFR2pDROoSvbTPo Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaVcyv0Zt1jxxCvnMfNx7YxKVdgl22w/6ApiwcblbA96VaIdvPEP qQbNTO5uO+7njGJu2kSBkIw= X-Google-Smtp-Source: ABhQp+Qbwg8betTWiHH3dK/4e9UuXq2BKmwSiQrxogeefG6gd15qu7OGTmBHABXTqSEjwJHu3MeMPg== X-Received: by 10.36.227.129 with SMTP id d123mr131512ith.2.1508130941316; Sun, 15 Oct 2017 22:15:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.99.108.66 with SMTP id h63ls2857080pgc.25.gmail; Sun, 15 Oct 2017 22:15:40 -0700 (PDT) X-Received: by 10.159.218.10 with SMTP id v10mr2219701plp.25.1508130940279; Sun, 15 Oct 2017 22:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508130940; cv=none; d=google.com; s=arc-20160816; b=zVVx4epuu0N23cIt2fAuzig6F4akDpMK3Nvbc2ul/J/tfkNy4UIdvY00rlL0E3XRSx LMieFDdyKrkPqVVLdaQpwWfBazykABY9PhCAA+m0v2agJWlvgbPR0G205m7G7wxFfAsF uvtjbQdv5GmjKLuwZvfePST4/p/WJivE5xmzZdBXgwOz1pG5No8qLGPHboyrxAojVIpZ /4RE5SFDHpzjojw+LE+CRMvKtMNrHy4eRvN4TtK44mGLpruOe9BWP7oxQY4pXJmcFVau 6b0zpB61N704bQVYA6fpfqDdLGoHcUmldQX1BBBoaep/UZcCXiYm4A29t6JU1/YDbp/1 FvuQ== 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=epumIMqVuRVXAe1FAe1cG5DbURJPeM9JFPxgLQiDCRY=; b=YaTxDRk9R4D9Lqr7bmQ3fxfXE/cEeNncB3PgnxcIcAfmEgsGCeCYID/vU1oVh/SBKd G9ud5utJqSjvLLRkzBGfe/UwihjrbJLP7EE1MssJGqcqtgk462Vl7BPKqXQ5gUPSr8DZ 8701DR8o8nnuLoYxOjiPwTneNm2jsxhAdfleZJc4uuuVju4zNkHKGj0ds3et79kGAN29 SZBupOaSwto9QiN0XdDJg18vdW4jGpmbnxLFt7v/hYhQbd497Df+8skxPUVy3xzYtNp/ VRGGz2x8kuYP0QZgrhEa0aHlNp/CM8dpfeKU31FXQQqE+Kop1Ph3akMS3LJA927JMjd8 kV3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=WILDEdH1; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::235 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com. [2607:f8b0:400e:c00::235]) by gmr-mx.google.com with ESMTPS id l27si296700pfb.4.2017.10.15.22.15.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Oct 2017 22:15:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::235 as permitted sender) client-ip=2607:f8b0:400e:c00::235; Original-Received: by mail-pf0-x235.google.com with SMTP id b79so14970366pfk.5 for ; Sun, 15 Oct 2017 22:15:40 -0700 (PDT) X-Received: by 10.99.3.7 with SMTP id 7mr7203936pgd.295.1508130939648; Sun, 15 Oct 2017 22:15:39 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id b68sm12821606pfg.171.2017.10.15.22.15.38 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Oct 2017 22:15:38 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 76550A1ED; Mon, 16 Oct 2017 01:15:27 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20171016032842.GB45185-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@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=WILDEdH1; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::235 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:18318 Archived-At: I've just added this. (And removed the hacky sensitivity to the USER_AGENT env variable.) >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 > >-- >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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20171016032842.GB45185%40Johns-MacBook-Pro.local. >For more options, visit https://groups.google.com/d/optout.