<?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 animatepk.com on Medium]]></title>
        <description><![CDATA[Stories by animatepk.com on Medium]]></description>
        <link>https://medium.com/@animatepk.com?source=rss-35ee1c93c330------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3t4FWoeVhSfm3OqsxK3tmw.jpeg</url>
            <title>Stories by animatepk.com on Medium</title>
            <link>https://medium.com/@animatepk.com?source=rss-35ee1c93c330------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:45:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@animatepk.com/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[Sigstore: Rekor]]></title>
            <link>https://medium.com/@animatepk.com/sigstore-rekor-1151047c134e?source=rss-35ee1c93c330------2</link>
            <guid isPermaLink="false">https://medium.com/p/1151047c134e</guid>
            <dc:creator><![CDATA[animatepk.com]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 20:28:55 GMT</pubDate>
            <atom:updated>2023-01-08T20:28:55.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*pJKzc_zY3i0mVgrHuZrtYA.png" /><figcaption>The link to the Rekor GitHub is <a href="https://docs.sigstore.dev/rekor/overview/"><strong>here</strong></a></figcaption></figure><p><a href="https://github.com/sigstore/rekor"><strong>Rekór</strong></a> — Greek for “Record”</p><p>“Rekor’s goals are to provide an immutable tamper resistant ledger of metadata generated within a software projects supply chain. Rekor will enable software maintainers and build systems to record signed metadata to an immutable record. Other parties can then query said metadata to enable them to make informed decisions on trust and non-repudiation of an object’s lifecycle.”</p><p>Sigstore is a cloud-based platform that allows developers to securely store and manage digital signatures for their software projects. It is designed to make it easy for developers to sign and verify the authenticity of their software, helping to ensure the integrity and security of the software distribution process. Sigstore can be used with a variety of programming languages and development environments, and it integrates with popular software development platforms such as GitHub.</p><p>Sigstore is an open-source project on GitHub that provides a highly available and scalable storage service for software signatures. It is designed to be used in cloud-native environments, and it uses the Cloud Native Computing Foundation’s (CNCF) container runtime, containerd, to store and manage the signatures.</p><p>Sigstore aims to provide a secure and reliable way to store and retrieve software signatures, which are used to verify the integrity and authenticity of software. It uses the Content Addressable Storage (CAS) provided by containerd to store the signatures in a tamper-evident manner, and it provides APIs for clients to store and retrieve signatures.</p><p>You can find more information about sigstore on the project’s GitHub page at <a href="https://github.com/containerd/sigstore">https://github.com/containerd/sigstore</a>.</p><p>Sigstore provides <strong>Cosign </strong>for signing containers, <strong>Fulcio </strong>for OIDC (OpenID Connect), <strong>Sigstore-rs </strong>experimental Rust, <strong>Sigstore-python </strong>for python clients, <strong>Sigstore-java </strong>for java clients and <strong>Rekor </strong>for software supply chain log.</p><p>On May 02 2022, Rekor was launched as cloud-based Transportation Management Platform. Rekor provides all its functionality and installation procedure in its GitHub repository.</p><p>In general Rekor provides CLI and Server, a Command Line Interface (CLI) is a way to interact with a computer’s operating system or an application by entering commands through a command prompt. It is a text-based interface that allows you to enter commands by typing them on the keyboard and pressing Enter. The system or application then processes the command and displays the output on the screen.</p><p>A server is a computer or device that provides resources or services to other computers or devices over a network. There are many types of servers, including web servers, database servers, file servers, and application servers while Rekor provides <strong>API </strong>based servers for Immutable log transparency.</p><p>One difference between a CLI and a server is that a CLI is a way to interact with a computer or application, while a server is a computer or device that provides resources or services to other computers or devices. Another difference is that a CLI is typically used by a single user at a time, while a server is designed to handle requests from multiple users concurrently.</p><p>An immutable log server is a server that stores an immutable log, which is a log that cannot be modified once it has been written. The server is responsible for storing the log and making it available to clients who need to access it.</p><p>An immutable log server is often used in distributed systems and blockchain applications to provide transparency and accountability. Because the log cannot be modified, it provides a tamper-evident record of events that can be trusted and verified. This can be useful in situations where it is important to have a reliable record of events or in systems where security and integrity are critical such as in <strong>API Servers </strong>where it is important to store incoming or outgoing requests which is the main functionality of <strong>Rekor.</strong></p><p>By making the log available to all stakeholders, an immutable log server can also provide transparency by allowing everyone to see the history of events in the system. This can help to build trust and accountability.</p><p>To install Rekor there are the following commands by manually building <strong>Rekor CLI</strong>.</p><pre>git clone https://github.com/sigstore/rekor.git rekor-cli<br>cd rekor-cli<br>make rekor-cli<br>cp rekor-cli /usr/local/bin/</pre><p><strong>1 </strong>-&gt;If the make command doesn’t work install git on your machine. The link to install git-bash is <a href="https://git-scm.com/downloads"><strong>Here</strong></a><strong>.</strong></p><p><strong>2 -&gt; </strong>Install <a href="https://sourceforge.net/projects/mingw-w64/"><strong>mingw64</strong></a><strong> </strong>and make sure to select the options decreibed in image later.</p><p><strong>3 -&gt; </strong>Download a zip file from <a href="https://sourceforge.net/projects/ezwinports/files/"><strong>Here</strong></a><strong>.</strong></p><p><strong>4 -&gt; </strong>Copy the contents C:\ProgramFiles\Git\mingw64\bin</p><p>Type the above commands again.</p><p>Use <a href="https://jmeubank.github.io/tdm-gcc/"><strong>tdm-gcc</strong></a><strong> </strong>in case of not working. If make command does not executes try either of the following commands.</p><pre>msys-make</pre><pre>mingw32-make</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*3-WIP8tIIx0HuvtCsYzlFQ.png" /><figcaption>execution of process of making the CLI</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*NHj6nWjMEiGxHYQrKYlFsQ.png" /><figcaption>Chose the above pakages while installing Mingw</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9VVMrXKx3YvVyzAWAfENA.png" /><figcaption>Replace the downloaded contents from step 3 here</figcaption></figure><p>Once the CLI is complete you have to deploy <strong>Rekor server.</strong></p><p>As you are building the server so you don’t need <a href="https://docs.sigstore.dev/rekor/sharding/"><strong>sharding</strong></a><strong> </strong>just go with the commands with the previously available tree.</p><pre>CURRENT_TREE_ID=$(rekor-cli loginfo --format json | jq -r .TreeID)</pre><pre>rekor-server serve --trillian_log_server.tlog_id=$CURRENT_TREE_ID</pre><p>Tree Creation</p><pre>createtree --admin_server=localhost:8090</pre><p>Building Rekor Server</p><pre>cd $GOPATH/pkg/mod/github.com/sigstore/rekor@v0.4.0/cmd/rekor-server<br>go build -v -o rekor-server<br>cp rekor-server /usr/local/bin/</pre><p>Starting the Rekor Server</p><pre>rekor-server serve --enable_retrieve_api=false<br><br>2020-09-12T16:32:22.705+0100    INFO    cmd/root.go:87  Using config file: /Users/lukehinds/go/src/github.com/sigstore/rekor-server/rekor-server.yaml<br>2020-09-12T16:32:22.705+0100    INFO    app/server.go:55    Starting server...<br>2020-09-12T16:32:22.705+0100    INFO    app/server.go:61    Listening on 127.0.0.1:3000</pre><p>Its done a manually created Rekor server is running.</p><p>The official Documentation for the Installation of Rekor is available at GitHub but in the above procedure especially for building CLI some commands do not work properly so other alternatives are mentioned above. Rekor is just new to the cloud native and it has a lot of application in this field for further information and other process the Rekor the folowing links will refer you to different Rekor pages.</p><ul><li><a href="https://github.com/sigstore/rekor">GitHub - sigstore/rekor: Software Supply Chain Transparency Log</a></li><li><a href="https://docs.sigstore.dev/rekor/installation/#build-rekor-cli-manually">Installation</a></li></ul><p>for mingw</p><ul><li><a href="https://jmeubank.github.io/tdm-gcc/download/">Download | tdm-gcc</a></li><li><a href="https://sourceforge.net/projects/mingw-w64/">MinGW-w64 - for 32 and 64 bit Windows</a></li><li><a href="https://sourceforge.net/projects/ezwinports/files/">ezwinports Files</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1151047c134e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Signing a Container with SIGSTORE COSIGN]]></title>
            <link>https://medium.com/@animatepk.com/signing-a-container-with-sigstore-cosign-5596bbf4cff2?source=rss-35ee1c93c330------2</link>
            <guid isPermaLink="false">https://medium.com/p/5596bbf4cff2</guid>
            <dc:creator><![CDATA[animatepk.com]]></dc:creator>
            <pubDate>Tue, 25 Oct 2022 14:02:00 GMT</pubDate>
            <atom:updated>2022-10-25T14:02:00.750Z</atom:updated>
            <content:encoded><![CDATA[<p>Cosign is a tool that helps you to add a signature to the container you created. A signature is a unique term that explain the owner or purpose of the container.</p><p>Why we need Cosign, in the software world you need to proof you own the container ( The part of software containing the code, dependencies, libraries every environmental variable to run code on any system or cloud service ). When you create an image of a docker file and push it on the Git Hub Container Registry several things can occur for instance someone can claim he is the owner of container and he can make you forfeit from the ownership of your own work or someone opens your container and made some changes, by using that container the results would be different the second time you use it and in last but not least if you receive a container with malware by some third party. To overcome these worst cases we use the container signing method so we can trace if any changes have been made, also who is the owner of the container and for which specific purpose the container was made for. The signed containers proofs the trusted source and employs of the company can use the container without any issue.</p><p>Sigstore provides signing of the container by Cosign, Fulcio, Rekor or Jenkins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*ecjvLMLF_X9Q-tV7XemtMA.png" /><figcaption><a href="https://docs.sigstore.dev/cosign/overview/">https://docs.sigstore.dev/cosign/overview/</a></figcaption></figure><p>You can download latest version of Cosign from Cosign GitHub or you can use this <a href="https://github.com/sigstore/cosign/releases/tag/v1.13.1"><strong>link</strong></a><strong> </strong>to download the version v1.13.1 <a href="https://github.com/sigstore/cosign/releases/tag/v1.13.1">https://github.com/sigstore/cosign/releases/tag/v1.13.1</a></p><p>Make sure to select the correct file according to your operating system. After downloading the file install the .exe file in my case it was <a href="https://github.com/sigstore/cosign/releases/download/v1.13.1/cosign-windows-amd64.exe">cosign-windows-amd64.exe</a> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D4ppH65xc_QiHqGtny9k6g.png" /><figcaption><a href="https://github.com/sigstore/cosign/releases/tag/v1.13.1">https://github.com/sigstore/cosign/releases/tag/v1.13.1</a></figcaption></figure><p>Run CMD command prompt from there you can generate your own private or public key and associate them to the container directly. The commands are as follows.</p><p>cosign&gt;cosign generate-key-pair</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*50X66vMZa_HkyALbueppSQ.png" /><figcaption>cmd creating keys</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4u_IMTw8KJ5O-wm4XlRvqg.png" /><figcaption>keys generated in the default directory</figcaption></figure><p>Now if you want to generate key on the GitHub you need to create your own access token in GitHub. GitHub has provided its method to create the token from your profile to developers section and than generating the token by clicking the “Generate new token” or you can use your old tokens if created before. The link to the instruction is as follows.</p><p><a href="https://michaelcurrin.github.io/code-cookbook/recipes/ci-cd/github-actions/tokens/access-token.html">https://michaelcurrin.github.io/code-cookbook/recipes/ci-cd/github-actions/tokens/access-token.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*a_s-7frnZlP3iquP2l-lDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*SDVbzoc3wIjcBP_Z1djqaA.png" /></figure><p>The commands are as follows:-</p><p>Format:</p><p>${{ secrets.TOKEN_NAME }}</p><p>Pass as an argument to an Action.</p><p>with:</p><p>ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}</p><p>Set as an environment variable on the workflow, job, or step scope.</p><p>env:</p><p>JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}</p><p>Use token in place of a password.</p><p>$ git clone <a href="https://github.com/USERNAME/REPO_NAME.git">https://github.com/USERNAME/REPO_NAME.git</a></p><p>Username: &lt;token&gt;</p><p>Password:</p><p>https://&lt;token&gt;@github.com/USERNAME/REPO_NAME.git</p><p>Or</p><p>https://&lt;token&gt;:x-oauth-basic@github.com/USERNAME/REPO_NAME.git</p><p>After creating the token by runninng the following commands you can generate the keys directly to the your GitHub repository. Keep the token private as it is spcifacly for your profile and by keeping it secret you can keep it safe. You can also limitize the life of the generated token by selecting the time duration while creating the token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*bi3hpL4rpZ12m-i6qDfdtQ.png" /></figure><p>Here the Keys has been generated. check the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*yMTuqpdeZK919QRpbK_law.png" /></figure><p>In conclusion our problem was to keep the container safe and the solution is COSIGN that secures the containers or if you want you can add details of the container only by using simple tool sigstore cosign.</p><p>Here is a test case GitHub repository</p><p><a href="https://github.com/Muhammad-Abdullah-Jami/sylph">https://github.com/Muhammad-Abdullah-Jami/sylph</a></p><h3>References</h3><ul><li><a href="https://docs.sigstore.dev/cosign/overview/">Cosign</a></li><li><a href="https://github.com/sigstore/cosign/releases/tag/v1.13.1">Release v1.13.1 · sigstore/cosign</a></li><li><a href="https://michaelcurrin.github.io/code-cookbook/recipes/ci-cd/github-actions/tokens/access-token.html">Access Token</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FOqZlKbTRWOY%3Fstart%3D10%26feature%3Doembed%26start%3D10&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOqZlKbTRWOY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FOqZlKbTRWOY%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/380741942d9e1167509a15fa05873773/href">https://medium.com/media/380741942d9e1167509a15fa05873773/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5596bbf4cff2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Saving Docker Image of Container with COSIGN]]></title>
            <link>https://medium.com/@animatepk.com/saving-docker-image-of-container-with-cosign-127818e26d19?source=rss-35ee1c93c330------2</link>
            <guid isPermaLink="false">https://medium.com/p/127818e26d19</guid>
            <dc:creator><![CDATA[animatepk.com]]></dc:creator>
            <pubDate>Sun, 18 Sep 2022 21:11:37 GMT</pubDate>
            <atom:updated>2022-10-16T10:28:18.549Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Table of Contents</strong></p><ul><li>What is CoSign</li><li>What is the need of CoSign in Software world</li><li>More about CoSign</li><li>CoSign with Fulcio and Rekor</li></ul><ol><li><strong>What is CoSign</strong></li></ol><p>Cosign is a tool that helps you to add a signature to the container you created. A signature is a unique term that explain the owner or purpose of the container</p><p><strong>2. What is the need of CoSign in Software world</strong></p><p>In the software world you need to proof you own the container ( The part of software containing the code, dependencies, libraries every environmental variable to run code on any system or cloud service ). When you create an image of a docker file and push it on the Git Hub Container Registry several things can occur for instance someone can claim he is the owner of container and he can make you forfeit from the ownership of your own work or someone opens your container and made some changes, by using that container the results would be different the second time you use it and in last but not least if you receive a container with malware by some third party. To overcome these worst cases we use the container signing method so we can trace if any changes have been made, also who is the owner of the container and for which specific purpose the container was made for. The signed containers proofs the trusted source and employs of the company can use the container without any issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*ecjvLMLF_X9Q-tV7XemtMA.png" /><figcaption><a href="https://docs.sigstore.dev/cosign/overview/">https://docs.sigstore.dev/cosign/overview/</a></figcaption></figure><p><strong>3. More about CoSign</strong></p><p><strong>CoSign</strong> generate a key that is attached to the container image, when you push the docker image on Git Hub Container Repository the key is visible with contianer. You can generate private keys for the container so only the people with the key will be able to access the container, by generating a public key and providing it with the container image the processing of pulling the image will become convenient for the user and the singed container will maintain the theft or altering issues.</p><p>Here is code to generate key with cosign by Jenkins <a href="https://www.jenkins.io/">https://www.jenkins.io/</a></p><p>$ cosign generate-key-pair</p><p>$ export COSIGN_PASSWORD=(your password here)</p><p>$ cosign generate-key-pair</p><p>$ l1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*lxrNPLmW1AtNjQjPyQuQ_A.png" /><figcaption><a href="https://www.jenkins.io/">https://www.jenkins.io/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*to2QMju-1-1DelHma_mhuw.png" /><figcaption><a href="https://www.youtube.com/watch?v=Hj4CAGwcN74&amp;t=28s">https://www.youtube.com/watch?v=Hj4CAGwcN74&amp;t=28s</a></figcaption></figure><p><strong>4. CoSign with Fulcio and Rekor</strong></p><p>Fulcio is a free root CA which provides short certificates with validation limit of 20 minutes via OIDC email adress. It is very practical tool to sign Docker Image using CoSign.</p><p>The process of signing image is as below provided on fulcio Git Hub. <a href="https://github.com/sigstore/fulcio">https://github.com/sigstore/fulcio</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*oKDdPnf2_0UwxR2FdTHRnw.png" /><figcaption><a href="https://github.com/sigstore/fulcio">https://github.com/sigstore/fulcio</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*VCv11GxOj4XUbYREuZaDnw.png" /><figcaption><a href="https://github.com/sigstore/fulcio">https://github.com/sigstore/fulcio</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*xxOYrL5-Sx_HVxu8qC_TZQ.png" /><figcaption><a href="https://github.com/sigstore/fulcio">https://github.com/sigstore/fulcio</a></figcaption></figure><p>Rekor also provides same container signing facilty. The brief method is available officially in the rekor website.</p><p><a href="https://github.com/sigstore/rekor">GitHub - sigstore/rekor: Software Supply Chain Transparency Log</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*F0EyQovofKQLXTSPIIamSQ.png" /><figcaption><a href="https://github.com/sigstore/rekor">https://github.com/sigstore/rekor</a></figcaption></figure><p>The above mentioned tools are used along with Cosign to sign the docker images, the method and procedure of the tools are different but the end result is we obtain a safe, secure and signatured container pushed to the GitHub Repository.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=127818e26d19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>