-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prerelease for FIPS with testing and image creation (#1992)
* feat(fips): add fips integrations when building fips infra-agent (#1969) * Nr 351326 linux prerelease fips (#1976) * Create new FIPS packages on prerelease for linux * Add FIPS molecule tests. (#1981) * Create new docker FIPS images (#1982) * feat(fips): update tests to run for fips packages (#1980) * update harvest tests to run for fips packages * chore: update action versions * update packaging tests * assume role for 2 hours as tests can take longer than 1 hour * Add conflicts to the newrelic-infra packages to not allow having both fips and non fips installed at the same time (#1987) * Add fips canaries (#1988) * Add fips canaries * Condition Fips canary previous to have a second release --------- Co-authored-by: Rohan Yadav <[email protected]>
- Loading branch information
1 parent
8f163fa
commit b86d898
Showing
58 changed files
with
468 additions
and
188 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -76,6 +76,9 @@ jobs: | |
- "targz" | ||
- "deb" | ||
- "rpm" | ||
suffix: | ||
- "" | ||
- "-fips" | ||
|
||
steps: | ||
- name: Login to DockerHub | ||
|
@@ -89,10 +92,10 @@ jobs: | |
uses: newrelic/[email protected] | ||
with: | ||
tag: ${{env.TAG}} | ||
app_name: "newrelic-infra" | ||
app_name: "newrelic-infra${{ matrix.suffix }}" | ||
repo_name: "newrelic/infrastructure-agent" | ||
schema: "custom" | ||
schema_url: "https://raw.githubusercontent.com/newrelic/infrastructure-agent/${{ env.SCHEMA_BRANCH }}/build/upload-schema-linux-${{ matrix.assetsType }}.yml" | ||
schema_url: "https://raw.githubusercontent.com/newrelic/infrastructure-agent/${{ env.SCHEMA_BRANCH }}/build/upload-schema-linux-${{ matrix.assetsType }}${{ matrix.suffix }}.yml" | ||
aws_access_key_id: ${{ env.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ env.AWS_SECRET_ACCESS_KEY }} | ||
aws_s3_bucket_name: ${{ env.AWS_S3_BUCKET_NAME }} | ||
|
This file contains 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 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 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 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 |
---|---|---|
|
@@ -31,6 +31,21 @@ jobs: | |
with: | ||
TAG: ${{ github.event.release.tag_name }} | ||
ARCH: 'amd64' | ||
|
||
packaging-amd64-fips: | ||
needs: [unit-test, proxy-tests] | ||
uses: ./.github/workflows/component_linux_packaging.yml | ||
secrets: | ||
DOCKER_HUB_ID: ${{secrets.OHAI_DOCKER_HUB_ID}} | ||
DOCKER_HUB_PASSWORD: ${{secrets.OHAI_DOCKER_HUB_PASSWORD}} | ||
GPG_MAIL: '[email protected]' | ||
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }} | ||
GPG_PRIVATE_KEY_BASE64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
TAG: ${{ github.event.release.tag_name }} | ||
ARCH: 'amd64' | ||
FIPS: true | ||
|
||
packaging-arm: | ||
needs: [unit-test, proxy-tests] | ||
|
@@ -60,6 +75,21 @@ jobs: | |
TAG: ${{ github.event.release.tag_name }} | ||
ARCH: 'arm64' | ||
|
||
packaging-arm64-fips: | ||
needs: [unit-test, proxy-tests] | ||
uses: ./.github/workflows/component_linux_packaging.yml | ||
secrets: | ||
DOCKER_HUB_ID: ${{secrets.OHAI_DOCKER_HUB_ID}} | ||
DOCKER_HUB_PASSWORD: ${{secrets.OHAI_DOCKER_HUB_PASSWORD}} | ||
GPG_MAIL: '[email protected]' | ||
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }} | ||
GPG_PRIVATE_KEY_BASE64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
TAG: ${{ github.event.release.tag_name }} | ||
ARCH: 'arm64' | ||
FIPS: true | ||
|
||
packaging-legacy: | ||
needs: [unit-test, proxy-tests] | ||
uses: ./.github/workflows/component_linux_packaging.yml | ||
|
@@ -94,11 +124,33 @@ jobs: | |
tag: "${{ github.event.release.tag_name }}-rc" | ||
severity: "CRITICAL" | ||
|
||
packaging-docker-fips: | ||
needs: [unit-test, proxy-tests] | ||
uses: ./.github/workflows/component_docker_packaging.yml | ||
secrets: | ||
DOCKER_HUB_ID: ${{secrets.OHAI_DOCKER_HUB_ID}} | ||
DOCKER_HUB_PASSWORD: ${{secrets.OHAI_DOCKER_HUB_PASSWORD}} | ||
GPG_MAIL: '[email protected]' | ||
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }} | ||
GPG_PRIVATE_KEY_BASE64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
TAG: ${{ github.event.release.tag_name }} | ||
FIPS: true | ||
|
||
docker-fips-trivy-critical: | ||
needs: [packaging-docker-fips] | ||
uses: ./.github/workflows/component_trivy.yml | ||
with: | ||
tag: "${{ github.event.release.tag_name }}-rc" | ||
severity: "CRITICAL" | ||
FIPS: true | ||
|
||
publishing-to-s3: | ||
# point to staging after tests | ||
name: Publish linux artifacts into s3 staging bucket | ||
uses: ./.github/workflows/component_linux_publish.yml | ||
needs: [packaging-amd64, packaging-arm, packaging-arm64, packaging-legacy] | ||
needs: [packaging-amd64, packaging-amd64-fips, packaging-arm, packaging-arm64, packaging-arm64-fips, packaging-legacy] | ||
secrets: | ||
DOCKER_HUB_ID: ${{secrets.OHAI_DOCKER_HUB_ID}} | ||
DOCKER_HUB_PASSWORD: ${{secrets.OHAI_DOCKER_HUB_PASSWORD}} | ||
|
Oops, something went wrong.