<?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 Felix Leber on Medium]]></title>
        <description><![CDATA[Stories by Felix Leber on Medium]]></description>
        <link>https://medium.com/@email-13863?source=rss-c129b4289e9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qD9OsUnCEjvWVcAT3uj5cg.png</url>
            <title>Stories by Felix Leber on Medium</title>
            <link>https://medium.com/@email-13863?source=rss-c129b4289e9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:13:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@email-13863/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[Creating an App with GPT-3]]></title>
            <link>https://medium.com/geekculture/creating-an-app-with-gpt-3-5aa346737ea8?source=rss-c129b4289e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aa346737ea8</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Felix Leber]]></dc:creator>
            <pubDate>Fri, 18 Jun 2021 08:43:33 GMT</pubDate>
            <atom:updated>2021-06-22T07:09:00.989Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently gained access to the OpenAI beta program. The speech processing was beyond my imagination.</p><blockquote>So I’ve decided to let GPT-3 help me to develop an app.</blockquote><p>Let’s see how it turned out. The following text is the conversation between me and the AI. <strong>The bold text is given by me as an input.</strong> The normal text is OpenAI’s answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cd6wjXw1yb8JHMCH" /><figcaption>Photo by <a href="https://unsplash.com/@franki?utm_source=medium&amp;utm_medium=referral">Franki Chamaki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>CREATING THE APP AND SOME REACT CODE</h3><p><em>Input: </em><strong>Let’s build a Startup. The idea is simple: You are listening to music over an App. When two people meet, one of the songs is selected so they will listen to the same song.</strong></p><p><em>OpenAI: </em>Here are the steps to create this app: Build a Backend to manage the users and songs. Build a mobile app to connect to the Backend and start the match. The Backend In order to create this app we need to store the songs somewhere. I’ve decided to use the awesome Firebase</p><p><em>Input: </em><strong>But the songs are not stored in our database, they are managed by Spotify and we access them via their API. The app just has to handle the logic for selecting songs. So when two people meet, there is a 50/50 chance that the song one person is listening to will be selected.</strong></p><p><em>OpenAI: </em>In order to get the list of songs to play, the app will make a request to the Spotify API. And in return will get the songs that are playing from a playlist called “Now playing” on the user profile. Then the app will select one of the songs randomly and make another request.</p><p><em>Input: </em><strong>The question is, how do we determin when two users meet? Should we use the geo location of this people or should we use some other technology?</strong></p><p><em>OpenAI: </em>I’ve decided to use the geo location. So the app needs some Technology to detect the location of the users. I’ve decided to use the location services of Android. The mobile app The Backend has been created. We now need to build the mobile app. I’ve decided to use react native.</p><p><em>[So for the next question I have decided to just let the App talk for a while.]</em></p><p><em>Input: </em><strong>Okay, so what are the first steps? Should we start developing the frontend or the backend first?</strong></p><p><em>OpenAI: </em>My advice is to start the design of the mobile app and then start to implement the Backend. That’s because it’s easier to decide which features the app has to have. When the mobile app is ready, we can start to develop the Backend. The mobile app is awesome. It’s really different from a web app or a native app. The code is separated in two parts: The logic of the app and the look and feel. The logic of the app is all the backend logic and it’s separated from the look and feel of the app. The logic of the app is implemented using react. The look and feel is implemented using react native. The app has to do the following: Connect to the Backend and start to retrieve the songs. When two users meet, they have to start to listen to the same song. The match is done when a song is selected. If a song is selected and the song is already playing, the app should start to play that song immediately. If a song is selected and the song is not playing, the app should start to play the song. The app should manage while a song is playing. It should show the name of the song, the artist and the cover picture.</p><p><em>[For the next part I gave Open AI the generall instructions for the next steps. Here is what I got]</em></p><p><em>Input: </em><strong>Okay we have some challenges that we need to address. First, we need to let the user select a song. Then we need to continuously check if two users are near each other. As soon as two users meet, the algorithm should decide which song to play next. Then we need to send a push notification to the user and play the corresponding song. Where is the best place to start? Okay, we have a number of obstackles to tackle. First, we need to let the user choose a song. Then we need to continuously check if two users are near each other. As soon as two users meet, the algorithm should decide which song to play next. Then we need to send a push notification to the user and play the corresponding song. Where is the best place to start?</strong></p><p><em>OpenAI: </em>Hello React! I’ve decided to start with the react code. The first thing to do is to create a component that represents the song. A component is a self contained piece of UI. The file should be created in the components folder.</p><p>A component can have a lot of properties and methods. And they are defined using the class syntax. The component is a function that returns the element. The element can be an HTML element or an SVG element. Some components don’t have to have an element. For example the text component. The react community is big. It has a lot of third party libraries that can be used to implement the UIs. The third party libraries are called components. They are downloaded using the package manager. The package manager is a tool that has the responsibility to download, install and upgrade the components. In order to use the package manager, we need to create a config file in the root of the app. It’s called package.json.</p><p>When we need to add a component, we can use the command: npm install — save react-native-song Then we need to add the component to the list of components. The list of components is placed inside the “components” folder. Now that we have the react-native-song component, we need to import it to the main.js file. Here’s how a simple component looks like:</p><pre>import React, { Component } from &#39;react&#39;;<br>import Song from &#39;./components/song&#39;; <br>class App extends Component { <br>render() { <br>return (</pre><p>Then we can use the App component to render the UI. The full code is available here: step-1. The backend Now that we have a simple UI, we need to connect it to the Backend. The first thing to do is to insert the Backend URL inside the file called App.js. The config file is placed inside the “config” folder. The Backend URL is the URL of our Firebase project. Then we can use the React component to display the songs. In order to display the list of songs, we need to import the component.</p><pre>import Song from &#39;./components/song&#39;;<br>... <br>import Song from &#39;./components/song&#39;; <br>class App extends Component { <br>render() { <br>return (</pre><p>Then we can use the component to display the list of songs. The full code is available here: step-2. The mobile app Now that the Backend is ready, we can start to develop the mobile app. The first thing to do is to create the App component. And then we can use the React component to display the list of songs.</p><pre>import React, { Component } from ‘react’; <br>import Song from ‘./components/song’; <br>class App extends Component { <br>render() { <br>return (</pre><p>The next thing to do is to create the component that represents the song. The song component should have an id. The id will be used to make a request to the Spotify API. In order to make a request to the Spotify API, we need to import an extra library. The library is called “fetch”.</p><pre>import { Song } from ‘./song.js’; <br>import { AppRegistry } from ‘react-native’; <br>import App from ‘./App’; <br>AppRegistry.registerComponent(‘ReactSong’, () =&gt; App);</pre><p>The full code is available here: step-3. The Backend Now that the mobile app is ready, we can start to develop the Backend. The first thing to do is to create the Backend component.</p><pre>import React, { Component } from ‘react’; <br>import { BackendFirebase } from ‘../config/backend.js’; <br>class Backend extends Component { <br>render() { <br>return (</pre><p><em>[OpenAI then started to repeat the code snippets so I just post the text which was inbetween the code snippets.]</em></p><p>The Backend component will use the Firebase component to talk to the Firebase. The Backend component uses the BackendFirebase component to talk to the Firebase. The Backend component has some state. The state contains the list of songs and the selected song. The component should be controlled by the logic in the Backend.js file.</p><h3>THE BUSSINES PLAN</h3><p><em>Input: </em><strong>Hi! In our last session we started to develop an App for a Startup. The current status is as follows: We have a kind of social media app with which you can listen to music. When two people meet on their way to work, for example, an Algorithm selects one of the songs and lets them both listen to the same song together. We need a business plan for this.</strong></p><p><em>OpenAI:</em> This App is very large, so we have to focus on our main user groups. They are:<br>1. the user <br>2. the music producer <br>3. the broadcaster <br>4. the advertiser</p><p>a) The user</p><p>The user is the main person in this whole thing. He has to download the App. This App is free to download, but you have to pay for the music. If you want to listen to the music, you have to pay once per month. If you also want to be able to remove songs and songs the others can listen to, you need to pay per month per song. With the App you can communicate with the people around you and listen to their opinion about the songs.</p><p>2. the music producer 3. the broadcaster 4. the advertiser a) The user The user is the main person in this whole thing. He has to download the App. This App is free to download, but you have to pay for the music. If you want to listen to the music, you have to pay once per month. If you also want to be able to remove songs and songs the others can listen to, you need to pay per month per song. With the App you can communicate with the people around you and listen to their opinion about the songs.</p><p>b) The music producer</p><p>The music producer makes the music. He has to make sure his songs are uploaded to the App. This is free. He also has to pay a percent if the song is listened to at least 100 times.</p><p>c) The broadcaster</p><p>The broadcaster makes sure the music producer can upload his music. This is free. The broadcaster makes sure that the songs can be listened to in the App. He also makes sure that the songs are properly displayed in the App. This is free.</p><p>d) The advertiser</p><p><em>Input: </em><strong>What is the marketing strategy to attract and retain users for our app? Should we advertise our app and if so, how?</strong></p><p><em>OpenAI: </em>The marketing strategy has to be developed for every user group.</p><p>For the user: A.</p><p>The marketing strategy for the user is very easy. We just have to make sure that the app is free and that we can download it. We also have to make sure that the user can communicate with the people around him.</p><p>For the music producer: B.</p><p>The marketing strategy for the music producer is also very easy. All he has to do is make sure that his music is uploaded to the App. The music producer has to make sure that his music is uploaded to the App. He also has to make sure that the songs are properly displayed in the App. If his music is played at least 100 times he will get a percent. The more times his song is played the higher the percent.</p><p>For the broadcaster: C.</p><p>The marketing strategy for the broadcaster is also very easy. All he has to do is make sure that the song can be listened to in the App. He also has to make sure that the song is properly displayed in the App. He has to make sure that the songs can be listened to in the App. Also he has to make sure that the songs are properly displayed in the App.</p><p>For the advertiser: D.</p><p>The marketing strategy for the advertiser is also very easy. All he has to do is make sure that the floating bar is displayed properly. He has to make sure that the floating bar is displayed properly. He also wants to make sure that the App is being advertised. If he wants to advertise, he has to pay for this.</p><h3>THE ARCHITECTURE</h3><p>[Okay at this point it gets really crazy. I thought, well maybe OpenAI can also talk about software architecture. So I changed a few parameters again. I was actually expecting something like “there’s AWS, Azure, etc.” to be suggested. But I didn’t expect open AI to go into such detail.]</p><p><em>Input: </em><strong>All right. We want to host the app now. The app consists of a backend, a frontend and a database. The app is to be hosted at one of the three major cloud providers. Requirements are that the backend can scale automatically and that the database is automatically backed up. How should the Architecture look like?</strong></p><p><em>OpenAI: </em>Let’s create a diagram. Draw a box for the hosting service, and one for the app. The hosting services have two layers: a “physical” layer that contains the actual host machines and storage (this is what Amazon calls “EC2”, what Microsoft calls “Windows Server”, etc.) and a “software” layer that contains the operating system (this is what AWS calls “Amazon Linux”, or MS calls “Windows Server”). For simplicity, lets suppose that the Operating System layer is provided by the hosting service.</p><p>So we have a layer for the OS and a layer for the app. Now what do we put in the layers?</p><p>The app is actually made up of multiple components, at least three of them: a web frontend, a backend and a database. The backend is made up of multiple components as well: user management, file storage and processing components.</p><p>So now we have a diagram that looks like this:</p><p>Let’s explain the diagram.</p><p>The web frontend is a separate box, because the users are interacting with it and it can be hosted completely independently of the hosting service and the other components. The backend needs to be hosted in the same physical server as the OS because it has OS-level dependencies (file storage, user management). It is common to host the backend, frontend and database in their own containers. You can use Docker to achieve this. In the diagram the different components are shown as separate layers. The database is a separate layer, because it needs to store its data in a way that is not affected by the OS upgrades, or even host migrations. Also it needs to be backed up while it is running. The database is not in the same layer as the backend because it doesn’t make sense to have two layers for the backend. The backend talks directly to the database, and it does not need any additional security or isolation from other components of the app.</p><p>The diagram shows that the components are hosted separately with their own dependencies. The database is hosted on a physically separate server from the backend and the frontend.</p><p>This setup is called a microservice architecture. Wikipedia explains it as:</p><p>Microservices are a software development technique — a variant of the service-oriented architecture (SOA) architectural style that structures an application as a collection of loosely coupled services. In a microservices-based architecture, diverse business functionality is implemented as independent services, which are small, self-contained applications with minimal inter-service communication.</p><p>This is the way we build apps now. It is very popular because it allows you to:</p><p>1. replace components of your app separately, by replacing the service, without breaking other parts of the app or causing downtime. This means you can develop, test and deploy new features faster because you have fewer dependencies on other components. 2. replace the underlying hosting service for the components separately, running your app on multiple cloud providers at the same time, without having to rewrite your app because most cloud providers support the same APIs and protocols.</p><p>3. add security features, like firewalls, at the OS level, instead of at the app level, and still isolate the components from each other.</p><p>4. back up the database while the app is running, while it is generating revenue.</p><p>5. scale down or up automatically when demand changes.</p><p>6. assign one or more developers to each service instead of having one developer working on the entire app. This means that each service has its own developer who can make decisions about the app from his perspective. He can decide whether the app should use a REST API or GraphQL for the API. He can architect the API so it best fits his service. He can choose the best technology to use, since he is familiar with it, for example: if he works on the backend he can choose to use Kafka instead of Redis.</p><p>7. reimplement (parts of) your app in different languages on different platforms.</p><p>8. deploy the services on multiple cloud providers at the same time.</p><p>There are many advantages to this approach. The downsides are:</p><ol><li>it is a little harder to develop the app, although good tools are available, like Docker.</li><li>individual developers cannot work simultaneously on different components of the app because they need to be hosted separately.</li><li>you need to plan which service should be developed first and possibly design the APIs of all services upfront. This means that you have to coordinate multiple people’s work, which takes more effort.</li><li>you will need to be familiar with multiple languages and platforms to develop both the backend and the frontend of your app.</li></ol><p>I hope this explanation of microservices architecture helped you get a better idea of how it works. Next week I will show you how this approach looks in practice, in a real-life example.</p><p>Don’t miss it!</p><p>This is a series of blog posts on the software architecture of modern web applications. To get notified when the next post is out, subscribe by email or RSS.</p><p>kkkkkk</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aa346737ea8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/creating-an-app-with-gpt-3-5aa346737ea8">Creating an App with GPT-3</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 simple Tips to make your container more secure]]></title>
            <link>https://medium.com/rewrite-tech/8-simple-tips-to-make-your-container-more-secure-b6d433d676f5?source=rss-c129b4289e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d433d676f5</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[container-security]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Felix Leber]]></dc:creator>
            <pubDate>Mon, 31 Aug 2020 12:12:03 GMT</pubDate>
            <atom:updated>2022-03-14T10:53:44.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>8 simple Tips to make your Docker Container more Secure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xt_uLiey_yl3Mx4nElAakA.png" /><figcaption>by <a href="https://unsplash.com/@guibolduc">Guillaume Bolduc</a> on unsplash</figcaption></figure><p>Remember when it was enough to install PHP on your Apache server? Take care of your scripts, take care of your server. That’s it!</p><p>I noticed that people become overwhelmed with the number of new topics and technologies. Now you are expected to know Docker, Serverless, Kubernetes, AWS, and many more.</p><blockquote>“The more components your software has, the more difficult it becomes to keep everything secure.”</blockquote><p>That’s why I have put together eight simple tips to step up your container game.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FT5KAAfdPQc8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DT5KAAfdPQc8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FT5KAAfdPQc8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/092d433f93ae2a085c8b0866ebf7c3f9/href">https://medium.com/media/092d433f93ae2a085c8b0866ebf7c3f9/href</a></iframe><h3><strong>TIP 1: USE SECURE IMAGES</strong></h3><p>Secure images are a simple but effective method to make your deployments more secure. You “just” have to pick the right images. But when you go to the <a href="https://hub.docker.com/">Docker Hub</a> you can find tons of images and might be overwhelmed.</p><p>An easy way to avoid problems is to only use verified and official images unless you know exactly what you’re doing.</p><p>Everyone can upload images to the Docker Hub. And malicious software can easily build into these images. This can even happen when not intended by the creator.</p><p>There are three tags that help you to choose the image:</p><ul><li>Docker Certified: the gold standard, tested, build with best practises and passed security requirements</li><li>Verified publisher: images which are published and maintained by a commercial entity, e.g. MySQL Server EE.</li><li>Official images: images which are officially provided by Docker. This includes base OS repos or other open source software.</li></ul><p>On top of the verification by Docker, you can test the image by using a vulnerability scanner. <a href="https://github.com/aquasecurity/trivy">Trivy</a> or <a href="https://github.com/quay/clair">clair</a> are good starting points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*SpVIYIPh9RtGTP9LwR_yow.gif" /><figcaption>Example of vulnerability scanning with trivy</figcaption></figure><h3><strong>TIP 2: Change the default user</strong></h3><p>So you’re looking for a tip that you can apply directly to your containers? Well, here you go:</p><p>Please change the default user inside your container. When you create a Docker container you are root by default — unless you change it manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*d2SdoCIYLK8pJlcYGhED4w.png" /><figcaption>Change to a new user in your Dockerfile</figcaption></figure><p>If someone is able to break your application and it runs with root privileges, the chances are high that the attacker will also inherit these privileges. So it is better to disable them with a few lines of code!</p><p>You can define this either in your Dockerfile, Docker run command, or in the docker-compose file.</p><h3><strong>TIP 3: Container Hardening</strong></h3><p>Your container is probably running any kind of web server. Therefore, it’s necessary to apply the same security standards on containers as you would apply on any other server.</p><p>To harden your container you can use the same tools and best practices you would on a virtual machine. If you are new to this topic, you can take a closer look at the following links: <a href="https://docs.docker.com/engine/security/apparmor/">AppArmor</a>, <a href="http://www.selinuxproject.org/page/Main_Page">SELinux</a> or <a href="https://grsecurity.net/">grsecurity</a>.</p><p>The good thing with containers is that you can set up a base image with best practices and re-use it to build all your applications!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnVzsfOxJj5K9qDdIx5BuA.png" /><figcaption>AppArmor can be easily configured for docker containers.</figcaption></figure><h3><strong>TIP 4: Secret management</strong></h3><p>Everyone who is working with containers sooner or later asks themselves the same question: where should I store my credentials? Where should I enter the passwords for my database?</p><p>I hope you’re not just pasting them in your source code and uploading them to GitHub. You might have previously entered them manually when you started your application or stored them in the environment variables.</p><p>However, on a container landscape you need a more sophisticated solution, especially because you constantly restart your containers when scaling up or down.</p><p>What you should use instead are <strong>secrets</strong>.</p><p>The easiest way to use them is direct with your cloud provider for example with the <a href="https://aws.amazon.com/de/secrets-manager/">AWS Secrets Manager</a> or the <a href="https://azure.microsoft.com/en-us/services/key-vault/">Key Vault</a> on Azure. But there are also self-hosted options like the <a href="https://www.vaultproject.io/">HashiCorp Vault</a>. You can even automatically rotate or renew the secrets and certificates.</p><p>When you are hosting your containers with Kubernetes you should also use <a href="https://kubernetes.io/docs/concepts/configuration/secret/">Kubernetes Secrets</a>, which are a native Kubernetes resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*f5SAKsRupxo0IUqkijJNcQ.gif" /><figcaption>HashiCorp Vault. Source: <a href="https://www.vaultproject.io/">https://www.vaultproject.io/</a></figcaption></figure><h3><strong>TIP 5: Updates</strong></h3><p>I know what you think: updates are not that interesting. But updates in containers are still as important as on every other server!</p><p>You don’t want your website to get hacked just because you were too lazy to rebuild your images!</p><p>That doesn’t mean you should always go with the latest images. Take your time to consider which version is appropriate for you and check if there were security updates — especially when you use containers that contain applications like WordPress.</p><p>Therefore, you should visit Docker Hub from time-to-time and check for updates!</p><h3><strong>TIP 6: Monitoring</strong></h3><p>I think this is a tough one. You can invest <strong>a lot</strong> of time in monitoring. Maybe nothing happens — if you’re lucky.</p><p>But unfortunately that is not always the case.</p><p>A few weeks ago, I had an incident on a personal blog. As I hadn’t enabled the monitoring function, I wasn’t aware that users were unable to visit the website anymore!</p><p>The upshot was that someone called me out on Twitter and said that the website is down, meaning the whole situation was a little embarrassing.</p><p>So make sure you set up your monitoring system!</p><p>Good starting points are <a href="https://grafana.com/">Grafana</a> and <a href="https://prometheus.io/">Prometheus</a>, the <a href="https://www.elastic.co/">Elastic</a> Stack, and also the standard monitoring tools of your cloud provider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rv1d9eskSHFdpJluP9l4yw.png" /><figcaption>Grafana Dashboard: Source: <a href="https://commons.wikimedia.org/wiki/File:Grafana_dashboard.png">https://commons.wikimedia.org/wiki/File:Grafana_dashboard.png</a></figcaption></figure><h3><strong>TIP 7: </strong>Resource Limiting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*bhfJM7arVmWwdVigjhbV_g.png" /><figcaption>Resource Limiting even works for docker-compose!</figcaption></figure><p>Resource limiting should be the 101 of container orchestration — but despite this, a lot of people forget to implement it. This means that you specify how much memory or CPU can be consumed by your app.</p><p>The topic becomes more relevant when you start to work with a container orchestration like Kubernetes because the platform needs to know how to distribute the load.</p><p>What a lot of people don’t know is that you can do this with Docker and docker-compose too!</p><h3><strong>TIP 8: Bonus Tip</strong></h3><p>Secure your host system. It may seem obvious, but once the system is up and running, people tend to stop caring about the host.</p><p>Make sure you have all the updates installed, check your configuration, and check your firewalls.</p><p>And most importantly — take your time. Don’t rush when setting it up and keep your system clean. Because if the host is screwed up, your containers will probably be gone, too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d433d676f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rewrite-tech/8-simple-tips-to-make-your-container-more-secure-b6d433d676f5">8 simple Tips to make your container more secure</a> was originally published in <a href="https://medium.com/rewrite-tech">REWRITE TECH by Diconium</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we helped create the biggest hackathon of all time]]></title>
            <link>https://medium.com/rewrite-tech/smallbusinesshero-f7b93ccc5b17?source=rss-c129b4289e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7b93ccc5b17</guid>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[technology-trends]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Felix Leber]]></dc:creator>
            <pubDate>Fri, 17 Apr 2020 06:40:43 GMT</pubDate>
            <atom:updated>2024-10-29T14:01:09.354Z</atom:updated>
            <content:encoded><![CDATA[<h3>How we helped to create the biggest hackathon of all time</h3><h4>#WirVsVirus</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SrBl4RIwKXI6dCQnathb5g.png" /><figcaption>by <a href="https://unsplash.com/@marvelous">Marvin Meyer</a> on unsplash</figcaption></figure><h3>#WirVsVirus — our part in the biggest hackathon of all time🏆</h3><p>48 hours — 42 000 (forty-two thousand!) people. On 20 March 2020, WirVsVirus, the biggest hackathon in world history, began. Our goal and that of almost two thousand other teams was to find solutions for the current Covid-19 crisis.</p><p>This article describes the making of our project <a href="http://www.smallbusinesshero.de/">www.smallbusinesshero.de</a>, a platform to get in touch with local <strong>stores in your neighborhood</strong>, so you can support them during the <strong>Covid-19 crisis</strong> and beyond.</p><h3>“The stores were packed with products and the store owners were desperate.”</h3><p>On <strong>Thursday</strong>, within a few hours only, about forty people gathered in our company chat. We had a lot of ideas and somehow it was clear early on that we would build a website or application for the hackathon. Maybe an app to share information or to raise awareness for the population.</p><p>The big question was: How could we create social impact and value — just by building software?</p><p>Obvious first ideas were mostly about “how to avoid social contacts” and “how to stop the spread”. But the hackathon’s challenge was explicitly not limited to preventing the crisis, but also about solving the challenges that it creates in our society.</p><p>At this point, Claudia joined the chat. She told us about an experience she had two days ago: “I went to two stores on Tuesday to buy some last things before they had to close yesterday. They were full of products and the store owners were desperate.” she told us: “They are expecting to go bankrupt if this lasts for longer than maybe three weeks. One was even expecting a thousand euro delivery which she had ordered a long time ago and couldn’t be cancelled.”</p><p>A real problem — a feasible solution. That was enough to convince most of us.</p><h3>“It was like a hive of bees.”</h3><p>On <strong>Friday</strong> 6pm, things got off to a chaotic start. Everybody was getting started and tried to get access to Slack, the hackathon’s main communication platform. However, this already turned out to be a technical challenge: The WirVsVirus organization team never expected to have so many participants that even Slack was brought to its knees. They contacted Slack’s CEO Steward Butterfield who confirmed that “adding 40,000 all at once to a single instance seems like … a bad idea :)”. He was able to help though and brought Slack back to live.</p><p>The developers of our team swiftly set up the technical project structure as well as a website so that we could start right away. Within the first 24 hours, we managed to come up with a technical solution to the problem, create a first mockup and connect to other teams via social media.</p><p>Something happened which we had not expected: so many people were willing to help and joined the project — and some of them are still actively involved, even after the hackathon!</p><h3>Our solution: Small Business Hero</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jKlnBOKZigIxaeY2" /></figure><p>Our vision was (and is!) to support local businesses by bringing them online easily and conveniently, so their customers can get in touch with them. In these times of distancing we want to bring the neighborhood closer together by bridging the gap between owner and customers — in a simple way. Most small stores, also the ones from your own neighborhood, have no other way to survive the Covid-19 quarantine.</p><p>So on <strong>Sunday</strong>, after two exhausting and exciting days, “Small Business Hero” went live. A limited version with only basic functionality, sure. But it was live and it even included the profiles of three real stores.</p><p>We are focusing on small retailers from the neighbourhood and especially on the relationship between them and their customers. We have spoken to store owners and realized that oftentimes, they have neither the technical knowledge to set up an online store, nor the resources to do so. With our platform we want to help them to stay in business — some stores are already online and available on our website! Small Business Hero is completely free and we aim to keep it that way.</p><p>By the time you are reading this article, it is already possible to enter any neighbourhood, search for stores in your neighborhood and browse them. If you like something, just contact the owner and order from them!</p><h3>What a surprise!</h3><p>Exactly <strong>one week later</strong>, almost the whole team has committed to develop the idea further. Ever since the hackathon weekend, we had been constantly working on improving our platform. We did not even remember that there would be a formal announcement of the winners the day after.</p><p>Until <strong>Monday</strong>, when we received an email: We won the contest. Small Business Hero had been chosen from over 1400 projects: We were one of the 20 winning teams!</p><p>One hour later, Claudia was already live on air (or better, on YouTube), where she explained about our project and the idea behind it to the whole hackathon community.</p><p>What an incredible journey!</p><h3>What are the next steps?</h3><p>We decided to keep going as a team to provide a valuable service to the small shops in your and our own neighbourhoods. Thanks to the German federal chancellery (Bundeskanzleramt) we are able to do so with their support!</p><p>The first thing we want to do is make it easier for store owners to register with us. To achieve this, continued motivation and commitment is crucial. We hope that we can work collaboratively with other teams that have a similar vision. Additionally, we very much appreciate any additional help offered to us!</p><p>To extend our reach, we appreciate everyone’s support to get more attention on social media. This way, we can increase in value by bringing together as many store owners and customers as possible.</p><p>Finally, we would like to thank you. We only came this far because we were surrounded by incredibly great supporters and a highly motivated team which worked together day and night for the good cause.</p><p>Warm greetings from us at Small Business Hero, and stay healthy.</p><p><em>Previously posted to JavaScript In Plain English</em></p><p>Check out what we’re doing:</p><p><a href="https://www.smallbusinesshero.de/">www.smallbusinesshero.de</a><br><a href="https://www.instagram.com/smallbutbusinesshero/">https://www.instagram.com/smallbutbusinesshero/</a><br><a href="https://twitter.com/smallbizbuthero">https://twitter.com/smallbizbuthero</a><br><a href="https://devpost.com/software/16_lokaleunternehmen_1605_smallbusinesshero">https://devpost.com/software/16_lokaleunternehmen_1605_smallbusinesshero</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b93ccc5b17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rewrite-tech/smallbusinesshero-f7b93ccc5b17">How we helped create the biggest hackathon of all time</a> was originally published in <a href="https://medium.com/rewrite-tech">REWRITE TECH by Diconium</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five ways to protect your privacy on blockchains]]></title>
            <link>https://email-13863.medium.com/five-ways-to-protect-your-privacy-on-blockchains-c290642519c5?source=rss-c129b4289e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c290642519c5</guid>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Felix Leber]]></dc:creator>
            <pubDate>Wed, 20 Feb 2019 13:23:41 GMT</pubDate>
            <atom:updated>2019-03-07T14:49:38.023Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oWcJMusuZOMGGlfM" /><figcaption>Photo by <a href="https://unsplash.com/@joannakosinska?utm_source=medium&amp;utm_medium=referral">Joanna Kosinska</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>Do not share any user data of your customers in a public blockchain network you have no control over. If the data is accidentally revealed at any time there is no way back.</em></p><p>You probably have seen many blockchain implementations that promise to protect privacy. This blogpost gives you a small overview about the real possibilities of providing privacy on blockchains. After a short overview of the problems, I split the solutions into five layers to protect the privacy of blockchains. I am happy about feedback and suggestions for improvement.</p><p>There are several key challenges when using blockchains, which are changing the game of “keeping data private” a little bit.</p><h4>Problems</h4><p>When operating on a blockchain, we probably want everyone to be able to validate that the ledger is correct. We want that the data is stored correctly and available. At this point, we do not care about the payload. We just want to make sure all the blocks are correct and the consensus protocol is working. So all the information the blockchain needs to operate must be available to all participants. No matter if we talk about private or public blockchains. This also includes metadata, for example uptime or hash power of your node, timestamps, transaction information and much more, depending on your blockchains system.</p><p>The next challenge directly concerns the core concept of blockchains: We cannot delete data. Data which might be currently not sensitive could become sensitive over the lifespan of the blockchain. Which is in the case of bitcoin more than <a href="https://blockexplorer.com/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f">nine years</a>. Imagine your rent a service but you don’t want anyone to know you’re using that service. Because you have heard that it should be more secure, you pay with bitcoin. Now that you own bitcoin, you also spend a lot of coins in other shops. But if one of these shops gets hacked and your data gets to the public, everyone knows your bitcoin address and where you spent money. And you can’t do anything about it.</p><p>Another problem with the revealing of data: if enough data is revealed, supposed “anonymity” can turn quickly to pseudonymity. This means that an actually anonymous key can be connected to your person. With the potential that AI, Big Data and Graph Analysis offer we are already able <a href="https://arxiv.org/abs/1502.01657">to do this</a>.</p><p>But once we get past all this, there’s another challenge: Smart-Contracts. Smart Contracts are small programmes which interact on blockchains or with blockchain data. Probably the most famous example is ethereum, which already offers a huge amount of so-called “DApps”, distributed applications. We can use this smart-contracts, for example, to <a href="https://www.ethereum.org/crowdsale">start a crowdfunding project</a> or participate in the famous game “<a href="https://www.cryptokitties.co/">cryptokitties</a>”. These small programs work on the data stored in the individual blocks. If we encrypt the data of the individual blocks, the Smart-Contracts can no longer work with them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OAHsd7tcO8vMq5tV" /><figcaption>Photo by <a href="https://unsplash.com/@dtopkin1?utm_source=medium&amp;utm_medium=referral">Dayne Topkin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Solution</h3><blockquote>This is why it is important that we find a suitable solution for each individual use-case.<strong>Therefore I’ve come up with a “privacy layer-cake” for blockchains.</strong></blockquote><p>This layer could be applied to your solution independently or in combination. Each layer strengthens the protection of private data but also increases the technical and organisational effort required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*eyZ6OKDFUWIhgKhEnmhHzA.png" /></figure><h4>Layer Zero — Manual Encryption</h4><p>The simplest and most obvious way of preserving privacy is to encrypt the payload of your transaction manually. We could use, for example, RSA or Elliptic Curve Cryptography (ECC). The data is shared among the possessors of the key. As I mentioned before, this solution is not suitable for smart-contacts because the functions of the contract can not evaluate the encrypted data. advantage of this method is that we can use it anywhere, e.g Ethereum, where we can store a payload on the blockchain.</p><p>The downside of encrypting the payload manually is, that if once the data is revealed, there is no way back until the whole blockchain is deleted on every node. This is almost impossible for public blockchains like bitcoin.</p><h4>Layer 1 — Hashing data and Private Collections</h4><p>This principle seems easy, but the implementation is more complex than the first layer. In this layer, we only store the hash of our private data (e.g. of a private document) in the payload. The data is protected since it cannot be recreated from the hash. The real data is sent to everyone we want to share the information with.</p><p>In some existing solutions there is a second and private ledger to store the private data. The implementation takes care of the private messages automatically and treats them as actual payloads from blogs. This way we can even use them with special smart-contracts (not with every smart-contract, because the smart-contract have to access the secret data, too). Sending the data directly to other users also has the advantage, that we can address the recipient directly.</p><p>In Hyperledger Fabric this kind of data is called “<a href="https://hyperledger-fabric.readthedocs.io/en/release-1.3/private-data/private-data.html">private data collection</a>” and uses the “gossip protocol” to establish the connection between peers. Also, there is a ethereum implementation, which is called “<a href="https://github.com/jpmorganchase/quorum/wiki/Transaction-Processing">Quorum</a>”, which also implements this feature.</p><h4>Layer 2 — Side-Chains and Channels</h4><p>In addition to the steps above, we can split your blockchain network up into smaller parts. Each chunk exists in a separate (blockchain-) network and might have an intermediate blockchain that connects the networks.</p><p>There are multiple ways to realise this. On public blockchains, we often see so-called side-chains, e.g. in <a href="https://www.rsk.co/">RSK</a>, which split from the main chain and return there after a series of transactions. <em>(Note: RSK does not enable privacy per se. It’s just a good example for sidechains, which are also great for scaling and providing other features).</em></p><p>There are also various solutions in the area of private blockchains. For example the “<a href="https://hyperledger-fabric.readthedocs.io/en/release-1.3/channels.html">Channels</a>” of the Hyperledger Fabric blockchain are completely separate from other channels and a transfer of data is not intended.</p><p>To name a use-case, this layer of privacy can be used if we have a subset of business partners that do not want to give insights into business transactions. We also could define internal project within a task group and delete it later without affecting the main network.</p><h4>Layer 3 — Application Authentication</h4><p>In the future of blockchains, you won’t access the blockchain directly over a node on your device. especially with business blockchain applications, a company may use blockchain-technology in their backend and the users access the node over a simple Web interface. This makes it possible to design the access control on the application level.</p><p>The decision, who gets which information, still depends on the blockchain software. However, the physical separation is no longer given.</p><p><em>An example:</em> A consumer protection organisation is part of a consortium with a number of car manufacturers. The blockchain can verify that all information is correct. The consumer protection organisation now provides a blockchain node for customers to receive information about purchased products. Each manufacturer offers a number of information, but only passes it on to individual, authorised users.</p><p>You could implement this — and it’s fairly simple — with the “<a href="https://www.hyperledger.org/projects/composer">Hyperledger Composer</a>” tool, a software abstraction for Hyperledger Fabric networks. With this tool, we can easily define user access with an Access Control List (ACL) and even integrate authentication mechanisms like OAuth.</p><h4>Layer 4 — Zero Knowledge</h4><p>The last layer of preserving privacy on the blockchain is a cryptographic method called zero-knowledge proof. It must be provided by the blockchain itself and can be hard to understand.</p><p>We can imagine it as follows: You want to buy a new car with Ethereum, but you don’t want your neighbours to know which ridiculous high price you have paid. With a zero-knowledge proof, you are able to verify to the public that you have actually sent the money, but hide the exact amount from the public.</p><p>With zero-knowledge, we can prove, that something is true or that a transaction was sent — but you do not have to reveal one single bit of information more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*wInCNFYRbS4KJGJP" /><figcaption>Check out <a href="http://pages.cs.wisc.edu/~mkowalcz/628.pdf">The Cave of Ali Baba</a> — <a href="https://pixabay.com/de/disney-aladdin-3283291/">https://pixabay.com/de/disney-aladdin-3283291/</a></figcaption></figure><p>If you see a big question mark now — don’t worry. There is a pretty cool explanation, written as a story for kids called “<a href="http://pages.cs.wisc.edu/~mkowalcz/628.pdf">The Cave of Ali Baba</a>”.</p><p>In Ethereum, we can already use this method. It’s called “ZK-SNARKs” and the younger but stronger family member “<a href="https://vitalik.ca/general/2017/11/09/starks_part_1.html">ZK-STARKs</a>”. The latter is even quantum-computer resistant but needs more computing power and memory space.</p><p>In Hyperledger Fabric, there is a zero-knowledge based authentication method available, named “<a href="https://www.zurich.ibm.com/identity_mixer/">Identity Mixer</a>”. This could be used to prove that we are of legal age without revealing our name. Or if we think a little bigger — we could use it for a voting system and keep the voter anonymous.</p><h3>Conclusion</h3><p>As complementary information, I want to notice, that there are several other methods of preserving privacy on blockchains.These methods, however, were developed for a very specific purpose and cannot be mapped to other systems. A great example of such implementation is the cryptocurrency “<a href="https://src.getmonero.org/">Monero</a>”. Monero advertises that money can be transferred without leaving a trace.</p><p>Also I would like to point out that data privacy is a huge issue, especially in view of the <a href="https://eugdpr.org/">General Data Protection Regulation (GDPR)</a>. Please think twice before you push your data or even the data of your customers on a blockchain network.</p><p><strong>Blockchains are designed to be distributed and persistent. There is no way to withdraw leaked personal information from nodes you can’t control.</strong></p><p>Stick to the model and implement as many layers as you can to keep your private data secure and separated.</p><p><em>Thanks for reading! Let me know if you have any questions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c290642519c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Ethereum]]></title>
            <link>https://email-13863.medium.com/getting-started-with-ethereum-1905c8e79517?source=rss-c129b4289e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1905c8e79517</guid>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[recommended-reading]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Felix Leber]]></dc:creator>
            <pubDate>Fri, 19 Oct 2018 07:02:52 GMT</pubDate>
            <atom:updated>2018-10-19T07:02:52.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s7moC_bMCa2G1o1joJNdzg.jpeg" /><figcaption>image provided by <a href="http://www.ethereum.org/">www.ethereum.org</a></figcaption></figure><p>I have been asked about resources to get started with Ethereum. After writing the answer I thought that this quick overview could help more than one person.</p><p>At first, I would recommend starting with the <a href="http://%20https//github.com/ethereum/wiki/wiki/White-Paper">Ethereum-Whitepaper</a> [1]. You will learn a lot about blockchains in general and of course about the features of Ethereum. It’s not too technical and well written.</p><p>If you are new to the blockchain-topic, I would rather not start with buying books. They are often misleading or outdated because technology is evolving really fast. The documents which are provided by the developer are mostly up-to-date and technically correct. And especially the stuff from Vitalik if fun to read. (Check out his <a href="https://vitalik.ca/">website</a>!)</p><p>If you want a slightly deeper dive into the ethereum blockchain, you could take a glance at the <a href="http://gavwood.com/paper.pdf">ethereum yellowpaper</a> [2]. Don’t be scared, it might look confusing first, but take your time and you’ll get used to it. It’s also a great reference for papers, in my opinion.</p><h3>Developing software:</h3><p>If you want to code with Ethereum in <a href="http://solidity.readthedocs.io/en/latest/">solidity</a>, there is a great documentation online [3]! If you consider yourself in control of solidity and you want other people to interact with your smart-contract try to develop a decentralized application (<em>DApp</em>). Honestly, it’s kind of rewarding if you have a nice interface which handles your own smart-contract on the blockchain!</p><p>For developing a Web-Application consider <a href="http://web3js.readthedocs.io/en/latest/">web3.js</a> (Javascript) [4]</p><p>For Desktop/Terminal-Applications consider <a href="http://web3py.readthedocs.io/en/latest/">web3.py </a>(Python) [5]</p><p>Make sure you are always on the<em> “latest” </em>Version of the documentation (Check the URL). The versions can be very different in some points.</p><h3>Architecture</h3><p>I would like to recommend two articles, in case you want to extend your knowledge about the architecture of (public-) blockchains.</p><p>The first one is about <a href="https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQs">Proof-of-Stake</a>, which is, in my opinion, currently the only real alternative for Proof-of-Work [6].</p><p>The second cool improvement to the ethereum blockchain is <a href="https://github.com/ethereum/wiki/wiki/Sharding-FAQs">sharding</a>. The FAQ is a good start into the technology [7].</p><h3>Literature</h3><p>Finally, there are two books I want to recommend anyways.</p><p>In “Mastering Blockchain” you can find a brief overview of every important Term in the blockchain-universe. The book describes every term in a half page, starting from Addresses, to Proof-of-Stake and Zero-Knowledge. So even if you are not the person with a huge technical background you can talk about everything.</p><p>But if you want to get all the technical aspects as well, take a look at “The science of blockchain” [9]. I would claim that if you read and understood it, you are able to implement your own blockchain (which is definitely on my bucket list).</p><p>[1] <a href="https://github.com/ethereum/wiki/wiki/White-Paper">https://github.com/ethereum/wiki/wiki/White-Paper</a></p><p>[2] <a href="http://gavwood.com/paper.pdf">http://gavwood.com/paper.pdf</a></p><p>[3] <a href="http://solidity.readthedocs.io/en/latest/">http://solidity.readthedocs.io/en/latest</a></p><p>[4] <a href="http://web3js.readthedocs.io/en/latest/">http://web3js.readthedocs.io/en/latest</a></p><p>[5] <a href="http://web3py.readthedocs.io/en/latest/">http://web3py.readthedocs.io/en/lates</a>t</p><p>[6] <a href="https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQs">https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQs</a></p><p>[7] <a href="https://github.com/ethereum/wiki/wiki/Sharding-FAQs">https://github.com/ethereum/wiki/wiki/Sharding-FAQs</a></p><p>[8] Bashir, Imran. Mastering Blockchain. Packt Publishing Ltd, 2017.</p><p>[9] Wattenhofer, Roger. “The science of the blockchain.” (2016).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1905c8e79517" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>