Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed configs. Currently working locally. #25

Merged
merged 4 commits into from
Feb 8, 2024
Merged

Conversation

getvictor
Copy link
Member

Did some cleanup of the configs. These configs currently work with my local implementation.

@getvictor getvictor marked this pull request as draft February 6, 2024 22:26
@getvictor getvictor marked this pull request as ready for review February 7, 2024 15:12
Comment on lines -39 to -43
webhook_settings:
failing_policies_webhook:
enable_failing_policies_webhook: true
destination_url: https://example.tines.com/webhook
policy_ids: [1, 2, 3, 4, 5,6 ,7, 8, 9]
Copy link
Member

Choose a reason for hiding this comment

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

Are we pulling these out to simplify the example? Or, did we cut webhook_settings functionality?

Copy link
Member Author

Choose a reason for hiding this comment

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

Our current fleetctl apply does not support team webhook_settings or integrations, right? And I'm using the existing APIs, so fleetctl gitops doesn't support these either without additional work.

Copy link
Member

Choose a reason for hiding this comment

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

fleetctl apply does not support team webhook_settings or integrations, right?

@getvictor I'm not positive.

@mna when you get the chance, can you please sanity check us here?

If this is the case, it makes sense to punt on adding support for webhook_settings and integrations. We can add support for this in fleetctl gitops later.

Copy link
Member

Choose a reason for hiding this comment

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

AFAICT that's correct, no webhook or integrations can be set via apply team specs: https://github.com/fleetdm/fleet/blob/main/server/fleet/teams.go#L387

queries:
- path: ./lib/collect-fleetd-update-channel.queries.yml
- path: ./lib/collect-fleetd-update-channels.queries.yml
Copy link
Member

@noahtalerman noahtalerman Feb 8, 2024

Choose a reason for hiding this comment

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

Do we need to to add an indent here before each query? (- path) I see you added indents for custom_settings.

Or, should the custom_settings items not have an indent?

Comment on lines +41 to +42
- path: ../lib/macos-device-health.policies.yml
- path: ../lib/windows-device-health.policies.yml
Copy link
Member

Choose a reason for hiding this comment

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

Similar comment about indentation here. Just want to make sure we're being consistent w/ other options that accept arrays (custom_settings, scripts, etc.)

Copy link
Member

@noahtalerman noahtalerman left a comment

Choose a reason for hiding this comment

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

Dropped some comments about indentations.

Otherwise, looks good to me!

@getvictor
Copy link
Member Author

Dropped some comments about indentations.

Otherwise, looks good to me!

I'll review the indentation before submitting the next PR.

@getvictor getvictor merged commit 96f2537 into main Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants