Skip to content
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

feat: flagd image signing #338

Merged

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Jan 27, 2023

This PR

fixes #328

Introduce image signing for flagd. Signature is pushed to OCR repository and public key will get added to release artefacts under the name publicKey.pub (referred through variable PUBLIC_KEY_FILE in GH action)

NOTE - Require COSIGN_PRIVATE_KEY & COSIGN_PASSWORD secrets to be created. And decide how to expose public key

@Kavindu-Dodan
Copy link
Contributor Author

Before merging this PR, someone with admin rights needs to generate a private key with a passphrase and set them to "Action secrets and variables"

  1. Install cosign [1]
  2. Run cosign generate-key-pair : Set passphrase in this step
  3. Set COSIGN_PASSWORD to the passphrase and set COSIGN_PRIVATE_KEY to consign.key

[1] - https://docs.sigstore.dev/cosign/installation/

@beeme1mr @toddbaert @james-milligan fyi

@beeme1mr beeme1mr self-assigned this Feb 1, 2023
@beeme1mr
Copy link
Member

beeme1mr commented Feb 1, 2023

I've set COSIGN_PASSWORD and COSIGN_PRIVATE_KEY based on this comment.

@beeme1mr beeme1mr self-requested a review February 1, 2023 18:24
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
@toddbaert toddbaert merged commit eca6a60 into open-feature:main Feb 1, 2023
skyerus pushed a commit that referenced this pull request Feb 6, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.3.5](v0.3.4...v0.3.5)
(2023-02-06)


### Features

* flagd image signing
([#338](#338))
([eca6a60](eca6a60))
* update in logging to console and Unify case usage, seperators and
punctuation for logging
([#322](#322))
([0bdcfd2](0bdcfd2))


### Bug Fixes

* **deps:** update module github.com/bufbuild/connect-go to v1.5.1
([#365](#365))
([e25f452](e25f452))
* **deps:** update module github.com/open-feature/open-feature-operator
to v0.2.28 ([#342](#342))
([e6df80f](e6df80f))
* **deps:** update module sigs.k8s.io/controller-runtime to v0.14.2
([#336](#336))
([836d3cf](836d3cf))
* **deps:** update module sigs.k8s.io/controller-runtime to v0.14.3
([#372](#372))
([330ac91](330ac91))
* **deps:** update module sigs.k8s.io/controller-runtime to v0.14.4
([#374](#374))
([d90e561](d90e561))
* fix unbuffered channel blocking goroutine
([#358](#358))
([4f1905a](4f1905a))
* introduced RWMutex to flag state to prevent concurrent r/w of map
([#370](#370))
([93e356b](93e356b))
* use event.Has func for file change notification handling (increased
stability across OS)
([#361](#361))
([09f74b9](09f74b9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
beeme1mr pushed a commit that referenced this pull request Feb 7, 2023
@Kavindu-Dodan has contributed multiple significant changes and
proposals to flagd:

- multiple refactors: #291,
#307
- ci/security improvements:
#338,
#337
- architectural proposals (some of which got some attention from outside
parties!): open-feature/ofep#45,
open-feature/flagd-schemas#78,
#249 (comment)
- load testing: #225
- documentation improvements

For these reasons, I believe he should be made a CODEOWNER in this
repository.

NOTE: before this is merged, @Kavindu-Dodan should be added with at
least `maintainer` permissions to the repo.

Signed-off-by: Todd Baert <toddbaert@gmail.com>
@github-actions github-actions bot mentioned this pull request Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Sign release images
3 participants