Commit Graph

1882 Commits

Author SHA1 Message Date
d91581372a Enabling functions (#2046)
QueueNodeHeartbeat
QueueTaskHeartbeat
2022-06-14 10:57:10 -07:00
dec4285527 Add scripts to install dotnet on windows and ubuntu (#2038)
* Add scripts to install dotnet on windows and ubuntu

* Install dotnet on linux setup

* Move the install to the setup scripts

* Fix slash direction

* typo

* PR comments
2022-06-14 14:56:53 +00:00
52ccf05a29 Remove deprecated libfuzzer_coverage task (#2021)
- Remove the ability to create or execute a `libfuzzer_coverage` task
- Preserve the enum variant in `onefuzztypes` to prevent errors when deserializing old data
- Remove doc references to `libfuzzer_coverage`
2022-06-13 12:38:35 -07:00
9989189e60 Adding Node State to Node Heartbeat (#2024)
* Adding Node State to Node Heartbeat.

* Updating docs.

* Fixing webhook events.

* Formatting.

* Resetting type.

* Updting param.

* Setting to nodestate.
2022-06-13 10:13:57 -07:00
f8ba6e2d5b Specify that the tools are missing locally, not on the repro vm (#2036) 2022-06-09 20:04:08 +00:00
cb1d89fce6 Fix typo in C# query (#2034) 2022-06-09 07:39:25 -04:00
c38722da75 Make Clippy run on all targets in CI (#2027)
## Summary of the Pull Request

While I'm browsing around the code clippy is shouting at me, so here's a janitorial exercise to clean up clippy lints and become a little more familiar with the codebase.

## Info on Pull Request

Fix all outstanding clippy lints. Fixes are almost mechanical, although I didn't automate them.
2022-06-09 16:19:34 +12:00
c47372f4b6 Use shared Directory.Build.props (#2026) 2022-06-09 08:43:03 +12:00
fe56f6fb29 Collect .NET coverage info (#2023)
## Summary of the Pull Request

Collect .NET coverage during build and display it in GitHub Summary.

## Info on Pull Request

Add the `reportgenerator` tool, run it after tests.

## Validation Steps Performed

Run workflow and make sure it works.

See example coverage output here: https://github.com/microsoft/onefuzz/actions/runs/2458088617
2022-06-08 13:52:31 +12:00
60b304a220 handle messages that are too big to fit in a queue message (#2020)
* handle messages that are too big to fit in a queue message

* tests

Co-authored-by: stas <statis@microsoft.com>
2022-06-06 12:16:47 -07:00
79cc5d54d3 Fix equire_admin_privileges Logic. (#2016) 2022-06-03 15:59:08 -07:00
01ad154c00 Rename supervisor to agent (#1989) 2022-06-02 20:03:19 +00:00
599e27076e Bump tui from 0.16.0 to 0.18.0 in /src/agent (#2002)
Bumps [tui](https://github.com/fdehau/tui-rs) from 0.16.0 to 0.18.0.
- [Release notes](https://github.com/fdehau/tui-rs/releases)
- [Changelog](https://github.com/fdehau/tui-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fdehau/tui-rs/compare/v0.16.0...v0.18.0)

---
updated-dependencies:
- dependency-name: tui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-06-02 19:12:01 +00:00
83f0ae3a67 Bump tokio from 1.15.0 to 1.16.1 in /src/agent (#1992)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.15.0 to 1.16.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.15.0...tokio-1.16.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 13:02:27 -04:00
c24193f7e9 Bump symbolic from 8.5.0 to 8.6.0 in /src/agent (#2003)
Bumps [symbolic](https://github.com/getsentry/symbolic) from 8.5.0 to 8.6.0.
- [Release notes](https://github.com/getsentry/symbolic/releases)
- [Changelog](https://github.com/getsentry/symbolic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/symbolic/compare/8.5.0...8.6.0)

---
updated-dependencies:
- dependency-name: symbolic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-06-02 11:02:29 -04:00
74a24b4f2e Bump iced-x86 from 1.15.0 to 1.17.0 in /src/agent (#1999)
Bumps [iced-x86](https://github.com/icedland/iced) from 1.15.0 to 1.17.0.
- [Release notes](https://github.com/icedland/iced/releases)
- [Commits](https://github.com/icedland/iced/compare/v1.15.0...v1.17.0)

---
updated-dependencies:
- dependency-name: iced-x86
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 15:21:28 -04:00
3918503760 Bump strum from 0.23.0 to 0.24.0 in /src/agent (#1986)
Bumps [strum](https://github.com/Peternator7/strum) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 13:06:26 -04:00
c9e194438e Bump proc-maps from 0.2.0 to 0.2.1 in /src/agent (#1983)
Bumps [proc-maps](https://github.com/rbspy/proc-maps) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/rbspy/proc-maps/releases)
- [Commits](https://github.com/rbspy/proc-maps/compare/v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: proc-maps
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 14:56:24 -04:00
d86384f08c Bump tokio-util from 0.6.9 to 0.7.2 in /src/agent (#1982)
Bumps [tokio-util](https://github.com/tokio-rs/tokio) from 0.6.9 to 0.7.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.6.9...tokio-util-0.7.2)

---
updated-dependencies:
- dependency-name: tokio-util
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 12:52:28 -04:00
bbd2178fdf Bump goblin from 0.4.3 to 0.5.1 in /src/agent (#1981)
Bumps [goblin](https://github.com/m4b/goblin) from 0.4.3 to 0.5.1.
- [Release notes](https://github.com/m4b/goblin/releases)
- [Changelog](https://github.com/m4b/goblin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/m4b/goblin/commits)

---
updated-dependencies:
- dependency-name: goblin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 11:08:59 -04:00
e5e43aa080 Bump serde_json from 1.0.73 to 1.0.81 in /src/agent (#1974)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.73 to 1.0.81.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.73...v1.0.81)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 08:40:20 -04:00
91c61d21af Bump tokio from 1.16.1 to 1.18.2 in /src/proxy-manager (#1969)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.16.1 to 1.18.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.16.1...tokio-1.18.2)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 15:56:25 +00:00
b856d44bed Rename agent to task (#1980)
* Rename agent to task

* Missed a rename
2022-05-26 20:41:47 +00:00
430d2e0a76 Bump memmap2 from 0.5.0 to 0.5.3 in /src/agent (#1965)
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs) from 0.5.0 to 0.5.3.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases)
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.0...v0.5.3)

---
updated-dependencies:
- dependency-name: memmap2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-05-26 15:09:54 -04:00
0d14ca1ed1 pin protobuf (#1985) 2022-05-26 17:42:59 +00:00
10d3d70535 Removing stray print statement in the task_logger (#1975) 2022-05-26 16:35:58 +00:00
7fde79ee97 Add timestamp to agent log (#1972)
* Add timestamp to agent log

* Add timestamp and test for events too

* Move timestamp into task_logger to avoid sending it to app insights

* Update Cargo.toml

* Update lib.rs

* Update cargo.lock

* Update LogEvent to contain timestamp

* Uncomment ignore

* fmt

* PR comment
2022-05-26 12:34:41 +00:00
f339b02536 Bump async-trait from 0.1.52 to 0.1.53 in /src/agent (#1936)
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.52 to 0.1.53.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.52...0.1.53)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 16:35:01 -04:00
54754a2060 Bump reqwest from 0.11.7 to 0.11.10 in /src/proxy-manager (#1709)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.7 to 0.11.10.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.7...v0.11.10)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-05-25 19:22:21 +00:00
29fbb28ad9 adding function app settings bicep template and updating deploy.py (#1973)
* adding function app settings bicep templates and updating deploy.py for toggling function states through enable_dotnet argument

* fixes #1948
2022-05-25 09:30:38 -07:00
6e84fd6dcb Bump reqwest from 0.11.7 to 0.11.10 in /src/agent (#1710)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.7 to 0.11.10.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.7...v0.11.10)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 10:42:25 -04:00
e2f6bff2fc Bump anyhow from 1.0.51 to 1.0.57 in /src/proxy-manager (#1824)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.51 to 1.0.57.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.51...1.0.57)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-05-25 11:56:42 +00:00
0bdcc74ecd Bump strum_macros from 0.23.1 to 0.24.0 in /src/agent (#1743)
Bumps [strum_macros](https://github.com/Peternator7/strum) from 0.23.1 to 0.24.0.
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum_macros
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-24 14:22:27 -04:00
f5d2a7e5a4 Bump sha2 from 0.10.1 to 0.10.2 in /src/agent (#1828)
Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/RustCrypto/hashes/releases)
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.1...sha2-v0.10.2)

---
updated-dependencies:
- dependency-name: sha2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-19 20:58:25 +00:00
d2d171475c Bump queue-file from 1.1.0 to 1.4.0 in /src/agent (#1844)
Bumps [queue-file](https://github.com/ing-systems/queue-file) from 1.1.0 to 1.4.0.
- [Release notes](https://github.com/ing-systems/queue-file/releases)
- [Commits](https://github.com/ing-systems/queue-file/commits/v1.4.0)

---
updated-dependencies:
- dependency-name: queue-file
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-19 15:56:07 -04:00
e492886a85 Bug fixes in the TimerTasks function (#1961)
* Bug fixes in the TimerTasks function

* formatting
2022-05-19 18:26:08 +00:00
b63de9c73d fix local coverage defnition (#1962) 2022-05-19 17:01:04 +00:00
5887fa3626 Bump thiserror from 1.0.30 to 1.0.31 in /src/proxy-manager (#1867)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.30 to 1.0.31.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.30...1.0.31)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-05-19 14:39:15 +00:00
b4e5c7c79e Set backtrace to full (#1959)
* Set backtrace to full

* Update src/runtime-tools/win64/onefuzz-run.ps1

Co-authored-by: Joe Ranweiler <joe@lemma.co>

Co-authored-by: Joe Ranweiler <joe@lemma.co>
2022-05-19 12:38:45 +00:00
dbd63bd54e Release 5.5.0. (#1958)
* Release 5.5.0.

* Typo.

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

* Fixing.

* Adding teo changes.

* Adding timer changes.

* Adding bug fix to release.

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

* Update CHANGELOG.md

Co-authored-by: Joe Ranweiler <joe@lemma.co>

Co-authored-by: Joe Ranweiler <joe@lemma.co>
2022-05-18 15:33:10 -07:00
0d86ef9975 Ensure GlobalFlag reg value is initialized for target (#1960)
- Zero-initialize `GlobalFlag` registry values as needed
- Update an internal error type for easier debugging
2022-05-17 14:53:05 -07:00
e0a9f07942 Test timer repro (#1934)
* TimerRepro tests

* fmt
2022-05-17 14:21:23 +00:00
26f2f519db Remove transitive OpenSSL dep (#1952) 2022-05-16 17:00:16 -07:00
4ee967ab4c scaleset vm instance scale-in protection (#1946)
* scaleset vm instance scale-in protection

* added tests and used to validate the behavior

Co-authored-by: stas <statis@microsoft.com>
2022-05-16 11:25:54 -07:00
a3e63df18d Upgrading dotnet version to 6.0.300 (#1947) 2022-05-16 16:25:02 +00:00
3dd27be55b Use consistent logger names (#1945) 2022-05-15 15:22:53 -07:00
806409bdbf Warn on SDK/CLI creation of libfuzzer_coverage task (#1944)
The old `libfuzzer_coverage` task dumps binary sancov tables. Its output is not usable on its own. This task has been superseded by the generic `coverage` task (which produces actual modoffset and source line coverage).

Add a CLI warning if it is used, in preparation for removing it.
2022-05-14 12:03:09 -07:00
b3e7f9b6cf Allow old reports to be parsed (#1943) 2022-05-13 17:51:31 -07:00
b080f5b164 Make tool_version, onefuzz_version, tool_name optinal (#1940) 2022-05-13 20:12:22 +00:00
e2314b1311 Include LD_LIBRARY_PATH iff set by command (#1933)
On Linux, when calling `find_missing()`, include `LD_LIBRARY_PATH` if and only if the invoked `Command` explicitly sets some value for that variable. This ensures consistent search results, no matter the process environment of the calling context.
2022-05-13 08:48:33 -07:00