Commit Graph

1360 Commits

Author SHA1 Message Date
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
69f31ec043 Updating CodeQL Version to V2. (#1984) 2022-05-25 16:06:07 -07: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>
5.5.0
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
babe7c2111 Auto lint before committing (#1928) 2022-05-17 13:15:24 +00:00
26f2f519db Remove transitive OpenSSL dep (#1952) 2022-05-16 17:00:16 -07:00
02477b207a Update coverage filtering docs (#1950) 2022-05-16 12:22:12 -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
f9a63365f1 enable locked restore on NET code (#1938)
Co-authored-by: stas <statis@microsoft.com>
2022-05-12 14:41:07 -07:00
8fbe0498b1 Allow ignoring directories (#1931)
* Allow ingoring directories

* PR comments
2022-05-12 20:13:48 +00:00
70d6ff0019 When a tag is created, trigger a build. This is needed for our release pipeline to be able to find the correct set of artifacts. (#1930) 2022-05-12 18:44:13 +00:00
1f1abbe0ea Update patch version of digest:0.10 dep (#1935)
Fix the build, broken due to `0.10.x` being yanked for `x < 2`.
2022-05-12 10:42:57 -07:00
6d15a46897 proxy forward test hooks (#1924)
fixing some bugs

Co-authored-by: stas <statis@microsoft.com>
2022-05-11 13:05:29 -07:00
5f4a02503a Refactor agent commands (#1922)
* Checkpoint

* Disable the function for now

* snapshot

* Tested locally

* fmt
2022-05-11 14:06:09 +00:00
c9b46e983d Release 5.4.0 (#1919)
* Release 5.4.0
5.4.0
2022-05-10 20:29:59 -07:00
c01421b283 pinning the version of dotnet to 6.0.202 (#1925) 2022-05-10 23:00:34 +00:00
779a67ed6d Download agent logs using sas url (#1920) 2022-05-10 10:54:53 -04:00
78c680e955 Update AgentCanSchedule.cs (#1912) 2022-05-10 12:07:24 +00:00
25405b0b27 Remove client_secret from config, add env var (#1918) 2022-05-09 16:58:15 -07:00
f5ce5b3d6f Updating OneFuzz Threat Model (#1917)
* Updating OneFuzz Threat Model

* Update htm threat model.
2022-05-09 15:03:44 -07:00
a4357c8fb9 Use the json serializer to convert enum to the DB (#1910)
* Use the json serializer to convert enum to the DB

* format
2022-05-07 20:44:47 +00:00
dcf84cfd4e Pool operations test hooks (#1909)
Co-authored-by: stas <statis@microsoft.com>
2022-05-07 13:02:43 -07:00
91922ce01a enable python functions (#1907)
- queue_node_heartbeat
- queue_task_heartbeat

disable dotnet functions
- QueueNodeHeartbeat
- QueueTaskHeartbeat
2022-05-06 17:50:33 -07:00
119a40bf0c Set the table value to null when a property is null (#1905)
* set the table value to null when a property is null

* unit test
2022-05-06 21:42:28 +00:00
ee3908f660 nsg operations test hooks and some bug fixes (#1904)
Co-authored-by: stas <statis@microsoft.com>
2022-05-06 13:43:25 -07:00
777a7c6e15 Fix new_files (#1903)
* Fix new_files

* fmt
2022-05-06 15:36:43 +00:00
d3080c0554 Bump log from 0.4.14 to 0.4.17 in /src/proxy-manager (#1882)
Bumps [log](https://github.com/rust-lang/log) from 0.4.14 to 0.4.17.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.14...0.4.17)

---
updated-dependencies:
- dependency-name: log
  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-06 11:04:08 -04:00
5393dbab65 Replace queue_task_hearbeat (#1899)
* Replace queue_task_hearbeat

* dont rename statsFormat

* using hashsets for the helpers
2022-05-05 11:02:36 -07:00
28f0cfbf9f Notification operations test hooks (#1897)
Co-authored-by: stas <statis@microsoft.com>
2022-05-05 08:21:49 -07:00
3370c3df9a Replace queue_node_heatbeat (#1875)
* repalce queue_node_heatbeat

* Changing the name of the input queue

* [testing] hard code deployment of -net function

* explicitly disable other C# functions
2022-05-04 17:09:50 -07:00