<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mickaël Mouillé on Medium]]></title>
        <description><![CDATA[Stories by Mickaël Mouillé on Medium]]></description>
        <link>https://medium.com/@mickalmouill?source=rss-39a96fe7f18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*35sIp18XX-hivPdZ.</url>
            <title>Stories by Mickaël Mouillé on Medium</title>
            <link>https://medium.com/@mickalmouill?source=rss-39a96fe7f18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:41:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mickalmouill/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Alléger l’organisation (et la pression) du quotidien]]></title>
            <link>https://medium.com/@mickalmouill/all%C3%A9ger-lorganisation-et-la-pression-du-quotidien-85fca8b2e79b?source=rss-39a96fe7f18------2</link>
            <guid isPermaLink="false">https://medium.com/p/85fca8b2e79b</guid>
            <category><![CDATA[france]]></category>
            <category><![CDATA[productivité]]></category>
            <category><![CDATA[développement-personnel]]></category>
            <dc:creator><![CDATA[Mickaël Mouillé]]></dc:creator>
            <pubDate>Thu, 16 Aug 2018 14:33:13 GMT</pubDate>
            <atom:updated>2018-08-16T14:39:06.677Z</atom:updated>
            <content:encoded><![CDATA[<p>Cela fait de nombreuses années que je peste à chaque fois que je dois retrouver un mot de passe où l’on m’a forcé à mettre un code chiffré, des majuscules ou des caractères spéciaux. Et moins fréquemment mais avec beaucoup plus de panique: mes papiers importants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*LbxxTgLhkCMNc6w2gwBDYQ.jpeg" /></figure><p>Chaque année je me promets d’être plus rigoureux et organisé, j’achète de jolis portes documents en me persuadant que le rangement de papiers deviendra ludique… mais non, ça me sort par les yeux et je reprends vite mes bonnes habitudes en laissant tout dans la pochette “à classer”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*wZBlmQMVjCEszDQA75vlwA.jpeg" /></figure><p>Coté mots de passe j’essaie de garder le même partout en rajoutant une majuscule, un dièse ou un chiffre quand je suis obligé. Mais par exemple pour Ameli.fr ou on me demande un code chiffré, je fini dans 95% des cas par cliquer sur “mot de passe oublié” et j’espère un jour retenir mon numéro fiscale sans avoir besoin de chercher des heures mon dernier avis d’imposition.</p><p>Si ces deux cas ne vous arrivent jamais, je suis jaloux et je vous respecte, mais si vous êtes comme moi, je me devais de partager deux types d’outils qui m’ont changé la vie depuis un peu plus d’un an:<br>- les gestionnaires de mots de passe<br>- Les coffres-forts numériques</p><h3>Les gestionnaires de mots de passe</h3><p>Le concept est d’avoir un seul mot de passe a retenir, le plus sécurisé possible évidemment. Ce mot de passe vous donnera accès aux autres (que vous n’avez donc plus besoin de retenir et qui devraient donc être tous différents).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxHyys1-fyphXDpQXn9_MQ.jpeg" /><figcaption>Dashlane</figcaption></figure><p>Je ne rentrerai pas dans les détails de la sécurité de ces outils, mais on est au niveau des banques ou mieux (logique vu le concept). Si on vous pique votre mot de passe twitter on ne pourra donc pas acheter sur Amazon et lire vos emails car vous aurez pris le soin de mettre des mots de passe différents pour tout ça… si si.</p><p>…sérieusement: faites le !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*ZjZDNNaIaB5DeWlqH5UBSQ.jpeg" /></figure><p>Bien entendu ne me faites pas confiance et renseignez vous par vous même, le but de cet article est simplement de prévenir que ces outils existent… et que c’est bien pratique !</p><p>Voilà quand même un article qui passe en revue quelques uns de ces outils pour ceux qui n’aime pas google: <a href="https://www.lemonde.fr/pixels/article/2017/09/04/quel-gestionnaire-de-mots-de-passe-est-fait-pour-vous_5180822_4408996.html">https://www.lemonde.fr/pixels/article/2017/09/04/quel-gestionnaire-de-mots-de-passe-est-fait-pour-vous_5180822_4408996.html</a></p><p>Ces applications se branchent aussi sur votre navigateur pour vous connecter directement si elle détecte un site connu, ça change la vie (vous pouvez traiter chaque site au cas par cas)</p><h3>Les coffres forts numériques</h3><p>Le coffre fort numérique vous permet de stocker vos documents en ligne et d’être un tout petit peu moins triste quand votre maison brûle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*4OuXlyqNaKOoKJiYNcSAVg.jpeg" /></figure><p>Mais surtout certaines de ces applications vous permettent de récupérer automatiquement vos documents utiles (avis d’imposition, factures EDF, attestations diverses, etc…) sans que vous ne fassiez rien et de tout stocker au même endroit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1n6gLkgzEv-rYlL_nggWnQ.png" /><figcaption>Digiposte</figcaption></figure><p>Vous pouvez être prévenu (ou non) par email dès qu’un nouveau document est récupéré dans votre coffre et ainsi vous éviter une bonne partie de ce classement manuel qui fait notre joie à tous.</p><p>Contrairement aux gestionnaires de mots de passe ou la concurrence est rude, je considère que parmi les coffres numériques <a href="http://digiposteplus.laposte.fr/lancement/">Digiposte+</a> se démarque nettement grâce à sa collecte de documents plutôt chouette.</p><p>Le concept a quand même ses limites et régulièrement la récupération de certains organismes nécessite une intervention manuelle, mais vous n’aurez rien à faire de plus qu’avant d’utiliser ce genre d’outil donc on est content quand même.</p><p>Et voilà ! N’hésitez pas à me donnez vos avis ou vos bons tuyaux si jamais je suis passé à coté de quelque chose !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85fca8b2e79b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS API Gateway to hide request credentials]]></title>
            <link>https://medium.com/@mickalmouill/aws-api-gateway-to-hide-request-credentials-c0a2b0796d88?source=rss-39a96fe7f18------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0a2b0796d88</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mickaël Mouillé]]></dc:creator>
            <pubDate>Fri, 01 Sep 2017 15:14:06 GMT</pubDate>
            <atom:updated>2017-09-01T16:23:18.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*yGn_AyP4nkibboWaka2Y0A.png" /></figure><h3>Motivation</h3><p>I find very frustrating to setup a server for my website or client app just to make some API calls to various 3rd party services where I only have a private API key (or any credentials I don’t want to make public)</p><p>The reason is that you can’t hide anything in your javascript code since it’s visible to anyone. Even if you <a href="https://en.wikipedia.org/wiki/Obfuscation_(software)">obfuscate</a> it, people can manage to detect your credentials.</p><h3>Example: Github Repositories list</h3><p>We will make an API that list all your repos from github with a simple API Gateway endpoint.</p><h4>1 — Get a Github access token</h4><p>First we will check that we indeed need an access token to get our repo list. When calling <a href="https://api.github.com/user/repos">https://api.github.com/user/repos</a>, you should get the following message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*ZE7qkbRofprcgPDj7O2bzw.jpeg" /></figure><p>So let’s create an access token for github: <a href="https://github.com/settings/tokens">https://github.com/settings/tokens</a></p><p>Click on “Generate new token” button, give a name to your token and check the following boxes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*eNK_mAxPucM_CvwOPVs7ig.jpeg" /></figure><p>You should get your github personal token upon validation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*cjjeAeIP9lPe43wdVfVtPw.jpeg" /></figure><p>Make sure you copy it in a temporary notepad file or anything else cause you wont see it again afterwards.</p><p>This token will let you call our previous endpoint without being rejected, let’s try it by adding “?access_token=YOUR_TOKEN” to our previous url:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*jRj_e14rQNLQp12oGmRjTg.jpeg" /></figure><p>So we now have the list of all our repos, included private ones.</p><h4>2 — Create the API Gateway</h4><p>Go to your AWS console (or create an account if you don’t already have one): <a href="https://aws.amazon.com/">https://aws.amazon.com/</a></p><p>Search for API Gateway from the service search bar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*EZp3c7JSJE2SCjlsnsNBtQ.jpeg" /></figure><p>There click on <strong>Create API</strong> button and fill the form as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KOZK4GXyv0fanAA9zWJ_xw.jpeg" /></figure><h4>3 — Create our API endpoint</h4><p>Ok, now we have our API, next we will need to add our repos endpoint. In AWS API Gateway an endpoint is defined as a Resource.</p><p>From <strong>Actions </strong>dropdown menu, select <strong>Create Resource</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*6O6NHwBTrwsaDIRQt6Zatw.jpeg" /></figure><p>Then fill the resource with the following values and save it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*cX1cHIrGv2ZQrtF0pQSj1w.jpeg" /></figure><p>You should get this screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*qc_2RqL5xf89_5b69iA_Gw.jpeg" /></figure><p>So we now have an API with one endpoint/resource: “my-repos” and this endpoint has one method: “OPTIONS”</p><blockquote>OPTIONS requests are what we call pre-flight requests used in Cross-origin resource sharing (CORS). It’s a safety mesure done by all major web browsers.</blockquote><p>The method we will use to get all our repos will be a “GET” method, so let’s add this one. <br>From our <strong>Actions </strong>dropdown menu, click on <strong>Create Method </strong>and select the <strong>GET </strong>one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*I2IRzNGEv-7fcRqV19Gv0Q.jpeg" /></figure><p>Then select HTTP integration type, and fill the endpoint url with our github endpoint <strong>including access_token</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9f9D0LAYwBS-2O7Q85nBaQ.jpeg" /></figure><h4>4 — Test our API Endpoint</h4><p>You should land on a screen like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOkifc3hPvFgk7v5PJrqfw.jpeg" /></figure><p>Notice the <strong>Test </strong>button in the upper left corner, let’s try our API by clicking on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMTDiyLOMv_JErIWwM56sw.jpeg" /></figure><p>If everything went fine, you should get your repositories list displayed within the response body of your test request on the right part of the screen.</p><h4>5 — Deploy our API</h4><p>Good! Now we need to deploy our API to get a public url to reach this endpoint.</p><p>From the <strong>Action </strong>dropdown menu, click on <strong>Deploy API</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*JGiB8xq6Vp-qXjEDnd_DDw.jpeg" /></figure><p>In order to deploy our API, we’ll first need to create a stage for this deployment. See the stage as the environment within which your API is deployed.</p><p>Fill it as below and then click <strong>Deploy</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*SZGQ1hWssHwHeyby72UqrA.jpeg" /></figure><p>Congratz! Your first AWS API is online! :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VWATlJA3JGJLthJTIK89Cg.jpeg" /></figure><p>Let’s try it in your favorite web browser, and remember to add your resource name at the end of your API root url: https://&lt;root-url&gt;/my-repos</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*1r0Hqj0zYe_WalloygUrXw.jpeg" /></figure><p>You should see the same result as within your first test with the github url, but now no one can know you access token.</p><p>Also since we only add the GET method, the only action anyone could take with this url is only listing your repos (and not any other write/update/delete action that could impact your repos)</p><h4>6 — Enable API call from javascript</h4><p>Right know if we try a simple fetch call on our api url from javascript, we will encounter a cross origin problem:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*n9j4EPFySKik0zVIbLMPCw.jpeg" /></figure><p>This is because your request response doesn’t included CORS header <strong>Access-Control-Allow-Origin</strong>. This header tells the browser which domain can access this resource, otherwise you’ll get the red message above.</p><p>Let’s go back to our <strong>GET </strong>method (click it in the left menu) then click on <strong>Method Response</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ldIHkza8HaC-ZDSjcrcjRA.jpeg" /></figure><p>There click on the HTTP Status 200 to expand it, and then click on <strong>Add Header</strong> button.</p><p>We will add only the header name, this will tell the Gateway we want to include this header within our response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*NIR56_19ElJf4psTBELNJQ.jpeg" /></figure><p>Now that we told the Gateway we want to add this header, we also need to specify our own value for it (and not rely on github for that).</p><p>Again let’s head back to the GET method and click on <strong>Integration Response</strong>. This is where we will map the header with our desired value, in this case it will be and asterisk enclosed by simple quotes: <strong>‘*’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vn4hg-VEylinSzHzcCFj9g.jpeg" /></figure><p>Asterisk is to authorize any domain to request the resource, but you can limit it with only your website domain.</p><p>Simple quotes are mandatory, it tells AWS that we want a fixed value (and not a dynamic parameter).</p><p>We are almost there! We just need to deploy our API again.</p><p>From the <strong>Action </strong>dropdown menu, click on <strong>Deploy API. <br></strong>Select the <strong>dev </strong>deployment stage we’ve created before and hit <strong>Deploy. <br></strong>Then click on <strong>Save Changes</strong> button in the bottom right.</p><p>If you test again the fetch method within your browser, you should no longer have the CORS error message. This mean you are done and you can use your API within your website/webapp :)</p><h4>7 — Going Further</h4><p>In this example we just copy the github url included the access token within the url. But sometimes you’ll need to pass the access_token (or any other auth param) through the request headers.</p><p>You can achieve that with header mapping on the <strong>Request Integration</strong>. It’s quite the same thing we have done with <strong>Reponse Integration</strong>.</p><p>Here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3U4ZxDJG_gzV-UYZqngmQ.jpeg" /><figcaption>click on Integration Request</figcaption></figure><p>There you can add any number of custom headers with custom values you like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*esi1JMoV40dJapXcKbhkOQ.jpeg" /></figure><p>I encourage you to try various 3rd parties SaaS to transpose this example to the one that really matters to you. But if you can’t manage to make it works don’t give up, I will make a second article which will cover some of the bottlenecks of this example approach.</p><h3>Limitations</h3><p>In the previous example you just forward a request and add some context to it. Even if it’s a case i often encounter, you’ll also often want to make some other tasks (form validation for example) before routing the request to a 3rd part service.</p><p>You can achieve this with AWS lambda, but we will discuss of that in a later article where we will also see the body mapping which will let you transform the request original body as well as the response body.</p><h3>Free Tier</h3><p>Let’s talk money! You don’t want to trade your old cheap server against any services that will cost you an arm or a leg.</p><p>The Amazon API Gateway free tier includes one million API calls received per month for up to 12 months.</p><p>Afterwards it’s $3.5 per million API calls received, so if you start to pay, it should mean your app is pretty successful, hence it should be affordable ;)</p><h3>Conclusion</h3><p>I hope you’ll have a better view of API Gateway and why it can be a great productivity gain if it can avoid you all the standard server setup / admin / configuration and maintainability tasks.</p><p>Of course API Gateway is not a silver bullet, you still have some config steps to handle, but on the long run it’s always the maintainability tasks which cost you the most.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0a2b0796d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>