<div dir="auto"><div>Hey Tom. </div><div dir="auto"><br></div><div dir="auto">Yes, I saw your hack in <a href="https://lists.ubuntu.com/archives/juju/2017-November/009691.html">https://lists.ubuntu.com/archives/juju/2017-November/009691.html</a> which was handy, however I was hoping for something less hacky from the charm store folks.</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">--<br>Sandor Zeestraten</div><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Feb 27, 2018 22:54, "Tom Barber" <<a href="mailto:tom@spicule.co.uk">tom@spicule.co.uk</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_111751034449893000moz-cite-prefix">I have a proper hack for a circleci
      build chain I wrote, but works pretty well:<br>
      <br>
      <a class="m_111751034449893000moz-txt-link-freetext" href="https://github.com/spiculedata/circleci-juju" target="_blank">https://github.com/<wbr>spiculedata/circleci-juju</a><div class="elided-text"><br>
      <br>
      On 27/02/18 21:44, Sandor Zeestraten wrote:<br>
    </div></div><div class="elided-text">
    <blockquote type="cite">
      <div dir="ltr">
        <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline">Hey
          Juju folks,</span>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"><br>
        </div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">I
          feel like I'm hitting some rough spots while setting up a
          simple pipeline which pushes a charm build to the edge channel
          using the charm store CLI.<br>
        </div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">The
          last Juju Show (#30) talked about macaroon support in libjuju
          and CI which sounds great, but that seems to be aimed at those
          using libjuju and/or JAAS controllers.</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"><br>
          Here are some of the steps for a new project:<br>
          * Create a launchpad team for a namespace in the charm store</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - Fair enough</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">*
          Create a launchpad CI user/bot and add it project so we can
          push to the store without using personal credentials</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - This feels like a hack and rather insecure. Why not use
          limited deploy/API keys? <a href="https://github.com/juju/charmstore/issues/776" style="color:rgb(17,85,204)" target="_blank">https://github.com/juju/<wbr>charmstore/issues/776</a><br>
          * Manually login to launchpad with the CI user in order to
          activate it in the charm store<br>
              - This gotcha took me a few moments to figure out. <a href="https://jujucharms.com/docs/stable/authors-charm-store#the-juju-charm-store" style="color:rgb(17,85,204)" target="_blank">https://jujucharms.com/do<wbr>cs/stable/authors-charm-store#<wbr>the-juju-charm-store</a></div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">*
          Manually login to the charm store with the CI user with `charm
          login` to create a token.</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - Had to find this bug,<span> </span><a href="https://github.com/juju/charmstore-client/issues/61" style="color:rgb(17,85,204)" target="_blank">https://github.com/juju/c<wbr>harmstore-client/issues/61</a>,
          after I figured out that `charm login` did not have a
          non-interactive way to authenticate</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - This is still not document anywhere as far as I can tell. <a href="https://github.com/juju/charmstore-client/issues/145" style="color:rgb(17,85,204)" target="_blank">https://github.com/juju/<wbr>charmstore-client/issues/145</a></div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> 
              - According to the comments in #61 it needs to be updated
            periodically</span></div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - I've seen another approach using expect, <a href="https://lists.ubuntu.com/archives/juju/2017-November/009691.html" style="color:rgb(17,85,204)" target="_blank">https://lists.ubuntu.c<wbr>om/archives/juju/2017-November<wbr>/009691.html</a>,
          but that seems like a workaround too</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">*
          Encrypt and deploy token to a specific directory in CI in
          order for `charm login` to work</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - Again, <a href="https://github.com/juju/charmstore-client/issues/61" style="color:rgb(17,85,204)" target="_blank">https://github.com/juju<wbr>/charmstore-client/issues/61</a> a<wbr>nd <a href="https://github.com/juju/charmstore-client/issues/145" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://github.com/juju/cha<wbr>rmstore-client/issues/145</a></div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">*
          Mess around with `charm push` and `charm release` in order to
          push charm to the edge channel</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - This involves dealing with revisions which feels rather
          unnecessary</div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"> 
            - See<span> </span><a href="https://github.com/juju/charmstore-client/issues/135" style="color:rgb(17,85,204)" target="_blank">https://github.com/juju/ch<wbr>armstore-client/issues/135</a><span> </span>and<wbr> <a href="https://github.com/juju/charmstore-client/issues/146" style="color:rgb(17,85,204)" target="_blank">https://github.com/juju/charm<wbr>store-client/issues/146</a></div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">*
          Celebrate with your favourite beverage<br>
          <br>
          <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">How
            are you all interacting with the charm store with your charm
            CI?</div>
          Am I missing some obvious steps which would simplify things?<br>
          Is anyone working on proper deploy/API keys for the charm
          store?<br>
          <br>
        </div>
        <div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">Cheers<br clear="all">
          <div>
            <div class="m_111751034449893000gmail-m_-3547632309990703319gmail-m_-580156131987592628gmail-m_-7599460487988412265gmail_signature">
              <div>--</div>
              Sandor Zeestraten</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_111751034449893000mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p><br>
    </p>
  </div></div>


<br>
<p><font face="Arial, Helvetica, sans-serif"><span style="font-size:14.6667px">Spicule Limited is registered in England & Wales. Company Number: 09954122. Registered office: First Floor, Telecom House, 125-135 Preston Road, Brighton, England, BN1 6AF. VAT No. 251478891.</span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><font face="Arial, Helvetica, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><font face="Arial, Helvetica, sans-serif"><span style="font-size:14.6667px">All engagements are subject to Spicule Terms and Conditions of Business. This email and its contents are intended solely for the individual to whom it is addressed and may contain information that is confidential, privileged or otherwise protected from disclosure, distributing or copying. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Spicule Limited. The company accepts no liability for any damage caused by any virus transmitted by this email. If you have received this message in error, please notify us immediately by reply email before deleting it from your system. Service of legal notice cannot be effected on Spicule Limited by email.</span></font></p><br>--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/juju</a><br>
<br></blockquote></div><br></div></div></div>