-
Notifications
You must be signed in to change notification settings - Fork 18
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
- Loading branch information
1 parent
d1f4fef
commit e540026
Showing
9 changed files
with
124 additions
and
45 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-cassandra | ||
builds: | ||
- id: nri-nix | ||
main: ./src | ||
|
@@ -17,6 +20,24 @@ builds: | |
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
|
||
- id: nri-nix-fips | ||
main: ./src | ||
binary: nri-cassandra | ||
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 | ||
|
||
- id: nri-win | ||
main: ./src | ||
|
@@ -34,7 +55,8 @@ builds: | |
|
||
nfpms: | ||
- id: linux | ||
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}" | ||
package_name: nri-cassandra | ||
file_name_template: "{{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}" | ||
vendor: "New Relic, Inc." | ||
homepage: "https://www.newrelic.com/infrastructure" | ||
maintainer: "New Relic Infrastructure Team <[email protected]>" | ||
|
@@ -45,8 +67,8 @@ nfpms: | |
- nri-nix | ||
|
||
dependencies: | ||
- newrelic-infra | ||
- nrjmx | ||
- newrelic-infra (>= 1.20.0) | ||
- nrjmx (>= 2.3.2) | ||
|
||
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin" | ||
|
||
|
@@ -66,19 +88,64 @@ nfpms: | |
type: config | ||
|
||
overrides: | ||
deb: | ||
dependencies: | ||
- newrelic-infra (>= 1.20.0) | ||
- nrjmx (>= 2.3.2) | ||
rpm: | ||
file_name_template: "{{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}" | ||
replacements: | ||
amd64: x86_64 | ||
dependencies: | ||
- newrelic-infra >= 1.20.0 | ||
- nrjmx >= 2.3.2 | ||
|
||
# Formats to be generated. | ||
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-cassandra-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 cassandra Integration extend the core New Relic\nInfrastructure agent's capabilities to allow you to collect metric and\nlive state data from cassandra components." | ||
license: "https://newrelic.com/terms (also see LICENSE installed with this package)" | ||
|
||
builds: | ||
- nri-nix-fips | ||
|
||
dependencies: | ||
- newrelic-infra (>= 1.20.0) | ||
- nrjmx (>= 2.3.2) | ||
|
||
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin" | ||
|
||
contents: | ||
- src: "cassandra-config.yml.sample" | ||
dst: "/etc/newrelic-infra/integrations.d/cassandra-config.yml.sample" | ||
- src: "cassandra-log.yml.example" | ||
dst: "/etc/newrelic-infra/logging.d/cassandra-log.yml.example" | ||
- src: "CHANGELOG.md" | ||
dst: "/usr/share/doc/nri-cassandra/CHANGELOG.md" | ||
- src: "README.md" | ||
dst: "/usr/share/doc/nri-cassandra/README.md" | ||
- src: "LICENSE" | ||
dst: "/usr/share/doc/nri-cassandra/LICENSE" | ||
- src: "legacy/cassandra-definition.yml" | ||
dst: "/var/db/newrelic-infra/newrelic-integrations/cassandra-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: | ||
- deb | ||
- rpm | ||
|
@@ -94,6 +161,17 @@ 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: | ||
- cassandra-config.yml.sample | ||
- src: 'legacy/cassandra-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" | ||
) |