Skip to content

[netbox] Add missing default for disable_keep_alive var#19889

Merged
andrewkroh merged 1 commit into
elastic:mainfrom
andrewkroh:netbox/fix/missing-var-policy-template
Jul 2, 2026
Merged

[netbox] Add missing default for disable_keep_alive var#19889
andrewkroh merged 1 commit into
elastic:mainfrom
andrewkroh:netbox/fix/missing-var-policy-template

Conversation

@andrewkroh

@andrewkroh andrewkroh commented Jun 30, 2026

Copy link
Copy Markdown
Member

Proposed commit message

[netbox] Add missing default for disable_keep_alive var

The disable_keep_alive variable in the httpjson input was declared as
required: true and show_user: false but with no default value. Because
the variable is hidden from the user and the system tests do not supply
it explicitly, Fleet rejects the package policy with:

  inputs.httpjson.vars.disable_keep_alive: ["Disable HTTP Keep-Alives is required"]

Add default: false (the canonical pattern used by okta and 1password)
so Fleet can satisfy the required constraint without user input.

Closes #18665, #18666, #18667, #18668, #18727, #18728

Assisted-by: Claude Opus 4.8 (planning) and Sonnet 4.6.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • Both netbox.devices and netbox.ips system tests pass locally after the fix.

How to test this PR locally

cd packages/netbox
elastic-package stack up -d
elastic-package test system
elastic-package stack down

Both data streams should show PASS. Before the fix both fail at policy creation with the disable_keep_alive is required error.

Related issues

@andrewkroh andrewkroh requested a review from a team as a code owner June 30, 2026 15:55
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@andrewkroh andrewkroh force-pushed the netbox/fix/missing-var-policy-template branch 2 times, most recently from 64c4184 to 0121132 Compare June 30, 2026 15:59
@andrewkroh andrewkroh changed the title [netbox] Fix package policy validation: add default: false for disable_keep_alive var [netbox] Add missing default for disable_keep_alive var Jun 30, 2026
The disable_keep_alive variable in the httpjson input was declared as
required: true and show_user: false but with no default value. Because
the variable is hidden from the user and the system tests do not supply
it explicitly, Fleet rejects the package policy with:

  inputs.httpjson.vars.disable_keep_alive: ["Disable HTTP Keep-Alives is required"]

Add default: false (the canonical pattern used by okta and 1password)
so Fleet can satisfy the required constraint without user input.

Closes elastic#18665, elastic#18666, elastic#18667, elastic#18668, elastic#18727, elastic#18728
@andrewkroh andrewkroh force-pushed the netbox/fix/missing-var-policy-template branch from 0121132 to 650b853 Compare June 30, 2026 16:01
@andrewkroh andrewkroh added Integration:netbox NetBox Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] bugfix Pull request that fixes a bug issue labels Jun 30, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

✅ All changelog entries have the correct PR link.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

@andrewkroh andrewkroh enabled auto-merge (squash) July 1, 2026 17:39
@andrewkroh andrewkroh merged commit a0fcffc into elastic:main Jul 2, 2026
9 checks passed
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package netbox - 0.1.1 containing this change is available at https://epr.elastic.co/package/netbox/0.1.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment