Skip to content

auditd_manager: make socket type selection a set of options and correct documentation - #8558

Merged
efd6 merged 1 commit into
elastic:mainfrom
efd6:8557-auditd_manager
Nov 22, 2023
Merged

efd6 merged 1 commit into
elastic:mainfrom
efd6:8557-auditd_manager

Conversation

@efd6

@efd6 efd6 commented Nov 22, 2023

Copy link
Copy Markdown
Contributor

Proposed commit message

The valid options for socket_type in auditbeat are unicast, multicast and '', checked during config validation, so provide a selection which maps 'auto' to ''.

Unfortunately, we are not able to check that the combination of socket type and immutability are valid (this would require that we be able to compare a value in the template to 'multicast', but no comparison helpers exist in the handlbars instance used for integration config templates). The best we can do is tell users not to do this; it will show up in log failures.

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.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 added bug Something isn't working, use only for issues Team:Security-External Integrations Integration:auditd_manager Auditd Manager labels Nov 22, 2023
@efd6 efd6 self-assigned this Nov 22, 2023
…ct documentation

The valid options for socket_type in auditbeat are unicast, multicast
and '', checked during config validation, so provide a selection which
maps 'auto' to ''.

Unfortunately, we are not able to check that the combination of socket
type and immutability are valid (this would require that we be able to
compare a value in the template to 'multicast', but no comparison
helpers exist in the handlbars instance used for integration config
templates). The best we can do is tell users not to do this; it will
show up in log failures.
@efd6
efd6 force-pushed the 8557-auditd_manager branch from 52dc349 to be10bd4 Compare November 22, 2023 05:58
@elasticmachine

elasticmachine commented Nov 22, 2023 •

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-11-22T05:59:01.806+0000

  • Duration: 16 min 40 sec

Test stats 🧪

Test Results
Failed 0
Passed 21
Skipped 0
Total 21

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (1/1) 💚 3.281
Classes 100.0% (1/1) 💚 3.281
Methods 88.889% (8/9) 👎 -3.94
Lines 90.206% (175/194) 👍 1.684
Conditionals 100.0% (0/0) 💚

@efd6
efd6 marked this pull request as ready for review November 22, 2023 07:50
@efd6
efd6 requested a review from a team as a code owner November 22, 2023 07:50
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@andrewkroh andrewkroh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@efd6
efd6 merged commit a19f4a5 into elastic:main Nov 22, 2023
@elasticmachine

Copy link
Copy Markdown

Package auditd_manager - 1.16.1 containing this change is available at https://epr.elastic.co/search?package=auditd_manager

@efd6
efd6 deleted the 8557-auditd_manager branch February 5, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Integration:auditd_manager Auditd Manager

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auditd_manager: docs incorrectly state that socket_type will be reverted to unicast if multicast is not available

3 participants