-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#20464 Adding gitops support for a top level `software` key to be used to manage installable software into "no team". - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [X] Added/updated tests - [X] Manual QA for all new/changed functionality --------- Co-authored-by: Victor Lyuboslavsky <victor.lyuboslavsky@gmail.com>
- Loading branch information
1 parent
7f95ae4
commit a6a9a2e
Showing
32 changed files
with
492 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,3 +91,4 @@ org_settings: | |
databases_path: "" | ||
secrets: | ||
- secret: ABC | ||
software: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,3 +97,4 @@ org_settings: | |
databases_path: "" | ||
secrets: | ||
- secret: ABC | ||
software: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,3 +93,4 @@ org_settings: | |
databases_path: "" | ||
secrets: | ||
- secret: ABC | ||
software: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,3 +91,4 @@ org_settings: | |
databases_path: "" | ||
secrets: | ||
- secret: ABC | ||
software: |
19 changes: 19 additions & 0 deletions
19
cmd/fleetctl/testdata/gitops/no_team_software_installer_install_not_found.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/ruby.deb | ||
install_script: | ||
path: lib/notfound.sh |
18 changes: 18 additions & 0 deletions
18
cmd/fleetctl/testdata/gitops/no_team_software_installer_invalid_self_service_value.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/invalidtype.txt | ||
self_service: "not a boolean" |
22 changes: 22 additions & 0 deletions
22
cmd/fleetctl/testdata/gitops/no_team_software_installer_no_url.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- install_script: | ||
path: lib/install_ruby.sh | ||
pre_install_query: | ||
path: lib/query_ruby.yml | ||
post_install_script: | ||
path: lib/post_install_ruby.sh |
17 changes: 17 additions & 0 deletions
17
cmd/fleetctl/testdata/gitops/no_team_software_installer_not_found.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/notfound.deb |
21 changes: 21 additions & 0 deletions
21
cmd/fleetctl/testdata/gitops/no_team_software_installer_post_install_not_found.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/ruby.deb | ||
install_script: | ||
path: lib/install_ruby.sh | ||
post_install_script: | ||
path: lib/notfound.sh |
23 changes: 23 additions & 0 deletions
23
cmd/fleetctl/testdata/gitops/no_team_software_installer_pre_condition_multiple_queries.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/ruby.deb | ||
install_script: | ||
path: lib/install_ruby.sh | ||
pre_install_query: | ||
path: lib/query_multiple.yml | ||
post_install_script: | ||
path: lib/post_install_ruby.sh |
21 changes: 21 additions & 0 deletions
21
cmd/fleetctl/testdata/gitops/no_team_software_installer_pre_condition_not_found.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/ruby.deb | ||
install_script: | ||
path: lib/install_ruby.sh | ||
pre_install_query: | ||
path: lib/notfound.yml |
17 changes: 17 additions & 0 deletions
17
cmd/fleetctl/testdata/gitops/no_team_software_installer_too_large.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/toolarge.deb |
17 changes: 17 additions & 0 deletions
17
cmd/fleetctl/testdata/gitops/no_team_software_installer_unsupported.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Test config | ||
controls: | ||
queries: | ||
policies: | ||
agent_options: | ||
org_settings: | ||
server_settings: | ||
server_url: $FLEET_SERVER_URL | ||
org_info: | ||
contact_url: https://example.com/contact | ||
org_logo_url: "" | ||
org_logo_url_light_background: "" | ||
org_name: ${ORG_NAME} | ||
secrets: [{"secret":"globalSecret"}] | ||
software: | ||
packages: | ||
- url: ${SOFTWARE_INSTALLER_URL}/invalidtype.txt |
Oops, something went wrong.