-
Notifications
You must be signed in to change notification settings - Fork 59
4.11 docs #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
4.11 docs #265
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
83e0430
Version number bumps
5d55a22
Image version updates
4ca5c33
Sync generated files
f2948e7
Adds whatsnew for 4.11
e7db8c4
Draft image signing check - needs working example
4ca4cb8
Adds sample verification commands
15b7173
Fix opentelemetry example for syslog-ng
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| name: Publish version 4.10 | ||
|
|
||
| env: | ||
| doc_versionnumber: "4.10" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - release-4.10 | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| environment: | ||
| name: github-pages-test | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| with: | ||
| ref: release-4.10 | ||
| submodules: 'recursive' | ||
|
|
||
| - name: Set up Pages | ||
| id: pages | ||
| uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0 | ||
|
|
||
| - name: Set up Hugo | ||
| uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0 | ||
| with: | ||
| hugo-version: '0.110.0' | ||
| extended: true | ||
|
|
||
| - name: Set up Node | ||
| uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
| with: | ||
| node-version: 18 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| cd themes/docsy | ||
| npm install | ||
|
|
||
| - name: Set up PostCSS | ||
| run: npm install --save-dev autoprefixer postcss-cli postcss | ||
|
|
||
| - name: Build | ||
| run: hugo --environment production --baseURL ${{ steps.pages.outputs.base_url }}/${{ env.doc_versionnumber }}/ | ||
|
|
||
| # - name: Upload artifact | ||
| # uses: actions/upload-pages-artifact@64bcae551a7b18bcb9a09042ddf1960979799187 # v1.0.8 | ||
| # with: | ||
| # path: ./public/ | ||
|
|
||
| - name: Checkout code to update | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| with: | ||
| ref: 'gh-pages-test' | ||
| path: 'tmp/gh-pages' | ||
| # - name: Display file structure | ||
| # run: ls -R | ||
| - name: Copy built site to GH pages | ||
| run: | | ||
| rm -rf tmp/gh-pages/${{ env.doc_versionnumber }} | ||
| mkdir -p tmp/gh-pages/${{ env.doc_versionnumber }} | ||
| mv public/* tmp/gh-pages/${{ env.doc_versionnumber }} | ||
| - name: Commit & Push changes | ||
| uses: actions-js/push@master | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| message: 'Publish updated docs for ${{ env.doc_versionnumber }}, ${{ github.event.repository.pushed_at}}' | ||
| branch: 'gh-pages-test' | ||
| directory: 'tmp/gh-pages' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,3 +69,51 @@ To verify that the installation was successful, complete the following steps. | |
| syslogngflows.logging.banzaicloud.io 2023-08-10T12:05:05Z | ||
| syslogngoutputs.logging.banzaicloud.io 2023-08-10T12:05:06Z | ||
| ``` | ||
|
|
||
| ## Image and chart verification {#verify} | ||
|
|
||
| Images and charts are signed with GitHub Actions OIDC token. We sign the digests of the images and the charts to ensure the integrity and authenticity of the artifacts. | ||
|
|
||
| To verify signatures, you must have [cosign](https://docs.sigstore.dev/cosign/system_config/installation/) installed. | ||
|
|
||
| ### Image verification | ||
|
|
||
| You can verify our images by running the following command. | ||
|
|
||
| ```shell | ||
| cosign verify "ghcr.io/kube-logging/logging-operator@{sha256-IMAGE-DIGEST}" \ | ||
| --certificate-identity "https://github.com/ghcr.io/kube-logging/logging-operator/.github/workflows/artifacts.yaml@{refs/heads/main || refs/tags/<tag_name>}" \ | ||
| --certificate-oidc-issuer "https://token.actions.githubusercontent.com" | ||
| ``` | ||
|
|
||
| - Replace `{sha256-IMAGE-DIGEST}` with the digest of the image you want to verify. You can find the digests at [ghcr.io/kube-logging/logging-operator](https://ghcr.io/kube-logging/logging-operator). For example, for the 4.11.0 release it's `sha256:50550883905ffe484f210ae65a8e0dbcbc0836c240b1fec454945d8b97830ede`. | ||
| - Replace `{refs/heads/main || refs/tags/<tag_name>}` with the reference to the image you want to verify. For example, for the 4.11.0 release, use `refs/tags/4.11.0`. | ||
|
|
||
| For example: | ||
|
|
||
| ```shell | ||
| cosign verify "ghcr.io/kube-logging/logging-operator@sha256:50550883905ffe484f210ae65a8e0dbcbc0836c240b1fec454945d8b97830ede" \ | ||
| --certificate-identity "https://github.com/kube-logging/logging-operator/.github/workflows/artifacts.yaml@refs/tags/4.11.0" \ | ||
| --certificate-oidc-issuer "https://token.actions.githubusercontent.com" | ||
| ``` | ||
|
|
||
| ### Chart verification | ||
|
|
||
| You can verify our charts by running the following command. | ||
|
|
||
| ```shell | ||
| cosign verify "ghcr.io/kube-logging/logging-operator@{sha256-CHART-DIGEST}" \ | ||
| --certificate-identity "https://github.com/ghcr.io/kube-logging/logging-operator/.github/workflows/artifacts.yaml@{refs/heads/main || refs/tags/<tag_name>}" \ | ||
| --certificate-oidc-issuer "https://token.actions.githubusercontent.com" | ||
| ``` | ||
|
|
||
| - Replace `{sha256-CHART-DIGEST}` with the digest of the image you want to verify. You can find the digests at [ghcr.io/kube-logging/helm-charts/logging-operator](https://ghcr.io/kube-logging/helm-charts/logging-operator). For example, for the 4.11.0 release it's `sha256:233407195e1c97382e7fc0dfb00f9c6cadbba2928a64bfce6be072fc37df20eb`. | ||
| - Replace `{refs/heads/main || refs/tags/<tag_name>}` with the reference to the image you want to verify. For example, for the 4.11.0 release, use `refs/tags/4.11.0`. | ||
|
|
||
| For example: | ||
|
|
||
| ```shell | ||
| cosign verify "ghcr.io/kube-logging/helm-charts/logging-operator@sha256:233407195e1c97382e7fc0dfb00f9c6cadbba2928a64bfce6be072fc37df20eb" \ | ||
| --certificate-identity "https://github.com/kube-logging/logging-operator/.github/workflows/artifacts.yaml@refs/tags/4.11.0" \ | ||
| --certificate-oidc-issuer "https://token.actions.githubusercontent.com" | ||
| ``` | ||
|
Comment on lines
+100
to
+119
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At the beginning of this section it is mentioned that the digest is signed in both cases, so I think we should not explain it twice, since it works the same. |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is named 4.10 but this docs update is for 4.11?