-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fips): add fips compliant packages (#175)
* feat(fips): add fips compliant packages * update dependence on fips agent
- Loading branch information
1 parent
dc8463e
commit 3caa607
Showing
10 changed files
with
119 additions
and
80 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
--- | ||
version: 2 | ||
project_name: nri-mysql | ||
builds: | ||
- id: nri-mysql-nix | ||
main: ./src | ||
|
@@ -17,6 +20,26 @@ builds: | |
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
|
||
- id: nri-mysql-nix-fips | ||
main: ./src | ||
binary: nri-mysql | ||
ldflags: | ||
- -s -w -X main.integrationVersion={{.Version}} -X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}} | ||
env: | ||
- CGO_ENABLED=1 | ||
- GOEXPERIMENT=boringcrypto | ||
- >- | ||
{{- if eq .Arch "arm64" -}} | ||
CC=aarch64-linux-gnu-gcc | ||
{{- end }} | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
tags: | ||
- fips | ||
|
||
- id: nri-mysql-win | ||
main: ./src | ||
|
@@ -35,7 +58,8 @@ builds: | |
|
||
nfpms: | ||
- id: linux | ||
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}" | ||
package_name: nri-mysql | ||
file_name_template: "{{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}" | ||
vendor: "New Relic, Inc." | ||
homepage: "https://www.newrelic.com/infrastructure" | ||
maintainer: "New Relic Infrastructure Team <[email protected]>" | ||
|
@@ -67,9 +91,59 @@ nfpms: | |
|
||
overrides: | ||
rpm: | ||
file_name_template: "{{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}" | ||
replacements: | ||
amd64: x86_64 | ||
file_name_template: >- | ||
{{- .ProjectName }}- | ||
{{- .Version }}-1. | ||
{{- if eq .Arch "amd64" -}}x86_64 | ||
{{- else -}} | ||
{{ .Arch }} | ||
{{- end }} | ||
formats: | ||
- deb | ||
- rpm | ||
|
||
- id: linux-fips | ||
package_name: nri-mysql-fips | ||
file_name_template: "{{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}" | ||
vendor: "New Relic, Inc." | ||
homepage: "https://www.newrelic.com/infrastructure" | ||
maintainer: "New Relic Infrastructure Team <[email protected]>" | ||
description: "New Relic Infrastructure mysql Integration extend the core New Relic\nInfrastructure agent's capabilities to allow you to collect metric and\nlive state data from mysql components." | ||
license: "https://newrelic.com/terms (also see LICENSE installed with this package)" | ||
|
||
builds: | ||
- nri-mysql-nix-fips | ||
|
||
dependencies: | ||
- newrelic-infra-fips (>= 1.60.0) | ||
|
||
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin" | ||
|
||
contents: | ||
- src: "mysql-config.yml.sample" | ||
dst: "/etc/newrelic-infra/integrations.d/mysql-config.yml.sample" | ||
- src: "mysql-log.yml.example" | ||
dst: "/etc/newrelic-infra/logging.d/mysql-log.yml.example" | ||
- src: "CHANGELOG.md" | ||
dst: "/usr/share/doc/nri-mysql/CHANGELOG.md" | ||
- src: "README.md" | ||
dst: "/usr/share/doc/nri-mysql/README.md" | ||
- src: "LICENSE" | ||
dst: "/usr/share/doc/nri-mysql/LICENSE" | ||
- src: "legacy/mysql-definition.yml" | ||
dst: "/var/db/newrelic-infra/newrelic-integrations/mysql-definition.yml" | ||
type: config | ||
|
||
overrides: | ||
rpm: | ||
file_name_template: >- | ||
{{- .ProjectName }}-fips- | ||
{{- .Version }}-1. | ||
{{- if eq .Arch "amd64" -}}x86_64 | ||
{{- else -}} | ||
{{ .Arch }} | ||
{{- end }} | ||
formats: | ||
- deb | ||
|
@@ -87,6 +161,17 @@ archives: | |
strip_parent: true | ||
format: tar.gz | ||
|
||
- id: nri-mysql-nix-fips | ||
builds: | ||
- nri-mysql-nix-fips | ||
name_template: "{{ .ProjectName }}-fips_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty" | ||
files: | ||
- mysql-config.yml.sample | ||
- src: 'legacy/mysql-definition.yml' | ||
dst: . | ||
strip_parent: true | ||
format: tar.gz | ||
|
||
- id: nri-mysql-win | ||
builds: | ||
- nri-mysql-win | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2025 New Relic Corporation. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//go:build fips | ||
// +build fips | ||
|
||
package main | ||
|
||
import ( | ||
_ "crypto/tls/fipsonly" | ||
) |