Commit Graph

112 Commits

Author SHA1 Message Date
Robert Fairburn
eb0babe51a
Sandbox-v4.38.1 (#14524) 2023-10-13 15:35:42 -05:00
Roberto Dip
e46e83baf8
upgrade Go to 1.21.1 for infra (#13878)
related to #13715, this updates the infra dependencies for the general
go upgrade that's happening at
https://github.com/fleetdm/fleet/pull/13877

I'm thinking we probably want to merge this after we're sure that
everything works well, maybe even after we have a release with go 1.21.1
out, so I'm making a separate PR.

---------

Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
2023-10-12 21:09:17 -05:00
Roberto Dip
6702e3ddb8
prepare v4.38.1 (#14303) 2023-10-05 11:13:24 -05:00
Luke Heath
6807cfe897
Prepare v4.38.0 (#14123) 2023-09-25 16:43:52 -05:00
Luke Heath
a745c3a8a8
Prepare Fleet v4.37.0 (#13821) 2023-09-08 13:35:44 -05:00
Zachary Winnerman
075ecf4a62
Add separate kms key for installers (#13786)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes (docs/Using
Fleet/manage-access.md)
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-09-07 07:21:24 -04:00
Robert Fairburn
21b01605ae
Update nginx for redirect container in sandbox (#13509) 2023-09-06 11:16:27 -05:00
Roberto Dip
5ad734d617
upgrade go to v1.19.12 (#13617) 2023-08-31 13:49:24 -05:00
Luke Heath
1260db9360
Prepare v4.36.0 (#13364) 2023-08-17 16:11:19 -05:00
Luke Heath
21b21abd22
Prepare v4.35.2 (#13273) 2023-08-10 11:35:03 -07:00
Luke Heath
f3b9bcc02a
Prepare v4.35.1 (#13163) 2023-08-10 08:43:52 -07:00
Zachary Winnerman
b95c85be59
Revert "Do vuln scans only during peak hours (#12978)" (#13166)
This reverts commit bea7fa6dd0.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-08-05 00:17:34 -04:00
Zachary Winnerman
3fe9d56fcd
Add changes needed for EKS upgrade (#13135)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-08-03 16:43:27 -04:00
Luke Heath
648b25bf4d
Prepare v4.35.0 (#13077) 2023-08-01 09:22:01 -07:00
Luke Heath
c8dee16121
Prepare v4.34.1 (#13073) 2023-07-31 16:54:24 -07:00
Zachary Winnerman
fc7c7544a9
Revert these PRs: (#13001)
https://github.com/fleetdm/fleet/pull/12763/files
https://github.com/fleetdm/fleet/pull/12854/files
https://github.com/fleetdm/fleet/pull/12764/files

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-07-27 14:57:11 -04:00
Zachary Winnerman
bea7fa6dd0
Do vuln scans only during peak hours (#12978)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-07-26 14:25:52 -04:00
Roberto Dip
d9de78e9fc
upgrade Go version to 1.19.11 (#12902) 2023-07-26 11:09:22 -07:00
Zachary Winnerman
d6f51f893c
fix bug in deprovisioner (#12854)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-07-19 19:59:02 -04:00
Zachary Winnerman
bd3a37ea5c
Update sandbox to latest fleet (#12845)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-07-19 19:30:22 -04:00
Zachary Winnerman
ce57fa2c84
Scale down and delete cronjob for expired instances (#12764)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-07-13 20:57:00 -04:00
Zachary Winnerman
0c864613ab
Fix for sandbox vuln processing (#12763)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-07-13 20:43:20 -04:00
Luke Heath
a001fbf3ec
Prepare v4.34.0 (#12706) 2023-07-11 14:38:57 -07:00
Luke Heath
cc8a2d0605
Prepare v4.33.1 (#12417) 2023-06-30 09:49:50 -07:00
dependabot[bot]
dd0f5f81e8
Bump github.com/gin-gonic/gin from 1.8.1 to 1.9.1 in /infrastructure/sandbox/JITProvisioner/lambda (#12098)
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from
1.8.1 to 1.9.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gin-gonic/gin/releases">github.com/gin-gonic/gin's
releases</a>.</em></p>
<blockquote>
<h2>v1.9.1</h2>
<h2>Changelog</h2>
<h3>BUG FIXES</h3>
<ul>
<li>fix Request.Context() checks <a
href="https://redirect.github.com/gin-gonic/gin/pull/3512">#3512</a></li>
</ul>
<h3>SECURITY</h3>
<ul>
<li>fix lack of escaping of filename in Content-Disposition <a
href="https://redirect.github.com/gin-gonic/gin/pull/3556">#3556</a></li>
</ul>
<h3>ENHANCEMENTS</h3>
<ul>
<li>refactor: use bytes.ReplaceAll directly <a
href="https://redirect.github.com/gin-gonic/gin/pull/3455">#3455</a></li>
<li>convert strings and slices using the officially recommended way <a
href="https://redirect.github.com/gin-gonic/gin/pull/3344">#3344</a></li>
<li>improve render code coverage <a
href="https://redirect.github.com/gin-gonic/gin/pull/3525">#3525</a></li>
</ul>
<h3>DOCS</h3>
<ul>
<li>docs: changed documentation link for trusted proxies <a
href="https://redirect.github.com/gin-gonic/gin/pull/3575">#3575</a></li>
<li>chore: improve linting, testing, and GitHub Actions setup <a
href="https://redirect.github.com/gin-gonic/gin/pull/3583">#3583</a></li>
</ul>
<h2>v1.9.0</h2>
<h2>Changelog</h2>
<h3>BREAK CHANGES</h3>
<ul>
<li>Stop useless panicking in context and render <a
href="https://redirect.github.com/gin-gonic/gin/pull/2150">#2150</a></li>
</ul>
<h3>BUG FIXES</h3>
<ul>
<li>fix(router): tree bug where loop index is not decremented. <a
href="https://redirect.github.com/gin-gonic/gin/pull/3460">#3460</a></li>
<li>fix(context): panic on NegotiateFormat - index out of range <a
href="https://redirect.github.com/gin-gonic/gin/pull/3397">#3397</a></li>
<li>Add escape logic for header <a
href="https://redirect.github.com/gin-gonic/gin/pull/3500">#3500</a> and
<a
href="https://redirect.github.com/gin-gonic/gin/pull/3503">#3503</a></li>
</ul>
<h3>SECURITY</h3>
<ul>
<li>Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities <a
href="https://redirect.github.com/gin-gonic/gin/pull/3333">#3333</a></li>
<li>fix(security): vulnerability GO-2023-1571 <a
href="https://redirect.github.com/gin-gonic/gin/pull/3505">#3505</a></li>
</ul>
<h3>ENHANCEMENTS</h3>
<ul>
<li>feat: add sonic json support <a
href="https://redirect.github.com/gin-gonic/gin/pull/3184">#3184</a></li>
<li>chore(file): Creates a directory named path <a
href="https://redirect.github.com/gin-gonic/gin/pull/3316">#3316</a></li>
<li>fix: modify interface check way <a
href="https://redirect.github.com/gin-gonic/gin/pull/3327">#3327</a></li>
<li>remove deprecated of package io/ioutil <a
href="https://redirect.github.com/gin-gonic/gin/pull/3395">#3395</a></li>
<li>refactor: avoid calling strings.ToLower twice <a
href="https://redirect.github.com/gin-gonic/gin/pull/3433">#3343</a></li>
<li>console logger HTTP status code bug fixed <a
href="https://redirect.github.com/gin-gonic/gin/pull/3453">#3453</a></li>
<li>chore(yaml): upgrade dependency to v3 version <a
href="https://redirect.github.com/gin-gonic/gin/pull/3456">#3456</a></li>
<li>chore(router): match method added to routergroup for multiple HTTP
methods supporting <a
href="https://redirect.github.com/gin-gonic/gin/pull/3464">#3464</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md">github.com/gin-gonic/gin's
changelog</a>.</em></p>
<blockquote>
<h2>Gin v1.9.1</h2>
<h3>BUG FIXES</h3>
<ul>
<li>fix Request.Context() checks <a
href="https://redirect.github.com/gin-gonic/gin/pull/3512">#3512</a></li>
</ul>
<h3>SECURITY</h3>
<ul>
<li>fix lack of escaping of filename in Content-Disposition <a
href="https://redirect.github.com/gin-gonic/gin/pull/3556">#3556</a></li>
</ul>
<h3>ENHANCEMENTS</h3>
<ul>
<li>refactor: use bytes.ReplaceAll directly <a
href="https://redirect.github.com/gin-gonic/gin/pull/3455">#3455</a></li>
<li>convert strings and slices using the officially recommended way <a
href="https://redirect.github.com/gin-gonic/gin/pull/3344">#3344</a></li>
<li>improve render code coverage <a
href="https://redirect.github.com/gin-gonic/gin/pull/3525">#3525</a></li>
</ul>
<h3>DOCS</h3>
<ul>
<li>docs: changed documentation link for trusted proxies <a
href="https://redirect.github.com/gin-gonic/gin/pull/3575">#3575</a></li>
<li>chore: improve linting, testing, and GitHub Actions setup <a
href="https://redirect.github.com/gin-gonic/gin/pull/3583">#3583</a></li>
</ul>
<h2>Gin v1.9.0</h2>
<h3>BREAK CHANGES</h3>
<ul>
<li>Stop useless panicking in context and render <a
href="https://redirect.github.com/gin-gonic/gin/pull/2150">#2150</a></li>
</ul>
<h3>BUG FIXES</h3>
<ul>
<li>fix(router): tree bug where loop index is not decremented. <a
href="https://redirect.github.com/gin-gonic/gin/pull/3460">#3460</a></li>
<li>fix(context): panic on NegotiateFormat - index out of range <a
href="https://redirect.github.com/gin-gonic/gin/pull/3397">#3397</a></li>
<li>Add escape logic for header <a
href="https://redirect.github.com/gin-gonic/gin/pull/3500">#3500</a> and
<a
href="https://redirect.github.com/gin-gonic/gin/pull/3503">#3503</a></li>
</ul>
<h3>SECURITY</h3>
<ul>
<li>Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities <a
href="https://redirect.github.com/gin-gonic/gin/pull/3333">#3333</a></li>
<li>fix(security): vulnerability GO-2023-1571 <a
href="https://redirect.github.com/gin-gonic/gin/pull/3505">#3505</a></li>
</ul>
<h3>ENHANCEMENTS</h3>
<ul>
<li>feat: add sonic json support <a
href="https://redirect.github.com/gin-gonic/gin/pull/3184">#3184</a></li>
<li>chore(file): Creates a directory named path <a
href="https://redirect.github.com/gin-gonic/gin/pull/3316">#3316</a></li>
<li>fix: modify interface check way <a
href="https://redirect.github.com/gin-gonic/gin/pull/3327">#3327</a></li>
<li>remove deprecated of package io/ioutil <a
href="https://redirect.github.com/gin-gonic/gin/pull/3395">#3395</a></li>
<li>refactor: avoid calling strings.ToLower twice <a
href="https://redirect.github.com/gin-gonic/gin/pull/3433">#3343</a></li>
<li>console logger HTTP status code bug fixed <a
href="https://redirect.github.com/gin-gonic/gin/pull/3453">#3453</a></li>
<li>chore(yaml): upgrade dependency to v3 version <a
href="https://redirect.github.com/gin-gonic/gin/pull/3456">#3456</a></li>
<li>chore(router): match method added to routergroup for multiple HTTP
methods supporting <a
href="https://redirect.github.com/gin-gonic/gin/pull/3464">#3464</a></li>
<li>chore(http): add support for go1.20 http.rwUnwrapper to
gin.responseWriter <a
href="https://redirect.github.com/gin-gonic/gin/pull/3489">#3489</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="4ea0e648e3"><code>4ea0e64</code></a>
Ready release gin 1.9.1 (by: thinkerou) (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3630">#3630</a>)</li>
<li><a
href="bb1fc2e0fe"><code>bb1fc2e</code></a>
fix Request.Context() checks (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3512">#3512</a>)</li>
<li><a
href="2d4bbec941"><code>2d4bbec</code></a>
fix lack of escaping of filename in Content-Disposition (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3556">#3556</a>)</li>
<li><a
href="9f5ecd4be4"><code>9f5ecd4</code></a>
chore(deps): bump actions/setup-go from 3 to 4 (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3543">#3543</a>)</li>
<li><a
href="20cd6bcfc4"><code>20cd6bc</code></a>
chore(deps): bump github.com/go-playground/validator/v10 (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3610">#3610</a>)</li>
<li><a
href="6bdc725c8d"><code>6bdc725</code></a>
Fix typos in ISSUE_TEMPLATE.md (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3616">#3616</a>)</li>
<li><a
href="1ab268989d"><code>1ab2689</code></a>
chore(deps): bump golang.org/x/net from 0.9.0 to 0.10.0 (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3599">#3599</a>)</li>
<li><a
href="6a0556ed5a"><code>6a0556e</code></a>
improve render code coverage (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3525">#3525</a>)</li>
<li><a
href="eac2daac64"><code>eac2daa</code></a>
chore: update dependencies for various packages and libraries (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3585">#3585</a>)</li>
<li><a
href="757a638b7b"><code>757a638</code></a>
chore: improve linting, testing, and GitHub Actions setup (<a
href="https://redirect.github.com/gin-gonic/gin/issues/3583">#3583</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gin-gonic/gin/compare/v1.8.1...v1.9.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gin-gonic/gin&package-manager=go_modules&previous-version=1.8.1&new-version=1.9.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/fleetdm/fleet/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 11:03:23 -04:00
Robert Fairburn
2649073d91
Comment cost-saving changes in sandbox Helm Chart (#12424)
These are comments for 3 of the main changes that prevent lingering
containers from causing runaway costs in sandbox.
2023-06-21 14:35:48 -05:00
Robert Fairburn
7fcabff060
Add sandbox cleanup failed executions script (#12404)
Just in case we ever need this again.
2023-06-20 11:21:02 -05:00
Robert Fairburn
e3aaa7b4d0
Release v4.33.0 to sandbox (#12390) 2023-06-20 10:28:32 -05:00
Luke Heath
55387eb189
Prepare v4.33.0 (#12302) 2023-06-12 20:35:28 -05:00
Roberto Dip
ab9ac28538
upgrade go version to 1.19.10 (#12187)
for #12177
2023-06-07 17:59:30 -03:00
Zachary Winnerman
4c53beef2e
Add additional stuff I forgot for sandbox traces (#12146)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-06-05 18:01:46 -04:00
Zachary Winnerman
166b83a461
Add APM to sandbox (#12134)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-06-05 13:46:36 -04:00
Robert Fairburn
297d87934f
Update sandbox preprovisioner deploy chart (#12067) 2023-05-31 13:38:46 -05:00
Zachary Winnerman
5058e79879
Add changes for v4.32.0 to sandbox (#12066)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-05-31 14:12:11 -04:00
Zachary Winnerman
91e41ec670
Allow for parallel spinup of sandbox instances (#11779)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).

Closes #7118
2023-05-19 16:00:51 -04:00
Zachary Winnerman
98cbf9550e
Fix state machine input/output passing (#11647)
https://stackoverflow.com/questions/47650838/passthrough-input-to-output-in-aws-step-functions
2023-05-11 16:02:48 -04:00
Robert Fairburn
ad394f365e
Forbid concurrent runs on cronjobs (#11615) 2023-05-10 12:30:47 -05:00
Robert Fairburn
152fb9e9b2
Sandbox v4.31.0 (#11584)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).

---------

Co-authored-by: zwinnerman-fleetdm <zwinnerman@fleetdm.com>
2023-05-10 10:27:12 -05:00
Robert Fairburn
df06a1ed8c
attempt to use versioned standard-query-library in sandbox (#11410) 2023-05-02 13:23:13 -05:00
Zachary Winnerman
cf26a6194f
A temp fix for jobs hogging resources (#11175)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-04-12 18:34:20 -04:00
Zach Wasserman
1a521133f4
Upgrade Go version to 1.19.8 (#11057)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
2023-04-07 12:05:22 -07:00
Benjamin Edwards
14629202ed
add ingress destroyer (#10674)
this PR adds a step in the AWS state function that introduces a new ECS
fargate task that is responsible for destroying the ingress for the
particular instance.

I have tested the Go code locally, but not yet fully deployed into ECS.
What is does is run:

`aws eks update-kubeconfig` which is described as:
```
       This command constructs a configuration with  prepopulated  server  and
       certificate  authority  data  values  for a specified cluster.  You can
       specify an IAM role ARN with the --role-arn option to use for authenti-
       cation  when  you issue kubectl commands.  Otherwise, the IAM entity in
       your default AWS CLI or SDK credential chain is  used.
```

I then write the output of this command to the tmp directory, then load
the Go SDK for Kubernetes telling it to read this kubeconfig file to
bootstrap which cluster we'll operate on.

relates to https://github.com/fleetdm/fleet/issues/8569

Then its a simple Ingress destroy command.

---------

Co-authored-by: zwinnerman-fleetdm <zwinnerman@fleetdm.com>
Co-authored-by: Zachary Winnerman <98712682+zwinnerman-fleetdm@users.noreply.github.com>
2023-04-05 17:15:33 -04:00
Zachary Winnerman
c5f2b5f255
Add ability for new users to be added to sandbox instances (#9939)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-03-28 12:29:41 -04:00
Benjamin Edwards
08bac6fb4d
reduce connection count in dogfood and sandbox environments (#10468)
relates to https://github.com/fleetdm/confidential/issues/2126
2023-03-14 11:45:22 -04:00
Zach Wasserman
c136b3bdfa
Update Fleet library versions used in Sandbox (#10230) 2023-03-01 15:22:14 -05:00
dependabot[bot]
37c9097ac0
Bump github.com/open-policy-agent/opa from 0.42.0 to 0.43.1 in /infrastructure/sandbox/JITProvisioner/lambda (#10225)
Bumps
[github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa)
from 0.42.0 to 0.43.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/open-policy-agent/opa/releases">github.com/open-policy-agent/opa's
releases</a>.</em></p>
<blockquote>
<h2>v0.43.1</h2>
<p>This is a security release fixing the following vulnerabilities:</p>
<ul>
<li>
<p>CVE-2022-36085: Respect unsafeBuiltinMap for 'with' replacements in
the compiler</p>
<p>See <a
href="https://github.com/open-policy-agent/opa/security/advisories/GHSA-f524-rf33-2jjr">https://github.com/open-policy-agent/opa/security/advisories/GHSA-f524-rf33-2jjr</a>
for all details.</p>
</li>
<li>
<p>CVE-2022-27664 and CVE-2022-32190.</p>
<p>Fixed by updating the Go version used in our builds to 1.18.6,
see <a
href="https://groups.google.com/g/golang-announce/c/x49AQzIVX-s">https://groups.google.com/g/golang-announce/c/x49AQzIVX-s</a>.
Note that CVE-2022-32190 is most likely not relevant for OPA's usage of
net/url.
But since these CVEs tend to come up in security assessment tooling
regardless,
it's better to get it out of the way.</p>
</li>
</ul>
<h2>v0.43.0</h2>
<p>This release contains a number of fixes, enhancements, and
performance improvements.</p>
<h3>Object Insertion Optimization</h3>
<p>Rego Object insertion operations did not scale linearly (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4625">#4625</a>)
in the past, and experienced noticeable reallocation/memory movement
overheads once the Object grew past 120k-150k keys in size.</p>
<p>This release introduces different handling of Object internals during
insert operations to avoid pathological reallocation behavior, and
allows linear performance scaling up into the 500k key range and
beyond.</p>
<h3>Tooling, SDK, and Runtime</h3>
<ul>
<li>Add lines covered/not covered counts to test coverage report
(authored by <a
href="https://github.com/FarisR99"><code>@​FarisR99</code></a>)</li>
<li>Plugins: Status and logs plugins now accept any HTTP 2xx status code
(authored by <a
href="https://github.com/lvisterin"><code>@​lvisterin</code></a>)</li>
<li>Runtime: Generalize OS check for MacOS to other Unix-likes (authored
by <a href="https://github.com/iamleot"><code>@​iamleot</code></a>)</li>
</ul>
<h4>Bundles Fixes</h4>
<p>The Bundles system received several bugfixes and performance
improvements in this release:</p>
<ul>
<li>Bundle: <code>opa bundle</code> command now supports
<code>.yml</code> files (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4859">#4859</a>)
authored by <a
href="https://github.com/Joffref"><code>@​Joffref</code></a> reported by
<a
href="https://github.com/rdrgmnzsakt"><code>@​rdrgmnzsakt</code></a></li>
<li>Plugins/Bundle: Use unique temporary files for persisting activated
bundles to disk (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4782">#4782</a>)
authored by <a
href="https://github.com/FredrikAppelros"><code>@​FredrikAppelros</code></a>
reported by <a
href="https://github.com/FredrikAppelros"><code>@​FredrikAppelros</code></a></li>
<li>Server: Old policy path is now checked for bundle ownership before
update (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4846">#4846</a>)</li>
<li>Storage+Bundle: Old bundle data is now cleaned before new bundle
activation (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4940">#4940</a>)</li>
<li>Bundle: Paths are now normalized before bundle root check occurs to
ensure checks are os-independent</li>
</ul>
<h4>Storage Fixes</h4>
<p>The Storage system received mostly bugfixes, with a notable
performance improvement for large bundles in this release:</p>
<ul>
<li>storage/inmem: Speed up bundle activation by avoiding unnecessary
read operations (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4898">#4898</a>)</li>
<li>storage/inmem: Paths are now created during truncate operations if
they did not exist before</li>
<li>storage/disk: Symlinks work with relative paths now (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4869">#4869</a>)</li>
</ul>
<h3>Rego and Topdown</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md">github.com/open-policy-agent/opa's
changelog</a>.</em></p>
<blockquote>
<h2>0.43.1</h2>
<p>This is a security release fixing the following vulnerabilities:</p>
<ul>
<li>
<p>CVE-2022-36085: Respect unsafeBuiltinMap for 'with' replacements in
the compiler</p>
<p>See <a
href="https://github.com/open-policy-agent/opa/security/advisories/GHSA-f524-rf33-2jjr">https://github.com/open-policy-agent/opa/security/advisories/GHSA-f524-rf33-2jjr</a>
for all details.</p>
</li>
<li>
<p>CVE-2022-27664 and CVE-2022-32190.</p>
<p>Fixed by updating the Go version used in our builds to 1.18.6,
see <a
href="https://groups.google.com/g/golang-announce/c/x49AQzIVX-s">https://groups.google.com/g/golang-announce/c/x49AQzIVX-s</a>.
Note that CVE-2022-32190 is most likely not relevant for OPA's usage of
net/url.
But since these CVEs tend to come up in security assessment tooling
regardless,
it's better to get it out of the way.</p>
</li>
</ul>
<h2>0.43.0</h2>
<p>This release contains a number of fixes, enhancements, and
performance improvements.</p>
<h3>Object Insertion Optimization</h3>
<p>Rego Object insertion operations did not scale linearly (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4625">#4625</a>)
in the past, and experienced noticeable reallocation/memory movement
overheads once the Object grew past 120k-150k keys in size.</p>
<p>This release introduces different handling of Object internals during
insert
operations to avoid pathological reallocation behavior, and allows
linear
performance scaling up into the 500k key range and beyond.</p>
<h3>Tooling, SDK, and Runtime</h3>
<ul>
<li>Add lines covered/not covered counts to test coverage report
(authored by <a
href="https://github.com/FarisR99"><code>@​FarisR99</code></a>)</li>
<li>Plugins: Status and logs plugins now accept any HTTP 2xx status code
(authored by <a
href="https://github.com/lvisterin"><code>@​lvisterin</code></a>)</li>
<li>Runtime: Generalize OS check for MacOS to other Unix-likes (authored
by <a href="https://github.com/iamleot"><code>@​iamleot</code></a>)</li>
</ul>
<h4>Bundles Fixes</h4>
<p>The Bundles system received several bugfixes and performance
improvements in this release:</p>
<ul>
<li>Bundle: <code>opa bundle</code> command now supports
<code>.yml</code> files (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4859">#4859</a>)
authored by <a
href="https://github.com/Joffref"><code>@​Joffref</code></a> reported by
<a
href="https://github.com/rdrgmnzsakt"><code>@​rdrgmnzsakt</code></a></li>
<li>Plugins/Bundle: Use unique temporary files for persisting activated
bundles to disk (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4782">#4782</a>)
authored by <a
href="https://github.com/FredrikAppelros"><code>@​FredrikAppelros</code></a>
reported by <a
href="https://github.com/FredrikAppelros"><code>@​FredrikAppelros</code></a></li>
<li>Server: Old policy path is now checked for bundle ownership before
update (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4846">#4846</a>)</li>
<li>Storage+Bundle: Old bundle data is now cleaned before new bundle
activation (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4940">#4940</a>)</li>
<li>Bundle: Paths are now normalized before bundle root check occurs to
ensure checks are os-independent</li>
</ul>
<h4>Storage Fixes</h4>
<p>The Storage system received mostly bugfixes, with a notable
performance improvement for large bundles in this release:</p>
<ul>
<li>storage/inmem: Speed up bundle activation by avoiding unnecessary
read operations (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4898">#4898</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="196c92df8b"><code>196c92d</code></a>
Release v0.43.1</li>
<li><a
href="3e8c754ed0"><code>3e8c754</code></a>
ast/compile: respect unsafeBuiltinMap for 'with' replacements</li>
<li><a
href="b78756fa64"><code>b78756f</code></a>
build: bump golang: 1.18 -&gt; 1.18.6</li>
<li><a
href="d75bbdd0f9"><code>d75bbdd</code></a>
Prepare v0.43.0 release (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4949">#4949</a>)</li>
<li><a
href="a99e5a9aa6"><code>a99e5a9</code></a>
docs: add warning about importing 'future.keywords' (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4947">#4947</a>)</li>
<li><a
href="8f63046fb9"><code>8f63046</code></a>
storage+bundle: Clean old bundle data before new activation (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4944">#4944</a>)</li>
<li><a
href="462d51850c"><code>462d518</code></a>
docs: Add note about counter_server_query_cache_hit metric (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4946">#4946</a>)</li>
<li><a
href="eff91f755c"><code>eff91f7</code></a>
build(deps): bump aquasecurity/trivy-action from 0.6.0 to 0.6.1 (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4941">#4941</a>)</li>
<li><a
href="1c1957c57b"><code>1c1957c</code></a>
topdown/copypropagation: keep refs into livevars (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4936">#4936</a>)</li>
<li><a
href="7f78653f9c"><code>7f78653</code></a>
build: run 'make generate' in release container (<a
href="https://github-redirect.dependabot.com/open-policy-agent/opa/issues/4934">#4934</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/open-policy-agent/opa/compare/v0.42.0...v0.43.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/open-policy-agent/opa&package-manager=go_modules&previous-version=0.42.0&new-version=0.43.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/fleetdm/fleet/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 11:43:58 -08:00
dependabot[bot]
1a73517a7f
Bump github.com/russellhaering/goxmldsig from 1.1.0 to 1.1.1 in /infrastructure/sandbox/JITProvisioner/lambda (#10224)
Bumps
[github.com/russellhaering/goxmldsig](https://github.com/russellhaering/goxmldsig)
from 1.1.0 to 1.1.1.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="dfbd95396a"><code>dfbd953</code></a>
Bump Go versions in Travis</li>
<li><a
href="65601c817d"><code>65601c8</code></a>
Update dependencies</li>
<li><a
href="fb23e0af61"><code>fb23e0a</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/russellhaering/goxmldsig/issues/71">#71</a>
from aporcupine/patch-1</li>
<li><a
href="ca2b448c7d"><code>ca2b448</code></a>
Explicitly check for case where SignatureValue is nil</li>
<li><a
href="3541f5e554"><code>3541f5e</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/russellhaering/goxmldsig/issues/67">#67</a>
from santosh653/master</li>
<li><a
href="735e3c720c"><code>735e3c7</code></a>
Update .travis.yml</li>
<li><a
href="d6a59c7d76"><code>d6a59c7</code></a>
Update .travis.yml</li>
<li><a
href="add80e26e1"><code>add80e2</code></a>
Update .travis.yml</li>
<li><a
href="0bf1c10130"><code>0bf1c10</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/russellhaering/goxmldsig/issues/61">#61</a>
from pboyd04/UseCanonicalizationFromSigInfo</li>
<li><a
href="d396ec6179"><code>d396ec6</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/russellhaering/goxmldsig/issues/39">#39</a>
from aykevl/fixes</li>
<li>Additional commits viewable in <a
href="https://github.com/russellhaering/goxmldsig/compare/v1.1.0...v1.1.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/russellhaering/goxmldsig&package-manager=go_modules&previous-version=1.1.0&new-version=1.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/fleetdm/fleet/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 11:43:35 -08:00
dependabot[bot]
74e01c36ae
Bump github.com/theupdateframework/go-tuf from 0.3.0 to 0.3.2 in /infrastructure/sandbox/PreProvisioner/lambda (#10223)
Bumps
[github.com/theupdateframework/go-tuf](https://github.com/theupdateframework/go-tuf)
from 0.3.0 to 0.3.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/theupdateframework/go-tuf/releases">github.com/theupdateframework/go-tuf's
releases</a>.</em></p>
<blockquote>
<h2>v0.3.2</h2>
<h2>Changelog</h2>
<h3>Bug fixes</h3>
<ul>
<li>b6695e4ba6d0b98beb851054c0f187df8d54a639: fix(verify): backport
&quot;Fix a vulnerability in the verification of threshold si… (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/375">#375</a>)
(<a
href="https://github.com/znewman01"><code>@​znewman01</code></a>)</li>
</ul>
<h2>v0.3.1</h2>
<h2>Changelog</h2>
<h3>Features</h3>
<ul>
<li>4bf58eb096f99647e7fd30447396c7a57202982f: feat: add
<code>payload</code> and <code>add-signature</code> commands. (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/214">#214</a>)
(<a
href="https://github.com/znewman01"><code>@​znewman01</code></a>)</li>
<li>39c23cb5043ad2c0d873f7cc7191a7256f6a3cb6: feat: add workflow
responsible for notifying of new TUF spec release (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/287">#287</a>)
(<a
href="https://github.com/rdimitrov"><code>@​rdimitrov</code></a>)</li>
<li>355e39cb2df220fc3961396a6d0e30bcf2c9ac12: feat: Implement TAP-12
support (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/310">#310</a>)
(<a
href="https://github.com/znewman01"><code>@​znewman01</code></a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>9a41055b8eee0fee60650c43037f35b919d72d7c: fix: check root metadata
verification before snapshotting (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/293">#293</a>)
(<a href="https://github.com/asraa"><code>@​asraa</code></a>)</li>
<li>e3efe988f0371d41c83686204dc6ae23285bf33c: fix: verify length and
hashes of fetched bytes before parsing (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/325">#325</a>)
(<a href="https://github.com/joshuagl"><code>@​joshuagl</code></a>)</li>
</ul>
<h3>Others</h3>
<ul>
<li>ea0f98a4e1b72d7486e4e86baf7fd9a3ec1fc844: chore(deps): bump
arnested/go-version-action from 1.0.67 to 1.0.69 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/288">#288</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>6722937104a3178b2b899c5ce1799de129ddb294: chore(deps): bump
golangci/golangci-lint-action from 2.5.2 to 3.2.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/289">#289</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>e2594e68bf2239a0b60c576c47b5ede7ac8c8fe4: chore(deps): bump
actions/setup-go from 3.0.0 to 3.1.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/290">#290</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>580db1958c1e16ee73d53055eb9793fde1110d8e: chore(deps): bump
goreleaser/goreleaser-action from 2.9.1 to 3 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/294">#294</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>5884dab97151c7fd314ee34ac71bf0cf6167e21c: chore(deps): bump
actions/setup-go from 3.1.0 to 3.2.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/295">#295</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>3b26aedfe985198bc88a9dda7525938c575ca046: chore(deps): bump
arnested/go-version-action from 1.0.69 to 1.0.70 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/297">#297</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>041e818016131ec500c78ed8eb20fed9a5668861: chore(deps): bump
github.com/secure-systems-lab/go-securesystemslib (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/298">#298</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>ad96eca0239ec2cc9b6e408fbe42b2f9e9d6b1dd: chore(deps): bump
github.com/stretchr/testify from 1.7.1 to 1.7.2 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/299">#299</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>36633af8d7a2162664a58f3fb1fe36a74e10428e: chore(deps): bump
arnested/go-version-action from 1.0.70 to 1.1.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/300">#300</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>e24b175b00960136ecacb8111d9887d15ce47c6d: chore(deps): bump
actions/setup-python from 3.1.2 to 4 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/311">#311</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>1684c680105f90a054f04e05b0f8ac540c4ef885: docs: Update
CONTRIBUTING.md, add MAINTAINERS.md (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/309">#309</a>)
(<a
href="https://github.com/znewman01"><code>@​znewman01</code></a>)</li>
<li>4139c85cd7632c659bf00f4b2810c37eb8d71a2c: chore(deps): bump
arnested/go-version-action from 1.1.0 to 1.1.3 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/316">#316</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>36a29309b2531255fc7d374c4055dcfab0fd04e8: build: update go version
to 1.18 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/314">#314</a>)
(<a href="https://github.com/asraa"><code>@​asraa</code></a>)</li>
<li>ae904d2bb977a54e6a5527513c4d398c8d9cc285: docs: Add DCO instructions
(<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/319">#319</a>)
(<a
href="https://github.com/znewman01"><code>@​znewman01</code></a>)</li>
<li>81cd9b36a8023d6e943f0f3cacfe664603fa3177: chore(deps): bump Python
from 3.6 to 3.10 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/318">#318</a>)
(<a
href="https://github.com/rdimitrov"><code>@​rdimitrov</code></a>)</li>
<li>986a4c5a492be020d0ab16a5ea13b9963bf7af1f: chore(deps): bump requests
from 2.27.1 to 2.28.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/317">#317</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>439ce47c43c772ad225101494db8307e97f869c3: chore(deps): bump
github.com/stretchr/testify from 1.7.2 to 1.7.4 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/324">#324</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>3bb077e8c246429db8acafc78761de71cc4d6b62: chore(deps): bump requests
from 2.28.0 to 2.28.1 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/332">#332</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>eed9e6c4d8eac821593800fd053d8cca5ee56137: chore(deps): bump
github.com/stretchr/testify from 1.7.4 to 1.8.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/331">#331</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
<li>0d40b25637fa35e4e546a0bafebaa7ee4591e172: test: fix flakey util test
(<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/333">#333</a>)
(<a href="https://github.com/asraa"><code>@​asraa</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b6695e4ba6"><code>b6695e4</code></a>
fix(verify): backport &quot;Fix a vulnerability in the verification of
threshold s...</li>
<li><a
href="0d40b25637"><code>0d40b25</code></a>
test: fix flakey util test (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/333">#333</a>)</li>
<li><a
href="eed9e6c4d8"><code>eed9e6c</code></a>
chore(deps): bump github.com/stretchr/testify from 1.7.4 to 1.8.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/331">#331</a>)</li>
<li><a
href="3bb077e8c2"><code>3bb077e</code></a>
chore(deps): bump requests from 2.28.0 to 2.28.1 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/332">#332</a>)</li>
<li><a
href="e3efe988f0"><code>e3efe98</code></a>
fix: verify length and hashes of fetched bytes before parsing (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/325">#325</a>)</li>
<li><a
href="439ce47c43"><code>439ce47</code></a>
chore(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/324">#324</a>)</li>
<li><a
href="986a4c5a49"><code>986a4c5</code></a>
chore(deps): bump requests from 2.27.1 to 2.28.0 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/317">#317</a>)</li>
<li><a
href="81cd9b36a8"><code>81cd9b3</code></a>
chore(deps): bump Python from 3.6 to 3.10 (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/318">#318</a>)</li>
<li><a
href="355e39cb2d"><code>355e39c</code></a>
feat: Implement TAP-12 support (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/310">#310</a>)</li>
<li><a
href="ae904d2bb9"><code>ae904d2</code></a>
docs: Add DCO instructions (<a
href="https://github-redirect.dependabot.com/theupdateframework/go-tuf/issues/319">#319</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/theupdateframework/go-tuf/compare/v0.3.0...v0.3.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/theupdateframework/go-tuf&package-manager=go_modules&previous-version=0.3.0&new-version=0.3.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/fleetdm/fleet/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 11:42:48 -08:00
StepSecurity Bot
fb152b9114
Pin image SHA in Dockerfiles (#10205)
## Summary

This pull request is created by [Secure
Repo](https://app.stepsecurity.io/securerepo) at the request of @zwass.
Please merge the Pull Request to incorporate the requested changes.
Please tag @zwass on your message if you have any questions related to
the PR. You can also engage with the
[StepSecurity](https://github.com/step-security) team by tagging
@step-security-bot.

## Security Fixes

### Secure Dockerfiles

Pin image tags to digests in Dockerfiles. With the Docker v2 API
release, it became possible to use digests in place of tags when pulling
images or to use them in FROM lines in Dockerfiles.

- [The Open Source Security Foundation (OpenSSF) Security
Guide](https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies)


## Feedback
For bug reports, feature requests, and general feedback; please create
an issue in
[step-security/secure-repo](https://github.com/step-security/secure-repo).
To create such PRs, please visit https://app.stepsecurity.io/securerepo.


Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>

---------

Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2023-03-01 11:37:00 -08:00
Zachary Winnerman
4b6da3dd62
bump version (#10216)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-03-01 13:03:03 -05:00