Skip to content

Commit

Permalink
Updates of secrets information (#332)
Browse files Browse the repository at this point in the history
* Updated commiter kosli-github and kosli-jira tokens

* Updated fury gitbucket and gitlab token info

* Removed GHCR_TOKEN that was not used

* Removed use of GHCR_TOKEN

* Updated date for ghcr which can be leleted when we have tested it

* Added more info about GPC secretes
  • Loading branch information
ToreMerkely authored Oct 2, 2024
1 parent 18d4b58 commit 2f2be7b
Show file tree
Hide file tree
Showing 14 changed files with 102 additions and 32 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ on:
required: true
slack_webhook:
required: true
ghcr_user:
required: true
ghcr_token:
required: true
kosli_api_token:
required: true
snyk_token:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,5 @@ jobs:
secrets:
slack_webhook: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }}
slack_channel: ci-failures
ghcr_user: ${{ secrets.GHCR_USER }}
ghcr_token: ${{ secrets.GHCR_TOKEN }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
secrets:
slack_webhook: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }}
slack_channel: ci-failures
ghcr_user: ${{ secrets.GHCR_USER }}
ghcr_token: ${{ secrets.GHCR_TOKEN }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}

goreleaser:
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write
outputs:
Expand All @@ -129,7 +128,7 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}

- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion secrets/gh-repo-azure-client-id.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ secret-expire: 2024-09-01
secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
is-secret: false
secret-usage:

update-instructions:
9 changes: 5 additions & 4 deletions secrets/gh-repo-committer-token.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
secret-name: COMMITTER_TOKEN
secret-expire: 2024-09-01
secret-updated:
secret-updated-by:
secret-expire: 2025-09-27
secret-updated: 2024-09-27
secret-updated-by: tore
secret-type: gh-repo
is-secret: true
secret-usage: Used both to create a pull-request to helm-chart and home-brew

update-instructions:
https://github.com/settings/tokens
Go to the Developer's Github profile
-> Settings
-> Developer settings
-> Personal access tokens
-> Tokens (classic)
-> Generate new token
Token name: gh-cli-committer-token
Note: gh-cli-committer-token
Expiration: one year
Selected scopes: repo and workflow

Expand Down
16 changes: 12 additions & 4 deletions secrets/gh-repo-fury-token.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
secret-name: FURY_TOKEN
secret-expire: 2024-09-01
secret-updated:
secret-updated-by:
secret-expire: 2025-09-27
secret-updated: 2024-09-27
secret-updated-by: tore
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Token used to publish our Linux pagages (.deb .rpm) to Gemfury
https://manage.fury.io/dashboard/kosli

update-instructions:
Go to https://manage.fury.io/manage/kosli/tokens/push
Press <Create new push token>
Press <Generate token>
Copy the token

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>
4 changes: 3 additions & 1 deletion secrets/gh-repo-ghcr-token.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
secret-name: GHCR_TOKEN
secret-expire: 2024-09-01
secret-expire: 2024-12-01
secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
secret-usage:

This is no longer used and can be deleted. Tore 2024-09-27

update-instructions:
4 changes: 3 additions & 1 deletion secrets/gh-repo-ghcr-user.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
secret-name: GHCR_USER
secret-expire: 2024-09-01
secret-expire: 2024-12-01
secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
secret-usage:

This is no longer used and can be deleted. Tore 2024-09-27

update-instructions:
11 changes: 10 additions & 1 deletion secrets/gh-repo-gpg-passphrase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Used to have a signe git commit for helm chart.
Used together with GPG_PRIVATE_KEY and
commiter in Create Pull Request in helm-chart.yml

update-instructions:
Instructions here: https://github.com/crazy-max/ghaction-import-gpg?tab=readme-ov-file#prerequisites

# macOS (not tested)
gpg --armor --export-secret-key $(git config user.email) | pbcopy

# Ubuntu (assuming GNU base64)
gpg --armor --export-secret-key $(git config user.email) -w0 | xclip -sel clip
19 changes: 18 additions & 1 deletion secrets/gh-repo-gpg-private-key.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Used to have a signe git commit for helm chart.
Used together with GPG_PRIVATE_KEY and
commiter in Create Pull Request in helm-chart.yml

update-instructions:
Instructions taken from here, bu
https://github.com/crazy-max/ghaction-import-gpg?tab=readme-ov-file#prerequisites

# macOS
gpg --armor --export-secret-key $(git config user.email) | pbcopy

# Ubuntu
# Run this command and give a passphrase when asked. Rember the passphrase
gpg --armor --export-secret-key $(git config user.email) -w0 | xclip -sel clip

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>
And set both the GPG_PRIVATE_KEY and GPG_PASSPHRASE

OBS. Also update commiter in .github/workflows/helm-chart.yml
4 changes: 3 additions & 1 deletion secrets/gh-repo-kosli-bitbucket-password.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Used to test Bitbucket integration.
The tests are currently setup to work for the
bitbucket-org ewelinawilkosz

update-instructions:
22 changes: 18 additions & 4 deletions secrets/gh-repo-kosli-github-token.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
secret-name: KOSLI_GITHUB_TOKEN
secret-expire: 2024-09-01
secret-updated:
secret-updated-by:
secret-expire: 2025-09-27
secret-updated: 2024-09-27
secret-updated-by: tore
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Used to run integration tests towards GitHub

update-instructions:
You can use the same secret as COMMITTER_TOKEN
https://github.com/settings/tokens
Go to the Developer's Github profile
-> Settings
-> Developer settings
-> Personal access tokens
-> Tokens (classic)
-> Generate new token
Note: gh-cli-committer-token
Expiration: one year
Selected scopes: repo and workflow

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>
16 changes: 15 additions & 1 deletion secrets/gh-repo-kosli-gitlab-token.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ secret-updated:
secret-updated-by:
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Used to test Gitlab integration.
The tests are currently setup to work for the
gitlab-org ewelinawilkosz

update-instructions:
Go to https://gitlab.com/
On the left sidebar, select your avatar.
Select Edit profile.
On the left sidebar, select Access tokens.
Select Add new token.
Token name: CLI-integration-testing-YYYY-MM-DD
Expiration date: One year
Select scopes: api
Select Create personal access token.

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>
16 changes: 12 additions & 4 deletions secrets/gh-repo-kosli-jira-api-token.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
secret-name: KOSLI_JIRA_API_TOKEN
secret-expire: 2024-09-01
secret-updated:
secret-updated-by:
secret-expire: 2025-09-27
secret-updated: 2024-09-27
secret-updated-by: tore
secret-type: gh-repo
is-secret: true
secret-usage:
secret-usage: Used to test Jira integration

update-instructions:
Go to
https://id.atlassian.com/manage-profile/security/api-tokens
Press <Create API token>
Label: CLI-integration-testing-YYYY-MM-DD
Create secret

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>

0 comments on commit 2f2be7b

Please sign in to comment.