<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSL Certificates for Headfull apps &amp;amp; Persistent storage for Headless App in Project Firefly Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447504#M593</link>
    <description>&lt;P&gt;The keys are for the service accounts you have bound to your project.&amp;nbsp; They expire and need to be rotated to ensure the security of the service account.&amp;nbsp; It is not technically an App Builder thing but more a general Adobe auth service account general rule.&amp;nbsp; I don't really know the history behind the key rotation and expiring interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has nothing to do with SSL connection to a microservice you host.&amp;nbsp; Its 100% the service technical account that the emails are related too.&amp;nbsp; They fill my inbox too. &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@31B4D6D7B3510763F3CBB2AAB7997408/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B)&amp;nbsp; Why can you not use State?&amp;nbsp; If you set the TTL to -1 see&amp;nbsp;&lt;A href="https://github.com/adobe/aio-lib-state" target="_blank"&gt;adobe/aio-lib-state: A JavaScript abstraction on top of distributed/cloud DBs that exposes a simple state persistence API. (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not to say that's the right answer but it could work as well.&lt;BR /&gt;I use file store a lot for storing json structures and it works fine.&amp;nbsp; Since you only run this process once a day I would lean toward using the File store.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Write json to file&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;fileLib&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;write&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;`mydir&lt;/SPAN&gt;&lt;SPAN&gt;/myfilename&lt;/SPAN&gt;&lt;SPAN&gt;.json`&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;JSON&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;stringify&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;myVarWithAValidJSObject&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Read json from file&lt;/P&gt;&lt;P&gt;//try&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;const myFileJson&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;fileLib&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;read&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;`mydir/myfilename.json&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;const myJson =&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;JSON&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;parse&lt;/SPAN&gt;&lt;SPAN&gt;(myFileJson)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//catch&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 21:24:39 GMT</pubDate>
    <dc:creator>dr_venture</dc:creator>
    <dc:date>2022-04-07T21:24:39Z</dc:date>
    <item>
      <title>SSL Certificates for Headfull apps &amp; Persistent storage for Headless App</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447405#M592</link>
      <description>&lt;P&gt;Hey Adobe Team!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on couple of apps and would need some guidance around some of the issues i'm facing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a.) Headful app: I have a app (not published yet) and plan to publish it soon, recently i recieved emails regarding public key expiring for the app. How to fix this? How long does the certificate last or how often does it expire?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the process to follow once app is pushed to production to ensure this does not affect the app?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this one below expired this week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anil_Umachigi_0-1649329263013.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39926i7907F3746F577044/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Anil_Umachigi_0-1649329263013.png" alt="Anil_Umachigi_0-1649329263013.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per the docs, do we have to generate a Public key (if yes how? ) and Add it within project (as shown in image)? and that should do it??&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the SSL issue apply to headless app as well? or any service built using that service account?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b.) Persistent variable for cron job&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My second app is an headless app which would run every morning, i need to store successful run timeStamp for set of tasks to compare the next day. I was looking at State library but does not look like i can use that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are files lib usefull here? not sure creating a file for this is a good approach? If this is files how do i create a file and read it. Could you please share example here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A json structure like below which would update every day after run and will be referred next day. What is the best approach within app builder framework?&amp;nbsp;&lt;/P&gt;&lt;P&gt;const lastRunStatus = {&lt;/P&gt;&lt;P&gt;"brandA" : "&amp;lt;timeStamp&amp;gt;",&lt;/P&gt;&lt;P&gt;"brandB" : "&amp;lt;timeStamp&amp;gt;"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 11:09:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447405#M592</guid>
      <dc:creator>Anil_Umachigi</dc:creator>
      <dc:date>2022-04-07T11:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Certificates for Headfull apps &amp; Persistent storage for Headless App</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447504#M593</link>
      <description>&lt;P&gt;The keys are for the service accounts you have bound to your project.&amp;nbsp; They expire and need to be rotated to ensure the security of the service account.&amp;nbsp; It is not technically an App Builder thing but more a general Adobe auth service account general rule.&amp;nbsp; I don't really know the history behind the key rotation and expiring interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has nothing to do with SSL connection to a microservice you host.&amp;nbsp; Its 100% the service technical account that the emails are related too.&amp;nbsp; They fill my inbox too. &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@31B4D6D7B3510763F3CBB2AAB7997408/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B)&amp;nbsp; Why can you not use State?&amp;nbsp; If you set the TTL to -1 see&amp;nbsp;&lt;A href="https://github.com/adobe/aio-lib-state" target="_blank"&gt;adobe/aio-lib-state: A JavaScript abstraction on top of distributed/cloud DBs that exposes a simple state persistence API. (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not to say that's the right answer but it could work as well.&lt;BR /&gt;I use file store a lot for storing json structures and it works fine.&amp;nbsp; Since you only run this process once a day I would lean toward using the File store.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Write json to file&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;fileLib&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;write&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;`mydir&lt;/SPAN&gt;&lt;SPAN&gt;/myfilename&lt;/SPAN&gt;&lt;SPAN&gt;.json`&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;JSON&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;stringify&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;myVarWithAValidJSObject&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Read json from file&lt;/P&gt;&lt;P&gt;//try&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;const myFileJson&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;fileLib&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;read&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;`mydir/myfilename.json&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;const myJson =&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;JSON&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;parse&lt;/SPAN&gt;&lt;SPAN&gt;(myFileJson)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//catch&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 21:24:39 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447504#M593</guid>
      <dc:creator>dr_venture</dc:creator>
      <dc:date>2022-04-07T21:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Certificates for Headfull apps &amp; Persistent storage for Headless App</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447510#M594</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;LI-USER uid="289346"&gt;&lt;/LI-USER&gt;&amp;nbsp; Makes sense on the service accounts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;re using State for this use case, i thought state is temporary and scoped to micro service run. Can it persist the next day if i store a variable in state? Is TTL configurable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Editing to add:&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So i see that i can use -1. Does it mean it exists until explicitly deleted?&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be i can overwrite this on a daily basis.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;await&lt;/SPAN&gt; &lt;SPAN class=""&gt;state&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'key'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;anObject&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'value'&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;ttl&lt;/SPAN&gt;: &lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;I will explore the file lib and report back here!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your guidance on this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 01:07:45 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447510#M594</guid>
      <dc:creator>Anil_Umachigi</dc:creator>
      <dc:date>2022-04-08T01:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Certificates for Headfull apps &amp; Persistent storage for Headless App</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447515#M595</link>
      <description>&lt;P&gt;&lt;LI-USER uid="289346"&gt;&lt;/LI-USER&gt;&amp;nbsp;I will use the same thread to add another question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any setting/variable that can be used to detect the app builder env (dev/staging/prod) ? This is to switch AEP sandbox within the code from dev to prod on publishing of the app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 03:31:51 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447515#M595</guid>
      <dc:creator>Anil_Umachigi</dc:creator>
      <dc:date>2022-04-08T03:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Certificates for Headfull apps &amp; Persistent storage for Headless App</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447517#M596</link>
      <description>&lt;P&gt;correct&lt;/P&gt;&lt;P&gt;it will exist until removed&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 03:48:49 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/ssl-certificates-for-headfull-apps-amp-persistent-storage-for/m-p/447517#M596</guid>
      <dc:creator>dr_venture</dc:creator>
      <dc:date>2022-04-08T03:48:49Z</dc:date>
    </item>
  </channel>
</rss>

