Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6c672f1
feat(response actions) Support for Cloudauth validation [SSPROD-64190]
fcracker79 Jan 13, 2026
faf8075
Fix
fcracker79 Jan 14, 2026
1145d5a
New protobuf
fcracker79 Jan 28, 2026
43d3879
ci(test): do not run Secure cloud tests in Monitor suite (#686)
jcelaya Feb 2, 2026
ed95603
fix(cloud-auth-account): use TypeSet for components to fix idempotenc…
tembleking Feb 2, 2026
fed4ab8
fix(secure-team): prevent panic when zone_ids is computed from for_ea…
tembleking Feb 4, 2026
a515668
chore(codeowners): replace individual users with sysdig-training team…
tembleking Feb 5, 2026
066a36b
docs: add AGENTS.md for agents (#691)
tembleking Feb 5, 2026
2b08a74
ci(test): parallelize acceptance tests using dynamic matrix (#692)
tembleking Feb 5, 2026
086786c
feat(sso): add sysdig_sso_openid and sysdig_sso_saml resources (#688)
tembleking Feb 5, 2026
6a6fd89
fix(security): update Go from 1.24.4 to 1.25.7 to address multiple CV…
tembleking Feb 5, 2026
213fa59
chore: add nix flake for reproducible dev environment (#695)
tembleking Feb 6, 2026
89610d0
fix(test): use unique names in tests to prevent flakiness (#697)
tembleking Feb 6, 2026
0238b29
feat(current-user): expose customer info in sysdig_current_user data …
airadier Feb 9, 2026
6232053
fix(ci): add setup-terraform to prevent flaky test failures (#701)
tembleking Feb 10, 2026
8234df1
feat(sso): add group mapping, settings, and global settings resources…
tembleking Feb 10, 2026
e28d86b
feat(monitor-alert): support dashboardTemplate link type in alert v2 …
tembleking Feb 11, 2026
a1be868
fix(ci): use owned resource in posture zone test to prevent flakiness…
tembleking Feb 11, 2026
8f96d28
docs(posture-control): document resource_kind valid values (#704)
tembleking Feb 12, 2026
f98007e
test(monitor-alert): add = and != operator test coverage for alert v2…
tembleking Feb 20, 2026
f9d3314
fix(tests): use valid list operators in Falco rule exception tests (#…
rosenbloomb-sysdig Feb 26, 2026
91e9295
chore(examples/serverless): update examples (#706)
francesco-racciatti Feb 26, 2026
b841208
fix(monitor-alert): validate metric field is not empty in alert v2 me…
tembleking Mar 4, 2026
18e13a2
add `is_system` attribute to `sysdig_sso_saml` and `sysdig_sso_openid…
dbonf Mar 4, 2026
021e703
New protobuf
fcracker79 Mar 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export TF_ACC=true
export TF_LOG=DEBUG
has nix && use flake
dotenv_if_exists .env # You can create a .env file with your env vars for this project. You can also use .secrets if you are using act. See the line below.
dotenv_if_exists .secrets # Used by [act](https://nektosact.com/) to load secrets into the pipelines
strict_env
env_vars_required SYSDIG_SECURE_API_TOKEN SYSDIG_MONITOR_API_TOKEN
export TF_ACC=true
export TF_LOG=DEBUG
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches:
- master
merge_group:
branches:
- master

jobs:
build-multiarch:
Expand Down
161 changes: 128 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Lint
uses: golangci/golangci-lint-action@v8
with:
Expand All @@ -20,75 +18,168 @@ jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Test
run: make test

test-sysdig-monitor:
name: Sysdig Monitor Acceptance Tests
# ============================================
# Sysdig Secure - Dynamic Matrix
# ============================================
list-sysdig-secure-tests:
name: List Secure Tests
runs-on: ubuntu-latest
needs: test

outputs:
matrix: ${{ steps.list.outputs.matrix }}
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- id: list
run: |
files=$(grep -l "tf_acc_sysdig_secure" sysdig/*_test.go | xargs -I{} basename {} .go || echo "")
if [ -z "$files" ]; then
echo "matrix=[]" >> $GITHUB_OUTPUT
else
matrix=$(echo "$files" | jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "matrix=$matrix" >> $GITHUB_OUTPUT
fi

- name: Set up Go
uses: actions/setup-go@v5
test-sysdig-secure:
name: "Secure: ${{ matrix.file }}"
runs-on: ubuntu-latest
needs: list-sysdig-secure-tests
strategy:
fail-fast: true
max-parallel: 20
matrix:
file: ${{ fromJson(needs.list-sysdig-secure-tests.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Test
run: make testacc
- uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Run tests from ${{ matrix.file }}
run: |
tests=$(grep -oh "func Test[A-Za-z0-9_]*" sysdig/${{ matrix.file }}.go | sed 's/func //' | tr '\n' '|' | sed 's/|$//')
if [ -n "$tests" ]; then
echo "Running tests: $tests"
CGO_ENABLED=1 TF_ACC=1 go test ./sysdig -v -tags=tf_acc_sysdig_secure -timeout 30m -race -run "^($tests)$"
else
echo "No tests found in file"
fi
env:
TEST_SUITE: tf_acc_sysdig_monitor
SYSDIG_MONITOR_API_TOKEN: ${{ secrets.KUBELAB_MONITOR_API_TOKEN }}
SYSDIG_SECURE_API_TOKEN: ${{ secrets.KUBELAB_SECURE_API_TOKEN }}

test-sysdig-secure:
name: Sysdig Secure Acceptance Tests
sysdig-secure-result:
name: Sysdig Secure Tests Result
runs-on: ubuntu-latest
needs: [list-sysdig-secure-tests, test-sysdig-secure]
if: always()
steps:
- name: Check test results
run: |
if [ "${{ needs.test-sysdig-secure.result }}" == "success" ] || [ "${{ needs.test-sysdig-secure.result }}" == "skipped" ]; then
echo "All Sysdig Secure tests passed"
exit 0
else
echo "Some Sysdig Secure tests failed"
exit 1
fi

# ============================================
# Sysdig Monitor - Dynamic Matrix
# ============================================
list-sysdig-monitor-tests:
name: List Monitor Tests
runs-on: ubuntu-latest
needs: test

outputs:
matrix: ${{ steps.list.outputs.matrix }}
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- id: list
run: |
files=$(grep -l "tf_acc_sysdig_monitor" sysdig/*_test.go | xargs -I{} basename {} .go || echo "")
if [ -z "$files" ]; then
echo "matrix=[]" >> $GITHUB_OUTPUT
else
matrix=$(echo "$files" | jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "matrix=$matrix" >> $GITHUB_OUTPUT
fi

- name: Set up Go
uses: actions/setup-go@v5
test-sysdig-monitor:
name: "Monitor: ${{ matrix.file }}"
runs-on: ubuntu-latest
needs: list-sysdig-monitor-tests
strategy:
fail-fast: true
max-parallel: 20
matrix:
file: ${{ fromJson(needs.list-sysdig-monitor-tests.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Test
run: make testacc
- uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Run tests from ${{ matrix.file }}
run: |
tests=$(grep -oh "func Test[A-Za-z0-9_]*" sysdig/${{ matrix.file }}.go | sed 's/func //' | tr '\n' '|' | sed 's/|$//')
if [ -n "$tests" ]; then
echo "Running tests: $tests"
CGO_ENABLED=1 TF_ACC=1 go test ./sysdig -v -tags=tf_acc_sysdig_monitor -timeout 30m -race -run "^($tests)$"
else
echo "No tests found in file"
fi
env:
TEST_SUITE: tf_acc_sysdig_secure
SYSDIG_MONITOR_API_TOKEN: ${{ secrets.KUBELAB_MONITOR_API_TOKEN }}
SYSDIG_SECURE_API_TOKEN: ${{ secrets.KUBELAB_SECURE_API_TOKEN }}

sysdig-monitor-result:
name: Sysdig Monitor Tests Result
runs-on: ubuntu-latest
needs: [list-sysdig-monitor-tests, test-sysdig-monitor]
if: always()
steps:
- name: Check test results
run: |
if [ "${{ needs.test-sysdig-monitor.result }}" == "success" ] || [ "${{ needs.test-sysdig-monitor.result }}" == "skipped" ]; then
echo "All Sysdig Monitor tests passed"
exit 0
else
echo "Some Sysdig Monitor tests failed"
exit 1
fi

# ============================================
# IBM Monitor - Sequential (no parallelization)
# ============================================
test-ibm-monitor:
name: IBM Monitor Acceptance Tests
runs-on: ubuntu-latest
needs: test

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Test
run: make testacc
env:
Expand All @@ -99,20 +190,24 @@ jobs:
SYSDIG_MONITOR_URL: "https://eu-gb.monitoring.cloud.ibm.com"
IBM_EVENT_NOTIFICATION_INSTANCE_ID: ${{ secrets.IBM_EVENT_NOTIFICATION_INSTANCE_ID }}

# ============================================
# IBM Secure - Sequential (no parallelization)
# ============================================
test-ibm-secure:
name: IBM Secure Acceptance Tests
runs-on: ubuntu-latest
needs: test

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Test
run: make testacc
env:
Expand Down
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ repos:
pass_filenames: false
entry: make test
language: system
- id: testacc
name: testacc
pass_filenames: false
entry: make testacc
language: system

Loading
Loading