-
Notifications
You must be signed in to change notification settings - Fork 25
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 (#177)
* feat(fips): add fips compliant packages * udpate dependence on fips agent
- Loading branch information
1 parent
c16a7d5
commit f4932f0
Showing
9 changed files
with
125 additions
and
38 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-rabbitmq | ||
builds: | ||
- id: nri-nix | ||
main: ./src | ||
|
@@ -17,6 +20,26 @@ builds: | |
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
|
||
- id: nri-nix-fips | ||
main: ./src | ||
binary: nri-rabbitmq | ||
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-win | ||
main: ./src | ||
|
@@ -36,7 +59,8 @@ builds: | |
|
||
nfpms: | ||
- id: linux | ||
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}" | ||
package_name: nri-rabbitmq | ||
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 to be generated. | ||
formats: | ||
- deb | ||
- rpm | ||
|
||
- id: linux-fips | ||
package_name: nri-rabbitmq-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 rabbitmq Integration extend the core New Relic\nInfrastructure agent's capabilities to allow you to collect metric and\nlive state data from rabbitmq components." | ||
license: "https://newrelic.com/terms (also see LICENSE installed with this package)" | ||
|
||
builds: | ||
- nri-nix-fips | ||
|
||
dependencies: | ||
- newrelic-infra-fips (>= 1.60.0) | ||
|
||
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin" | ||
contents: | ||
- src: "rabbitmq-config.yml.sample" | ||
dst: "/etc/newrelic-infra/integrations.d/rabbitmq-config.yml.sample" | ||
- src: "rabbitmq-log.yml.example" | ||
dst: "/etc/newrelic-infra/logging.d/rabbitmq-log.yml.example" | ||
- src: "CHANGELOG.md" | ||
dst: "/usr/share/doc/nri-rabbitmq/CHANGELOG.md" | ||
- src: "README.md" | ||
dst: "/usr/share/doc/nri-rabbitmq/README.md" | ||
- src: "LICENSE" | ||
dst: "/usr/share/doc/nri-rabbitmq/LICENSE" | ||
- src: "legacy/rabbitmq-definition.yml" | ||
dst: "/var/db/newrelic-infra/newrelic-integrations/rabbitmq-definition.yml" | ||
type: config | ||
|
||
overrides: | ||
rpm: | ||
file_name_template: >- | ||
{{- .ProjectName }}-fips- | ||
{{- .Version }}-1. | ||
{{- if eq .Arch "amd64" -}}x86_64 | ||
{{- else -}} | ||
{{ .Arch }} | ||
{{- end }} | ||
# Formats to be generated. | ||
formats: | ||
|
@@ -88,6 +162,18 @@ archives: | |
dst: . | ||
strip_parent: true | ||
format: tar.gz | ||
|
||
- id: nri-nix-fips | ||
builds: | ||
- nri-nix-fips | ||
name_template: "{{ .ProjectName }}-fips_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty" | ||
files: | ||
- rabbitmq-config.yml.sample | ||
- rabbitmq-log.yml.example | ||
- src: 'legacy/rabbitmq-definition.yml' | ||
dst: . | ||
strip_parent: true | ||
format: tar.gz | ||
|
||
- id: nri-win | ||
builds: | ||
|
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
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" | ||
) |