<?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 John Kinsella on Medium]]></title>
        <description><![CDATA[Stories by John Kinsella on Medium]]></description>
        <link>https://medium.com/@jlk?source=rss-78278aacaa18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cAwXHs0wvwzAiw9pJvrnAA.jpeg</url>
            <title>Stories by John Kinsella on Medium</title>
            <link>https://medium.com/@jlk?source=rss-78278aacaa18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:06:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jlk/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[2022 Application Security in Review]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/there-s-no-m-on-co/2022-application-security-in-review-4e8c3be34b95?source=rss-78278aacaa18------2"><img src="https://cdn-images-1.medium.com/max/1024/1*h8tzdbmYSTEJG5J4-sFh0w.png" width="1024"></a></p><p class="medium-feed-snippet">(I wrote this while on vacation in December, but didn&#x2019;t manage to publish before the New Year&#x2026;)</p><p class="medium-feed-link"><a href="https://medium.com/there-s-no-m-on-co/2022-application-security-in-review-4e8c3be34b95?source=rss-78278aacaa18------2">Continue reading on There’s no m on .co »</a></p></div>]]></description>
            <link>https://medium.com/there-s-no-m-on-co/2022-application-security-in-review-4e8c3be34b95?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e8c3be34b95</guid>
            <category><![CDATA[security-education]]></category>
            <category><![CDATA[wasm]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 18:24:24 GMT</pubDate>
            <atom:updated>2023-01-06T18:24:24.223Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The dumbest security control I’ve coded in the last year]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/there-s-no-m-on-co/the-dumbest-security-control-ive-coded-in-the-last-year-f12e1bfe881c?source=rss-78278aacaa18------2"><img src="https://cdn-images-1.medium.com/max/1920/1*35re7ZYbDUwgjO04TYfzgw.jpeg" width="1920"></a></p><p class="medium-feed-snippet">At my startup cysense, we have several internal systems in our R&amp;D environment that staff sometimes need to access to test and develop&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/there-s-no-m-on-co/the-dumbest-security-control-ive-coded-in-the-last-year-f12e1bfe881c?source=rss-78278aacaa18------2">Continue reading on There’s no m on .co »</a></p></div>]]></description>
            <link>https://medium.com/there-s-no-m-on-co/the-dumbest-security-control-ive-coded-in-the-last-year-f12e1bfe881c?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/f12e1bfe881c</guid>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Thu, 07 Jul 2022 01:20:34 GMT</pubDate>
            <atom:updated>2022-07-07T16:08:40.766Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[What Modern CI/CD Should Look Like]]></title>
            <link>https://medium.com/there-s-no-m-on-co/what-modern-ci-cd-should-look-like-e6f50594c2d2?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6f50594c2d2</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 17:53:59 GMT</pubDate>
            <atom:updated>2020-07-09T16:07:56.532Z</atom:updated>
            <content:encoded><![CDATA[<p>“OK, smart guy. If they’re all wrong, what should CI/CD look like?” asks my imaginary friend after reading my <a href="https://theresnomon.co/insecure-by-default-kubernetes-cicd-reference-diagrams-bce31523d506">last blog post</a> about how large cloud providers don’t seem to be providing best guidance on secure CI/CD workflows.</p><p>While it could take quite a few forms, these are the components I’d like to see in a modern CI/CD workflow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*2sL9Ujg68uKnsqBqPPwbVg.png" /></figure><p>I want to focus on the workflows, so will just briefly discuss each component:</p><ul><li>Commit and Push — This seems obvious, but I like using it as a starting point. The idea is in a perfect case, a developer checks in their work and the machines take care of the rest. In reality, things frequently get in the way, but the idea here is to start with that positive thought in mind.</li><li>Code Review — From my experience, around 50% of organizations are adopting peer code review practices. Those who do adopt requirements for peer review before accepting pull requests seem to have a team that better understands the code as a whole, and with less defects reaching production. It’s “cheap,” and helps the team learn and grow together.<br>One thing I did at Layered Insight that I’d do again: vary the number of required reviewers based on code sensitivity. Areas where security was more critical required multiple reviews.</li><li>Static Analysis — Code analysis gained a bad reputation over the last decade of being expensive, inefficient, and “noisy” in its resulting reports. The corner seems to be turning over the last 18 months, with new tools providing more practical results, and in some cases offering basic code fixes. At the minimum, running a linter is again “cheap” and a good starting point.</li><li>Build container image — I generally don’t do this until the above steps are completed. If the build is mature and clean, this should be a fairly simple step.</li><li>Container vulnerability scanning — tools for this are commodity, often free. That said, you get what you pay for in the quality and “action-ability” of the results. Set a simple rule “if a vulnerability of criticality X is discovered, do not pass this step.”</li><li>QA — this may seem fairly late in the workflow, but all the prior steps can be automated to cull out issues before taking up QA’s time. You never see QA mentioned on these workflows — I get it, humans are required. Some bleeding edge companies seem to skip this and “QA in production,” but for most orgs that’s not realistic.</li><li>Promote to private “production” registry — I’m a fan of the pattern of using a separate registry for production and non-production. They’re cheap to set up, and prevent silly mistakes. In addition, set up your production environment to never allow direct downloads of container images from the Internet. So simple to do, and all these silly attacks where people run their container on your infra go away.</li><li>Request deployment — I’m being picky here, but one doesn’t deploy — really a deployment is requested. Kubernetes does with it as it sees fit.This is the equivalent of before-days developers “throwing the app over the fence” to operations.</li></ul><p>Any of the components above can result in “breaking the build” and sending the parts back to engineering to address. Two additional components lay on the runtime side of the show:</p><ul><li>Admission control — this is slowly gaining popularity, but don’t be embarrassed if you’re not familiar with it. Kubernetes has the facility to allow one or more “<a href="https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/">admission controllers</a>” to be registered — these beasts run some logic or contact some service to determine if the deployment request is valid. Of interest here are security-related admission controllers — did the vulnerability scan pass? Was this requested by the right person/role? Is this the correct image?</li><li>Runtime security — Once all the above parts are considered, only then do I think you should consider runtime security, whether that’s a commercial solution or something like selinux. This is an important component, but really until the other parts are understood and in place, I’d hold off on this. By itself, it’s only of moderate use — you’ll also need systems to handle logging, analysis, response…very important for a mature platform, but don’t let the bells and whistles distract you.</li></ul><p>The AWS diagram reminds me that all of these components also apply to serverless/functions as a service, although their forms may morph a little. FaaS is one of the sexy new things, and a surprising number of organizations are dipping their toes in this pool, but there’s a very large amount of code/binaries to run in containers that won’t get decomposed to functions for quite a while.</p><h3>There I Fixed it For You</h3><p>With that introduction, lets go mark up 3 diagrams for the cloud providers. The original versions can be found in the wild, or in my previous blog post. In the below diagrams, I’ve added the icons from the first diagram to show what I consider missing that should be displayed to give a full sense of what makes up a modern CI/CD process.</p><h4>This is what Amazon’s should look like:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ek0y0FEfnb4f-yvl80ZJQw.jpeg" /></figure><p>I realize AWS has a rich vendor partner ecosystem (unlike Azure) and they don’t want to step on their partner’s toes (lol OK that’s not it), so possibly that’s why things were left off this diagram. But as they’ve recognized the value in catering to customers security needs over the last few years, I’m a little disappointed the diagram didn’t reflect that.</p><h4>This is what Microsoft’s should look like:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DHL-iuegRKidQVXBDBA3pg.jpeg" /></figure><p>Of interest in the Azure diagram is mention of monitoring (twice — because, grafana too?). You have to pay some amount of lip service to ongoing operations, even if you deploy just once. Things will break in prod — how will you know, and how easy will it be to troubleshoot?</p><p>Also — ACR offers container vulnerability scanning (powered by my previous team at Qualys) but they choose not to call it out on the diagram. Spending <a href="https://www.techrepublic.com/article/why-microsoft-spends-over-1-billion-on-cybersecurity-each-year/">US$1 billion/year on security</a>, but can’t show it on a diagram. Sigh.</p><h4>This is what Google’s should look like:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zScj-fMY3efF386ErGulZg.png" /></figure><p>While Google is the only to mention code scanning, they also the only one to overlook code checkin. I’ll give half-credit for the admission controller component as they portray validating trusted images.</p><p>About trusted images: While this is important, I think the current offering for image signing and validation is broken. The lack of adoption over the last few years validates this viewpoint.</p><h3>Conclusion</h3><p>I get it — a lot of the purpose of the original diagrams is marketing serving two purposes: 1) “Look how easy it is to use our service! Buy now!” and 2) “Yes, we support all the parts of your CI workflow! Buy now!” In reality, they’re neither of these things. In some cases, the provider has more of the components than they place in the diagram — they don’t want to over-complicate things and scare folks away. I’d rather you have a solid understanding of what the end-goal should be as you get started; There’s no expectation that you have a picture-perfect workflow from day one, but if you don’t understand where you’re trying to go, it can be pretty hard to get there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6f50594c2d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/what-modern-ci-cd-should-look-like-e6f50594c2d2">What Modern CI/CD Should Look Like</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Insecure by Default: Kubernetes CICD Reference Diagrams]]></title>
            <link>https://medium.com/there-s-no-m-on-co/insecure-by-default-kubernetes-cicd-reference-diagrams-bce31523d506?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/bce31523d506</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Wed, 17 Jun 2020 00:44:39 GMT</pubDate>
            <atom:updated>2020-06-17T01:12:29.080Z</atom:updated>
            <content:encoded><![CDATA[<p>When preparing for my Infosec World 2020 talk on orchestrating security, I was searching the Internet for an example workflow diagram for CI/CD to discuss how one adds security components into the workflow. CI/CD (continuous integration/continuous delivery) has become a standard for users of modern cloud computing offerings such as Infrastructure as a Service, containers, and serverless.</p><p>To my surprise, all the things those of us in the “devsecops” space have been talking about for the last few years are missing in the first few screens of results. Yes — there’s some mention of IAM roles and such, but that’s for securing the build infrastructure, not ensuring the security of the software being developed, built, and deployed.</p><p>My google image search phrase was <a href="https://www.google.com/search?q=kubernetes+cicd&amp;tbm=isch">kubernetes cicd</a>. My results for that search follow (these are anonymous browsing sessions — in theory they shouldn’t be affected by my normal browsing history):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rD_Uc_3BGFqowbft705ZAw.jpeg" /><figcaption>My first hopeful attempt at finding a secure cicd workflow</figcaption></figure><p>(full-resolution images are available at <a href="https://github.com/jlk/cicd-reference-diagrams">https://github.com/jlk/cicd-reference-diagrams</a>)</p><p>Looking at the results, none of those diagrams have any mention of…</p><ul><li>Code review at commit and before merge</li><li>Static code analysis — searching for “low hanging fruit” such as hard-coded passwords, basic SQL injection vulnerabilities, etc</li><li>Dependency analysis — is the source code including or dependent upon a 3rd party package that has security issues?</li><li>Container vulnerability scanning — after code code is built and placed in a container image, are there any known vulnerabilities in the packages and programs in that container?</li></ul><p>Any of these things are capable of (and should) break the build when certain security deficiencies are discovered. They’re mostly easy to implement (dealing with the results — not always so easy, I realize).</p><p>What really drove me to write on this topic is the diagrams from the cloud providers — whom customers turn to for guidance — have no mention of application security. We as an industry talk of “shared responsibility” and “secure by default” — both of these ideals are missing, here.</p><p>Often we need to refine our first attempt at web searches, so I then attempted to be a little more specific, searching for <a href="https://www.google.com/search?q=kubernetes+secure+cicd&amp;tbm=isch">kubernetes secure cicd</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*plnSNlDe8xqgyIzJwniKBw.jpeg" /><figcaption>Now we start seeing some better results</figcaption></figure><p>In reality, I next searched for “kubernetes security cicd” which didn’t do too much better than the first search, but “secure cicd” seems to get better. Some commentary on the results:</p><ul><li>Google is the first cloud provider to “get it right” — albeit their primary-colored diagram on the first row is from a <a href="https://thenewstack.io/integrate-security-and-compliance-into-your-ci-cd-pipeline/">sponsored article on The New Stack</a>.</li><li>The next “correct” result comes from a <a href="https://medium.com/faun/step-by-step-guide-to-integrate-opensource-container-security-scanner-anchore-engine-with-cicd-580da8db5dfc">blog post on Medium</a>, that I don’t believe is from any cloud provider or security vendor.</li><li><a href="https://sysdig.com/products/kubernetes-security/image-scanning-archive/">Sysdig</a> is the first security vendor to mention security in the pipeline. Interesting that a few spots down the results is Anchore, with a diagram that looks awfully similar. 😄</li><li>Microsoft, for all their fancy security work with <a href="https://www.microsoft.com/en-us/research/blog/a-brief-introduction-to-fuzzing-and-why-its-an-important-tool-for-developers/">fuzzers</a>, <a href="https://www.zdnet.com/article/microsoft-heres-why-we-love-programming-language-rust-and-kicked-off-project-verona/">Rust</a>, <a href="https://docs.microsoft.com/en-us/windows/security/threat-protection/device-guard/enable-virtualization-based-protection-of-code-integrity">hypervisor security</a> etc don’t seem to care to educate on the basics.</li><li>The only AWS hits in the first 60 results don’t even try to mention proper build security.</li></ul><p>We talk about pod security policies, seccomp and bpf profiles, privileged containers, container security at runtime, DOS attacks, all these complex things. I am not immune — when we started Layered Insight, I jumped straight into building a runtime security product; It was probably close to a year before I slowed down and acknowledged that the basics — a vulnerability scanner — was needed by most of our potential customers, first. I jokingly referred to it as “my Apple TV hobby project” as for years, Apple didn’t seem to take it’s AppleTV product any more seriously than something to tinker with on weekends.</p><p>“Of course, John — these are basic examples so that they don’t scare away potential customers” a friend commented when I mentioned this to him. This is an unfortunately valid point, but the proper response when faced with “security is hard” is to not bury ones head, but to strive to make security easier.</p><p>We can do better; We must do better. In my next post, I’ll take the first result from each of the top cloud providers and edit it to show the security components that they left out of their diagrams, providing recommendations where I can. Stay tuned…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bce31523d506" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/insecure-by-default-kubernetes-cicd-reference-diagrams-bce31523d506">Insecure by Default: Kubernetes CICD Reference Diagrams</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The current state of API access to your Schlage Encode Locks]]></title>
            <link>https://medium.com/there-s-no-m-on-co/the-current-state-of-api-access-to-your-schlage-encode-locks-7e981f404501?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e981f404501</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[home-automation]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Fri, 15 May 2020 03:38:04 GMT</pubDate>
            <atom:updated>2024-04-20T00:32:16.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*o40GrWprlBqr7TexWzTizg.jpeg" /><figcaption>Good looks, storied lock vendor, WiFi. When can I API it?</figcaption></figure><p>UPDATE! April 19th, 2024: This week I found a Schlage integration for HomeAssistant! I installed it, expecting to get some error or excuse for why it wouldn’t work. But…it did work! The integration is powered by <a href="https://github.com/dknowles2/pyschlage">pyschlage</a>, written by David Knowles. Hoping this stays usable and doesn’t get blocked by Allegion. I was just shopping Yale smart locks last weekend…maybe I’ll give Schlage one more chance…</p><p>Original post below…</p><p>I like <a href="https://www.schlage.com/en/home/smart-locks.html">Schlage’s smartlocks</a>, and have used them for years. Built by a company with a <a href="https://www.schlage.com/en/home/about-us/company-history.html">long history</a> of making reasonably secure, reliable locks, I’ve used several of their Z-Wave locks over the years, but Z-Wave is…Z-Wave. Proprietary until recently, a PIA to troubleshoot, and while the technology held a lot of promise on paper, in reality it’s been the cause for many a swear word to erupt from my mouth (I realize this is partially due to the controllers I’ve used over the years).</p><p>I recently moved to a new home (city, and state!) which gave a chance to consider new home automation choices. Watching trends over the last year or so, WiFi seems to have become the wireless connection of choice for “smart” things in the home, when I saw Schlage now had WiFi-based versions of their locks in the <a href="https://www.schlage.com/en/home/smart-locks/encode.html">Encode</a> family, I decided to select that product.</p><p>If you’re relatively handy, they install easily. Setup is performed via an app on your phone via Bluetooth (Which makes it easy to reconnect to WiFi after you change your network and key, forgetting to move the lock first. Ahem.). Once setup, the locks respond pretty quickly to lock/unlock requests from the app, wherever you are. Next step: get them into my <a href="https://homeseer.com/">new home automation system of choice</a>! They’re on WiFi already — should be easy, right?</p><p>Not so much. Googling around, I see just Amazon Key having support. I couldn’t find any signs of a public API or development library, or development/partnership program for the Encode family. But it was on my network dammit, and I was caffeinated late one night while under covid-19 stay-at-home, so I dug further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5VHRO6KJXMlXWaK4wi8GQ.png" /><figcaption>I’ve quickly become a UniFi convert…</figcaption></figure><p>I’m pretty anal about how I run my networks, so I already knew the IPs of the locks. And my gateway — a UniFi Dream Machine — is a choke point with a sniffer installed, so let’s see who these things are talking to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2WZpQfFrDam8cVHGqlCZw.png" /></figure><p>OK — so it’s connecting to an IP block that looks familiar. Let’s see if I can verify that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YWUkK-XxY_2jvDTWEYWAxw.png" /></figure><p>Yep — the lock’s talking to something in <a href="https://aws.amazon.com/">Amazon’s cloud</a>. Not a bad thing by itself, but this could quickly lead to a dead end. It’s talking on TCP/8883 from Googling around, it looks like that’s a standard port used to communicate via the <a href="http://mqtt.org/faq">MQTT protocol over TLS</a>. MQTT is a good choice for IoT communication, so this is a positive sign. For brevity I’m leaving some steps out here, but if one googles around for “amazon tcp 8883” you’ll get a few more clues, but let’s fast forward. For $reasons I decided to try a https request from my browser. Nothing exciting was in the response itself, but the TLS certificate shed a little more light on things:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_jITv8ZD8EnmrQny4wbjA.png" /></figure><p>So we can confirm that the Schlage Encores communicate via secure MQTT to <a href="https://aws.amazon.com/iot-core/?nc=sn&amp;loc=2&amp;dn=3">AWS IOT Core</a> — a managed cloud service run by AWS for IoT devices to connect to the cloud. This is “good” as in they’re doing the Right Thing, but “bad” in that it’s a dead end for this research. An AWS customer can link that IOT Core endpoint to all sorts of different things, that IP address isn’t for a specific customer, so there’s little point in disturbing further.</p><h3>But…</h3><p>…the app on my phone can control this thing, somehow. So let’s see what’s going on there!</p><p>Back on my gateway I ran <a href="https://www.tcpdump.org/manpages/tcpdump.1.html">tcpdump</a> again. But while the lock wasn’t doing anything besides phoning home, a modern smartphone is one hell of a chatterbox. So instead of trying to make sense of the capture directly, I have tcpdump write the capture to a pcap-format file, and bring it back to my desktop and pull it up in <a href="https://www.wireshark.org/">wireshark</a> — a sniffer with a graphical UI and some great analytics tools. Patting-head-belly-rub: the trick here is to kill the app, start the sniff, launch the app and toggle a lock unlocked/locked (to whatever state it’s not in), stop the sniff and take a look-see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKSmLRH3XxtTwVX-dlx4tA.png" /></figure><p>OK —<a href="https://www.allegion.com/corp/en/index.html"> Allegion</a> owns Schlage. Progress! Who’s this yonomi guy, tho? Back to the jazz-hands…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yy1RRT8RFCzBzVUDBrmGHg.png" /><figcaption>A case study on Yonomi’s site</figcaption></figure><p>Aaaaah. <a href="https://www.yonomi.co/">Yonomi</a> is a startup that provides a services for others who want to get into this IoT game, where they’ll do all the cloudy/security/etc stuff, and then the company uses their software in their devices. So Schlage doesn’t have to become expert in cloud/IOT stuffs overnight, can focus on what they know how to do and Yonomi will do the rest. Connecting a few dots, Yonomi’s hosted on AWS, uses AWS IoT Core, and a few other services that I filtered out. Glad to see they’re not building their own wheels.</p><h3>Now What?</h3><p>Browsing the <a href="https://medium.com/u/c112a039bf9b">Yonomi</a> site, blog, and <a href="https://github.com/yonomi">GitHub repo</a> I don’t see anything yet available for individuals to interact with their service. I did find a way to sign up for API access eventually on the site, identified myself as an individual and not somebody waving Benjamins, and soon got an email saying thanks, but not quite yet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*bcIUIW5ljcpkChHbSnfgIw.png" /></figure><h3>Conclusion</h3><p>So hopefully the above is useful and entertaining/educational to some folks. It took me way longer to do this writeup than the actual work (this ain’t my first rodeo 🤠), but hopefully there’s enough thought-process and links above to give others ideas on how to do some research like this themselves — and maybe even help me push this further!</p><p>This isn’t fully solved yet, but I managed to find some useful info that I think is new information to the home-automation community:</p><ul><li>Schlage went with an experienced partner to get their new WiFi locks to market quickly. It sounds like this project happened really fast with solid success, and now both parties are taking a breath and working on building out the integrations and ecosystems.</li><li>I’m a little iffy on the “newness” of Yonomi — I’ve avoided other home security startups because a) They’re often pretty sloppy about the security part, and b) I don’t like being stuck with broken hardware when they fold. Yonomi seems to have decent bones — been around about 5 years, Series A funded in part by Allegion (so if something does happen, I’ll put my money on Allegion keeping the service going), and decent list of customers so far.</li><li>Not rolling things from scratch: This is good on both Schlage and Yonomi’s sides. Yonomi more than likely knows IoT and cloud way better than Schlage, and I’ll guarantee that AWS knows how to securely run cloud services at scale way better than either of them.</li></ul><p>Hopefully a public API coming later this year. I don’t see any hostility towards open source/individuals from any of the projects, so this looks like if they’re given some time an open source solution will come out, probably following the standard process that a HomeSeer user either grants oAuth access or generates an API key, gives that to a plugin in HomeSeer, and then we have lock control. Once one of these systems are done, the functionality should arrive on the others (Vera’s mios comes to mind, maybe ISY?) soon after.</p><p>As I hear more I’ll either update this post or write a followup, and if I have the bandwidth whenever access is available, I’m happy to write or help write/test the HomeSeer Encode plugin!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e981f404501" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/the-current-state-of-api-access-to-your-schlage-encode-locks-7e981f404501">The current state of API access to your Schlage Encode Locks</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keeping track of Docker Machines]]></title>
            <link>https://medium.com/there-s-no-m-on-co/keeping-track-of-docker-machines-ae4b8c85c935?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae4b8c85c935</guid>
            <category><![CDATA[iterm]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Sun, 06 Mar 2016 01:42:09 GMT</pubDate>
            <atom:updated>2016-03-08T17:23:35.703Z</atom:updated>
            <content:encoded><![CDATA[<p>As I play with different docker machine configurations between development environments and local vs remote systems, making sure I’m running docker commands against the correct one requires a bit of effort. Sure, each time I’m in doubt, I could run “docker-machine ls” and see what’s active, but that command takes a few seconds, as it has to check the status of remote machines, and a machine could be shut down. It would be quicker to check by doing an “echo $DOCKER_HOST” and that works, I wanted something better.</p><p>My first attempt was to put something into my terminal’s title (I’m using <a href="https://iterm2.com/index.html">iTerm 2</a> on a mac). In bash, $PS1 is used to display the prompt in an interactive shell. By setting PS1 as follows</p><blockquote>export PS1=’\[\033]0;\u@\h: DockerMachine:$DOCKER_HOST\007\]\[\033[00;01m\]\h \[\033[01;36m\]\W \$ \[\033[00m\]’</blockquote><p>I’m able to get a display that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*bOrRAndiO1Iwj2w6G9ytag.png" /></figure><p>That’s what I’m going to stick to, for now (I’ve added the export line to my .bash_login). But I’ve been eyeing the upcoming version 3 of iTerm2. One of the things they’re adding is something called “<a href="https://iterm2.com/badges.html">Badges</a>.” To use that functionality, we need to load up some functions from <a href="http://www.iterm2.com/misc/bash_startup.in">http://www.iterm2.com/misc/bash_startup.in</a>, and then modify preferences to display \(user.DockerHost) in the banner (instructions on the linked Badges page above). Finally, after running <em>iterm2_set_user_var DockerHost $DOCKER_HOST</em>, you’ll get a display like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*UaMwYVNmAazm2G52r6Hgrw.png" /></figure><p>Interesting, but still in beta. I’d want to change the font size, and I’d like to be able to set up the banner preferences from escape codes instead of going into preferences. As I said previously, for now I’m sticking to putting the DockerHost info in the titlebar, but this has potential for the future…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae4b8c85c935" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/keeping-track-of-docker-machines-ae4b8c85c935">Keeping track of Docker Machines</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Save bandwidth and time with Docker pulls]]></title>
            <link>https://medium.com/there-s-no-m-on-co/save-bandwidth-and-time-with-docker-pulls-9ae47ade83e3?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ae47ade83e3</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[vagrant]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Fri, 19 Feb 2016 23:14:52 GMT</pubDate>
            <atom:updated>2016-02-19T23:35:55.818Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m lucky - my home office is served by <a href="https://webpass.net/">Webpass</a>. Network connectivity and speed is almost never an issue. I pay little attention to my download habits, unless the <em>server</em> is slow…</p><p>The case is significantly different, though, when I’m on the road. Long BART rides (or plane rides) provide great opportunity to focus on a single task and make serious progress on a project. On a recent trip while tethered to my phone, I created a 3-host swarm with <em>docker-machine</em>, and then pulled down several images with <em>docker pull (by default in a docker swarm, each host will run the docker pull, so I was repeatedly downloading the same image)</em>. After a few minutes later, my phone chirped with an alert from Verizon: I was suddenly at 95% of my monthly data budget.</p><p>Whoops.</p><p>This is also handy and time-saving when you’re doing dev work - building machines, tearing them down, re-deploying. If the image is in the next VM on your laptop, things spin up much faster on a fresh docker engine with no images.</p><p>As I expect to be traveling more this year, and I also expect to be doing more work with containers, this isn’t going to cut it. I already use the awesome <a href="https://github.com/fgrehm/vagrant-cachier">vagrant-cachier</a> plugin to cache OS repositories outside of vagrant VMs. Now I needed similar for container images.</p><p>Matt Bently over at Docker wrote a blog post showing how to set up a <a href="https://blog.docker.com/2015/10/registry-proxy-cache-docker-open-source/">registry proxy cache</a> - that helped me quickly get things up. But I like a little more reproducability so I could easily share this with coworkers and others. So I coded this into <strong>docker-registry-cache</strong> - now available on <a href="https://github.com/jlk/docker-registry-cache">GitHub</a>.</p><h4>How does this work?</h4><p>In a nutshell, a caching proxy sits inline between your docker engines, and the registry they connect to to pull container images. Before attempting to pull an image, the cache first checks to see if it has already downloaded that version of the image. If so, it serves out that cached version of the image, instead of downloading it over the Internet from Docker’s registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jbZvEcrQXcBCwAK19iCgZg.jpeg" /></figure><p>It’s pretty simple to use, actually. Clone the git repo git@github.com:jlk/docker-registry-cache.git, cd into that directory, and run “vagrant up.” Presuming you have <a href="http://vagrantup.com/">Vagrant</a> and <a href="http://virtualbox.org/">VirtualBox</a> installed, vagrant will look for the ubuntu-trusty64-docker vagrant box image locally, probably not find it, and then download it. Once it’s downloaded that box will be used to create a new VM, and then a provisioning script will download and run version 2 of the Docker registry container.</p><p>If you’re not familiar with Vagrant, there’s an easy tutorial at <a href="https://www.vagrantup.com/docs/getting-started/">https://www.vagrantup.com/docs/getting-started/</a>.</p><p>Once the VM and containers are running, the registry cache is listening by default at <a href="http://192.168.99.50:5000/">http://192.168.99.50:5000</a>. Point your docker engines at this, and you’ll see significant time and bandwidth savings on repeated docker pulls. As you pull different images, checking <a href="http://192.168.99.50:5000/v2/_catalog">http://192.168.99.50:5000/v2/_catalog</a> will display what images the registry is caching.</p><p>More details are available in the README.md at GitHub. Would love to hear any use stories, suggestions for improvement, etc. I’d like to expand the cache beyond just Docker Registry - will see what I can do with CoreOS’s Quay in coming weeks…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ae47ade83e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/save-bandwidth-and-time-with-docker-pulls-9ae47ade83e3">Save bandwidth and time with Docker pulls</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Medium trusts publishers]]></title>
            <link>https://medium.com/there-s-no-m-on-co/how-medium-trusts-publishers-1849cf644077?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/1849cf644077</guid>
            <category><![CDATA[custom-domain]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Mon, 04 Jan 2016 19:24:36 GMT</pubDate>
            <atom:updated>2016-01-04T19:24:36.974Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the holidays I decided to pull the plug and move my (minimal) blog content over to Medium. Plenty of posts out there on why folk do that, but in a nutshell I find the platform interesting, and I’m tired of running my own blog site. But that’s not the topic of this post…</p><h4>Mapping a domain to a Medium publication</h4><p>It wasn’t obvious on the Medium site, but after a bit of Googling around, I found a post by Medium on <a href="https://medium.com/the-story/move-your-domain-to-medium-21fd74abbbe6#.huksudc9b">how to move a domain to Medium</a>. Easy enough, I created a new Medium “Publication,” copied content over, then fired off an email to their support alias and returned to the eggnog.</p><p>Several days later (it’s the holidays, I’m patient and have plenty of eggnog) I get a response with instructions on what to update on the DNS for my domain. I’ve built and run DNS systems for large and small organizations for decades, so this is old hat. But something catches my interest in the email:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*Jjv2Q5ekMlvX3TIffC5Oag.png" /></figure><p>Interesting. Obviously some type of validation process, but I was curious to learn a little more. The comodoca.com FQDN didn’t resolve. After digging around for a bit, I found a <a href="https://support.comodo.com/index.php?/Default/Knowledgebase/Article/View/791/16/">Comodo knowledgebase</a> page that cleared things up.</p><p>Medium uses SSL/TLS on all pages. If they’re going to allow me to point a domain at them and have them host it, they need to do some amount of validation that I do own the domain. Otherwise they’d potentially be signing an TLS certificate request for a site that doesn’t own the domain name in question, which could be used to fool victims into misplacing their trust and whatever follows.</p><p>Doing TLS right can be a bit of a PIA, and one thing Medium doesn’t want is to create friction for a publisher to use the site. In the past, web hosting sites who wanted to do this “right” usually ask a user to generate a TLS certificate request for the domain, get the certificate signed by a CA, then upload the signed cert and private key to the web server. Usually this process takes a few days and requires the (potentially non-technical) user to jump through hoops. Medium’s found a smoother path with an equivalent amount of security (compared to the amount of verification the average CA does for the average cert).</p><p>I’m guessing behind the scenes, the following process happens:</p><ul><li>User submits domain mapping request. Medium staff click/type a few things, and a signing request is set up at Comodo.</li><li>Medium support staff send response to user with DNS records to implement, not making any outstanding comments about the verification CNAME. Meanwhile, Comodo’s systems are checking for the CNAME to be created so they can sign/release the certificate to Medium.</li><li>User gets email, goes to their DNS provider and enters records as requested.</li><li>Comodo’s systems see new CNAME which allows them to validate the request and sign/release the certificate to Medium.</li><li>Everybody lives happily and securely ever after.</li></ul><p>The code’s probably fairly simple, and the user experience is way better. Always a huge plus when it comes to security.</p><p>Also interesting: The main Medium.com site is protected by a DigiCert extended-validation certificate, whereas hosted domains are protected by standard Comodo certs. Comodo was cheaper last time I checked, but I wonder if either Comodo has a better API to allow Medium to do their magic, or if they wanted to use different CAs to provide a level of separation between hosted and “real” Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1849cf644077" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/how-medium-trusts-publishers-1849cf644077">How Medium trusts publishers</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Export rules for security tools?]]></title>
            <link>https://medium.com/there-s-no-m-on-co/export-rules-for-security-tools-8bc4d966465c?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bc4d966465c</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[gpg]]></category>
            <category><![CDATA[pgp]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Thu, 28 May 2015 05:57:18 GMT</pubDate>
            <atom:updated>2015-12-31T22:32:47.687Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have heard of <a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy">PGP</a> — the awesome encryption software created by <a href="http://en.wikipedia.org/wiki/Phil_Zimmermann">Phil Zimmermann</a> in the 90s, eventually turning into a company that was acquired by Symantec. As the result of commercialization of the product, most of us now use <a href="https://www.gnupg.org/">GPG</a> (I’ve <a href="http://www.propublica.org/article/the-worlds-email-encryption-software-relies-on-one-guy-who-is-going-broke">donated</a> to the authors, hope you have too).</p><p>But I digress.</p><p>Back in The Day, PGP was considered “<a href="http://en.wikipedia.org/wiki/United_States_Munitions_List">munitions</a>” grade encryption, and therefore was banned from export outside the US. This was one of the earlier cases of the sillyness of a government trying to control the Internet: a formal investigation was launched by the US government against Zimmerman, with the suspicion that he knowingly exported munitions outside the US to the Bad Guys. Eventually he was found not guilty.</p><p>But the interesting part: Zimmerman realized the export laws regulated software programs, not printed code (printed word is protected by 1st Amendment). So he got MIT Press to publish a book containing the source code. Folks outside the US teamed together to scan it in page by page, run it through character recognition systems (some was typed by hand), then compile it back into a working program. PGP 5.0i (<a href="http://www.pgpi.org/">international</a>) was born. In 1997. (this was the first “legal” version — PGP had been in the international community for many years prior)</p><p>So — all that munitions protection sure worked out, yea?</p><p>I was reminded of all of this last week when reading that the US Commerce Department is <a href="https://www.federalregister.gov/articles/2015/05/20/2015-11642/wassenaar-arrangement-2013-plenary-agreements-implementation-intrusion-and-surveillance-items#h-8">proposing </a>to place network scanning an penetration testing software under export control through the Wassenaar Agreement.</p><p>It looks like they’re aiming at controlling commercial sales more than the open source tools, which makes little sense, as the commercial versions are usually behind the curve. With Cisco’s <a href="http://www.buzzfeed.com/aramroston/after-sanctions-cisco-altered-sales-records-in-russia">sales to the Russians</a> recently, it’s shown that companies will follow the money, anyways (see also: arms dealers).</p><p>So, here we are. Nearly 20 years after people dodged export rules by printing out source, scanning it in, and recompiling it — the same cluelessness exists in “modern” government.</p><p>Probably time to start calling your representatives, again…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bc4d966465c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/export-rules-for-security-tools-8bc4d966465c">Export rules for security tools?</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon’s subscription model seems to be getting better]]></title>
            <link>https://medium.com/there-s-no-m-on-co/amazon-s-subscription-model-seems-to-be-getting-better-8c63bc27265f?source=rss-78278aacaa18------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c63bc27265f</guid>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[John Kinsella]]></dc:creator>
            <pubDate>Fri, 09 Jan 2015 18:56:37 GMT</pubDate>
            <atom:updated>2015-12-31T22:30:02.850Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently replaced a CatGenie with a more simple, sane automated cat box. I’ll write about that later, still recovering from the experience.</p><p>Anyways, the ScoopFree machine uses litter trays — easy use and disposal, while giving them a subscription model. This seemed like a good candidate for Amazon’s “subscribe and save” model, not so much for the 5% discount, but as I’m going to need the boxes on a fairly regular schedule (Hoping the cat works with me, not against me. Oh god, don’t let him read this…).</p><p>After subscribing, I was presented with the screen below. Either I hadn’t closely looked at Amazon’s subscription setup in the past, or they’ve improved things. First, they’re bundling subscription deliveries together to minimize shipping and boxes. Environmentally, that sounds great to me, and I’m sure Amazon is saving on a) shipping and b) stocking and ordering logistics. What also caught my eye — if I subscribe to 4 more items (5 in total), an additional 15% discount is applied. So, 20% discount in total.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T90HCvgM5iKCTKcksYQvQg.png" /></figure><p>I find myself over the last several months trying to shop at local businesses or other online properties — the amount of my shopping done on Amazon is a little unnerving so I’m trying to spread the love around. But smaller shops have a hard time competing against Amazon’s “standard” prices — how do they compete against a “Subscribe and Save” price that can be up to 20% less?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c63bc27265f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/there-s-no-m-on-co/amazon-s-subscription-model-seems-to-be-getting-better-8c63bc27265f">Amazon’s subscription model seems to be getting better</a> was originally published in <a href="https://medium.com/there-s-no-m-on-co">There’s no m on .co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>