Skip to content

Commit

Permalink
Fix youtube frame not responsive (#586)
Browse files Browse the repository at this point in the history
* fixed unresponsive youtube iframe in homepage

Signed-off-by: Insomniac2904 <[email protected]>

* fixed unresponsive player in homepage and blog/cosign-2.5.0/

Signed-off-by: Insomniac2904 <[email protected]>

* update cosign logo

Signed-off-by: bupd <[email protected]>

---------

Signed-off-by: Insomniac2904 <[email protected]>
Signed-off-by: bupd <[email protected]>
Co-authored-by: bupd <[email protected]>
  • Loading branch information
Insomniac2904 and bupd authored Jan 20, 2025
1 parent 3d898f5 commit d7075b8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
38 changes: 20 additions & 18 deletions content/blog/cosign-2.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ author:
description: "Introducing Cosign in Harbor v2.5.0"
date: 2022-04-11T12:00:00+04:00
---
![Cosign](https://raw.githubusercontent.com/sigstore/cosign/main/images/logo.svg)
![Cosign](https://raw.githubusercontent.com/sigstore/community/main/artwork/cosign/horizontal/color/sigstore_cosign-horizontal-color.svg)

TL;DR;
Artifact signing and signature verification are critical security capabilities that allow you to verify the integrity of an artifact. Harbor supports content trust through integrations with [Notary](https://github.com/notaryproject/notary) and [Cosign](https://github.com/sigstore/cosign).
TL;DR;
Artifact signing and signature verification are critical security capabilities that allow you to verify the integrity of an artifact. Harbor supports content trust through integrations with [Notary](https://github.com/notaryproject/notary) and [Cosign](https://github.com/sigstore/cosign).

Harbor v2.5 integrates support for [Cosign](https://github.com/sigstore/cosign), a OCI artifact signing and verification solution that is part of the [Sigstore project](https://github.com/sigstore).

Expand All @@ -20,13 +20,15 @@ A key feature of using Cosign with Harbor is the ability use Harbor's [replicati

Full Documentation you will be able to find [here](https://goharbor.io/docs/2.5.0/working-with-projects/working-with-images/sign-images/)

## Demo Setup
## Demo Setup
**Configure two Harbor instances with Cosign enabled(default in v2.5.0) per repo and configure replication**

We will have two instances harbor1 and harbor2, project "cosign" and replication rule(push based) between harbor1-to-harbor2, using robo-account.
We will have two instances harbor1 and harbor2, project "cosign" and replication rule(push based) between harbor1-to-harbor2, using robo-account.

Check out a video of this demo:
<iframe width="560" height="315" src="https://www.youtube.com/embed/u8nxky-6Q9c" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<div style="position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden;">
<iframe src="https://www.youtube.com/embed/4zZiBcvZmgQ" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>

#### 1. Install two instances with cosig(and notary) enabled
In our setup we use [offline installer](https://goharbor.io/docs/2.5.0/install-config/download-installer/).
Expand Down Expand Up @@ -82,7 +84,7 @@ Setup Replication from harbor1 -> harbor2:

#### 7. Create cosign key-pair
To be able to perform the follwing steps you need to have "cosign" installed.
Here are the [instructions](https://docs.sigstore.dev/cosign/installation/) for the installation.
Here are the [instructions](https://docs.sigstore.dev/cosign/installation/) for the installation.

```
$ cosign generate-key-pair
Expand All @@ -98,7 +100,7 @@ export COSIGN_PASSWORD=Your_Super_P1$$w0rD
```

#### 8. Push and sign Image
Use your cosign-demo user to sign into the first Harbor instance.
Use your cosign-demo user to sign into the first Harbor instance.

```
$ docker login harbor1.orlix.org
Expand Down Expand Up @@ -172,22 +174,22 @@ The following checks were performed on each of these signatures:
```

Both verification returns result and exit code zero which indicates for valid signature!
As well the digest is the same!
As well the digest is the same!

Hurray!!!
Hurray!!!

### Collaborate with the Harbor Community!
### Collaborate with the Harbor Community!

Join the [Harbor Community][community] meetings and distribution lists
Get updates on Twitter at [@project_harbor][twitter]
Chat with us on Slack at [#harbor][users-slack] on the [CNCF Slack][cncf-slack]
Collaborate with us on GitHub: [github.com/goharbor/harbor](https://github.com/goharbor/harbor)
Join the [Harbor Community][community] meetings and distribution lists
Get updates on Twitter at [@project_harbor][twitter]
Chat with us on Slack at [#harbor][users-slack] on the [CNCF Slack][cncf-slack]
Collaborate with us on GitHub: [github.com/goharbor/harbor](https://github.com/goharbor/harbor)



[Orlin Vasilev](https://twitter.com/OrlinVasilev)
Harbor Community Manager
[github.com/OrlinVasilev](https://github.com/OrlinVasilev)
[Orlin Vasilev](https://twitter.com/OrlinVasilev)
Harbor Community Manager
[github.com/OrlinVasilev](https://github.com/OrlinVasilev)

[community]: https://goharbor.io/community/
[users-slack]: https://cloud-native.slack.com/archives/CC1E09J6S
Expand Down
9 changes: 8 additions & 1 deletion layouts/partials/home/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
</div>

<div class="column">
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ $videoId }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<div style="position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden;">
<iframe src="https://www.youtube.com/embed/{{ $videoId }}"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit d7075b8

Please sign in to comment.