Skip to content

Commit e995fb0

Browse files
authored
ci: install crowdstrike falcon (#325)
* ci: install crowdstrike falcon Signed-off-by: David Sánchez <davidslt+git@pm.me> * fix: rename role * ci: add secrets to TF module * ci: fix task definition reference * chore: rename repo refs to newrelic-super-agent --------- Signed-off-by: David Sánchez <davidslt+git@pm.me>
1 parent 309ba50 commit e995fb0

12 files changed

Lines changed: 70 additions & 30 deletions

File tree

.github/workflows/canaries_prune.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ jobs:
4747
aws_region: us-east-2
4848
container_make_target: "test/canaries-clean TAG_OR_UNIQUE_NAME=${{ env.TAG_OR_UNIQUE_NAME }}"
4949
ecs_cluster_name: caos_super_agent_releases
50-
task_definition_name: super_agent-releases-td
50+
task_definition_name: super_agent-releases
5151
cloud_watch_logs_group_name: /ecs/test-prerelease-super_agent-releases
5252
cloud_watch_logs_stream_name: ecs/test-super_agent-releases
5353
aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
54-
repo_name: "newrelic/newrelic-supervisor"
55-
git_clone_url: "ssh://git@github.com/newrelic/newrelic-supervisor.git"
54+
repo_name: "newrelic/newrelic-super-agent"
55+
git_clone_url: "ssh://git@github.com/newrelic/newrelic-super-agent.git"
5656
ref: "${{ env.GIT_BRANCH }}"

.github/workflows/component_canaries.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
aws_region: us-east-2
5353
container_make_target: "test/provision TF_VAR_inventory_output=/srv/runner/inventory/${{ env.TAG_OR_UNIQUE_NAME }}-inventory.ec2 TAG_OR_UNIQUE_NAME=${{ env.TAG_OR_UNIQUE_NAME }}"
5454
ecs_cluster_name: caos_super_agent_releases
55-
task_definition_name: super_agent-releases-td
55+
task_definition_name: super_agent-releases
5656
cloud_watch_logs_group_name: /ecs/test-prerelease-super_agent-releases
5757
cloud_watch_logs_stream_name: ecs/test-super_agent-releases
5858
aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
59-
repo_name: "newrelic/newrelic-supervisor"
60-
git_clone_url: "ssh://git@github.com/newrelic/newrelic-supervisor.git"
59+
repo_name: "newrelic/newrelic-super-agent"
60+
git_clone_url: "ssh://git@github.com/newrelic/newrelic-super-agent.git"
6161
ref: "${{ env.GIT_BRANCH }}"
6262
log_filters: |
6363
\[ALLOW_MSG\].+
@@ -73,11 +73,11 @@ jobs:
7373
aws_region: us-east-2
7474
container_make_target: "test/canaries ANSIBLE_INVENTORY='/srv/runner/inventory/${{ env.TAG_OR_UNIQUE_NAME }}-inventory.ec2' LIMIT=testing_hosts_linux NR_OTEL_COLLECTOR_MEMORY_LIMIT=100 NR_OTEL_COLLECTOR_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317"
7575
ecs_cluster_name: caos_super_agent_releases
76-
task_definition_name: super_agent-releases-td
76+
task_definition_name: super_agent-releases
7777
cloud_watch_logs_group_name: /ecs/test-prerelease-super_agent-releases
7878
cloud_watch_logs_stream_name: ecs/test-super_agent-releases
7979
aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
80-
repo_name: "newrelic/newrelic-supervisor"
81-
git_clone_url: "ssh://git@github.com/newrelic/newrelic-supervisor.git"
80+
repo_name: "newrelic/newrelic-super-agent"
81+
git_clone_url: "ssh://git@github.com/newrelic/newrelic-super-agent.git"
8282
ref: "${{ env.GIT_BRANCH }}"
8383

.github/workflows/component_provision_packaging.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
aws_region: us-east-2
5050
container_make_target: "test/provision TF_VAR_inventory_output=/srv/runner/inventory/${{ env.TAG_OR_UNIQUE_NAME }}-inventory.ec2 TAG_OR_UNIQUE_NAME=${{ env.TAG_OR_UNIQUE_NAME }}"
5151
ecs_cluster_name: caos_super_agent_releases
52-
task_definition_name: super_agent-releases-td
52+
task_definition_name: super_agent-releases
5353
cloud_watch_logs_group_name: /ecs/test-prerelease-super_agent-releases
5454
cloud_watch_logs_stream_name: ecs/test-super_agent-releases
5555
aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
56-
repo_name: "newrelic/newrelic-supervisor"
57-
git_clone_url: "ssh://git@github.com/newrelic/newrelic-supervisor.git"
56+
repo_name: "newrelic/newrelic-super-agent"
57+
git_clone_url: "ssh://git@github.com/newrelic/newrelic-super-agent.git"
5858
ref: "${{ env.GIT_BRANCH }}"
5959
log_filters: |
6060
\[ALLOW_MSG\].+
@@ -70,12 +70,12 @@ jobs:
7070
aws_region: us-east-2
7171
container_make_target: "test/packaging ANSIBLE_INVENTORY='/srv/runner/inventory/${{ env.TAG_OR_UNIQUE_NAME }}-inventory.ec2' LIMIT=testing_hosts_linux NR_OTEL_COLLECTOR_MEMORY_LIMIT=100 NR_SUPER_AGENT_VERSION=${{ env.TAG_OR_UNIQUE_NAME }} NR_OTEL_COLLECTOR_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317"
7272
ecs_cluster_name: caos_super_agent_releases
73-
task_definition_name: super_agent-releases-td
73+
task_definition_name: super_agent-releases
7474
cloud_watch_logs_group_name: /ecs/test-prerelease-super_agent-releases
7575
cloud_watch_logs_stream_name: ecs/test-super_agent-releases
7676
aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
77-
repo_name: "newrelic/newrelic-supervisor"
78-
git_clone_url: "ssh://git@github.com/newrelic/newrelic-supervisor.git"
77+
repo_name: "newrelic/newrelic-super-agent"
78+
git_clone_url: "ssh://git@github.com/newrelic/newrelic-super-agent.git"
7979
ref: "${{ env.GIT_BRANCH }}"
8080

8181
- name: Destroy infra
@@ -84,12 +84,12 @@ jobs:
8484
aws_region: us-east-2
8585
container_make_target: "test/provision-clean TAG_OR_UNIQUE_NAME=${{ env.TAG_OR_UNIQUE_NAME }}"
8686
ecs_cluster_name: caos_super_agent_releases
87-
task_definition_name: super_agent-releases-td
87+
task_definition_name: super_agent-releases
8888
cloud_watch_logs_group_name: /ecs/test-prerelease-super_agent-releases
8989
cloud_watch_logs_stream_name: ecs/test-super_agent-releases
9090
aws_vpc_subnet: ${{ secrets.AWS_VPC_SUBNET }}
91-
repo_name: "newrelic/newrelic-supervisor"
92-
git_clone_url: "ssh://git@github.com/newrelic/newrelic-supervisor.git"
91+
repo_name: "newrelic/newrelic-super-agent"
92+
git_clone_url: "ssh://git@github.com/newrelic/newrelic-super-agent.git"
9393
ref: "${{ env.GIT_BRANCH }}"
9494
log_filters: |
9595
Destroy\scomplete!

.github/workflows/prerelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
with:
111111
tag: ${{ github.event.release.tag_name }}
112112
app_name: "newrelic-super-agent"
113-
repo_name: "newrelic/newrelic-supervisor"
113+
repo_name: "newrelic/newrelic-super-agent"
114114
schema: "custom-local"
115115
schema_path: "/srv/build/upload-schema-linux-deb.yml"
116116
aws_access_key_id: ${{ secrets.TMP_OHAI_AWS_ACCESS_KEY_ID_STAGING }}
@@ -135,7 +135,7 @@ jobs:
135135
with:
136136
tag: ${{ github.event.release.tag_name }}
137137
app_name: "newrelic-super-agent"
138-
repo_name: "newrelic/newrelic-supervisor"
138+
repo_name: "newrelic/newrelic-super-agent"
139139
schema: "custom-local"
140140
schema_path: "/srv/build/upload-schema-linux-rpm.yml"
141141
aws_access_key_id: ${{ secrets.TMP_OHAI_AWS_ACCESS_KEY_ID_STAGING }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
tag: ${{ github.event.release.tag_name }}
2929
app_name: "newrelic-super-agent"
30-
repo_name: "newrelic/newrelic-supervisor"
30+
repo_name: "newrelic/newrelic-super-agent"
3131
schema: "custom-local"
3232
schema_path: "/srv/build/upload-schema-linux-deb.yml"
3333
aws_access_key_id: ${{ secrets.TMP_OHAI_AWS_ACCESS_KEY_ID_PRODUCTION }}
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
tag: ${{ github.event.release.tag_name }}
5454
app_name: "newrelic-super-agent"
55-
repo_name: "newrelic/newrelic-supervisor"
55+
repo_name: "newrelic/newrelic-super-agent"
5656
schema: "custom-local"
5757
schema_path: "/srv/build/upload-schema-linux-rpm.yml"
5858
aws_access_key_id: ${{ secrets.TMP_OHAI_AWS_ACCESS_KEY_ID_PRODUCTION }}

.github/workflows/release_on_demand.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
tag: ${{ github.event.inputs.tag }}
2929
app_name: "newrelic-super-agent"
30-
repo_name: "newrelic/newrelic-supervisor"
30+
repo_name: "newrelic/newrelic-super-agent"
3131
schema: "custom-local"
3232
schema_path: "/srv/build/upload-schema-linux-deb.yml"
3333
aws_access_key_id: ${{ secrets.TMP_OHAI_AWS_ACCESS_KEY_ID_PRODUCTION }}
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
tag: ${{ github.event.inputs.tag }}
5454
app_name: "newrelic-super-agent"
55-
repo_name: "newrelic/newrelic-supervisor"
55+
repo_name: "newrelic/newrelic-super-agent"
5656
schema: "custom-local"
5757
schema_path: "/srv/build/upload-schema-linux-rpm.yml"
5858
aws_access_key_id: ${{ secrets.TMP_OHAI_AWS_ACCESS_KEY_ID_PRODUCTION }}

THIRD_PARTY_NOTICES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ their own copyright notices and license terms. These notices are provided
66
below.
77

88
In the event that a required notice is missing or incorrect, please notify us
9-
either by [opening an issue](https://github.com/newrelic/newrelic-supervisor/issues/new),
9+
either by [opening an issue](https://github.com/newrelic/newrelic-super-agent/issues/new),
1010
or by e-mailing [open-source@newrelic.com](mailto:open-source@newrelic.com).
1111

1212
For any licenses that require the disclosure of source code, the source code
13-
can be found at https://github.com/newrelic/newrelic-supervisor.
13+
can be found at https://github.com/newrelic/newrelic-super-agent.
1414

1515

1616
## addr2line (https://crates.io/crates/addr2line)

build/embedded/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/newrelic/newrelic-supervisor/embedded-downloader
1+
module github.com/newrelic/newrelic-super-agent/embedded-downloader
22

33
go 1.20
44

license/src/templates/THIRD_PARTY_NOTICES.md.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ their own copyright notices and license terms. These notices are provided
66
below.
77

88
In the event that a required notice is missing or incorrect, please notify us
9-
either by [opening an issue](https://github.com/newrelic/newrelic-supervisor/issues/new),
9+
either by [opening an issue](https://github.com/newrelic/newrelic-super-agent/issues/new),
1010
or by e-mailing [open-source@newrelic.com](mailto:open-source@newrelic.com).
1111

1212
For any licenses that require the disclosure of source code, the source code
13-
can be found at https://github.com/newrelic/newrelic-supervisor.
13+
can be found at https://github.com/newrelic/newrelic-super-agent.
1414

1515
{% for dep, licenseObj in dependencies %}
1616
{% if dep is containing("newrelic_super_agent") %}{% continue %}{% endif -%}

test/provision/terraform/install-requirements.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,21 @@
2828
- hosts: all
2929
become: true
3030
gather_facts: yes
31+
vars:
32+
falcon_client_id: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_ID') }}"
33+
falcon_client_secret: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_SECRET') }}"
34+
falcon_customer_id: "{{ lookup('env', 'CROWDSTRIKE_CUSTOMER_ID') }}"
35+
api_base_url: "https://api.laggar.gcw.crowdstrike.com"
3136

3237
tasks:
3338
- name: Configure logrotate
3439
include_role:
3540
name: caos.ansible_roles.logrotate
3641

42+
- name: Install CrowdStrike Falcon
43+
include_role:
44+
name: caos.ansible_roles.install_crowdstrike_falcon
45+
3746
- name: Configure hostname
3847
include_role:
3948
name: caos.ansible_roles.hostname

0 commit comments

Comments
 (0)