Commit Graph

2050 Commits

Author SHA1 Message Date
7c0ac7a654 Add repro operations (#2222)
* Add repro operations

* bug fixes

* fmt

* The python code overwrites the security rules

* small logic bug got reintroduced
2022-08-08 19:59:07 +00:00
ceb5d6d5f9 Update Default Windows Image (#2226)
* Update Function Scaling Policy and Diagnostic Settings.

* Adding changes to scaling policy

* UPdating cooldown.

* Changing time windows.

* Updating duration.

* Updating Out-of-Date Windows Image.

* Adding repro operations back.

* Removing bad files.
2022-08-08 11:40:55 -07:00
26f9667777 add secure decorator to clientSecret param (#2224) 2022-08-05 17:56:27 -07:00
9c927a846f Add libfuzzer_dotnet_fuzz task to agent (#2221) 2022-08-05 10:00:19 -07:00
b32e8c8825 enable timer daily (#2220) 2022-08-05 15:49:47 +00:00
6ca64b3eeb migrate repro_vmss (#2211)
* migrate repro_vmss

* build fix

* fix name
2022-08-05 08:40:58 -07:00
2ee01c94c1 Remove lifetime param from LibFuzzer (#2219) 2022-08-04 13:58:57 -07:00
6d07095eea migrate proxy (#2206)
* migrate proxy function

* - added private ip address query
- updated Azure.ResourceManager.Storage to non beta release

* remove comment

* extracting nework interface query

* format

* Update src/ApiService/ApiService/Functions/Proxy.cs

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>

* fix function name

* Fix merge conflict

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-08-04 20:09:09 +00:00
3a0e8bb2e3 Add extensions functionality for C# refactor (#2218)
* Add extensions functionality

* Small cleanup

* Use context, fix typo
2022-08-04 15:27:41 -04:00
d0f0fc576b Add networking related operations for C# refactor (#2216)
* Add some networking related operations

* Add nsg operations

* Fix tests

* Use creds from context

* Use creds from context

* PR comment
2022-08-04 17:39:50 +00:00
8a8fe9a30d Factor out generic libfuzzer task (#2214) 2022-08-04 10:01:06 -07:00
78411fe320 Keep both C# and python http functions active when deploying (#2212)
* Kepp both  C# and  python http functions active when deploying

* update logic

* update log message

* use the function name instead of a list
2022-08-03 13:07:28 -07:00
f19c819751 migrate add_node_ssh_key (#2193)
* migrate add_node_ssh_key

* build fix

* fix

* format

* fix return value and function name
2022-08-02 11:51:48 -07:00
eaf74d936a Add missing job state transition (#2202)
* Add missing job state transition

* address PR comments
2022-07-28 23:08:15 +00:00
b2fc9f4285 fix return value when associating nsg subner (#2201) 2022-07-28 14:25:03 -07:00
36d36cdfaa saving secrets in keyvault (#2200) 2022-07-28 12:12:47 -07:00
25242f1ab9 Migrating notifications (#2188)
* Migrating notification

* add dotnet enpoint setting in the config

* format

* fix unit test

* format

* build fix

* fix notifictions function definition

* fix deserilization of requests
refactor secretdata
finish transfering Notifiction objects

* format
2022-07-28 09:17:14 -07:00
1098afd757 Fix TimerTasks bugs (#2196)
* Fix missing config

* add missing def

* Fix queue sas
2022-07-27 12:12:30 -07:00
c653f2e8ef Add support for dotnet_endpoint/dotnet_functions to integration-test.py (#2192)
This will allow testing client-facing .NET Functions during integration tests (`check-pr`).
2022-07-26 14:44:59 +12:00
992751044f Make the dotnet endpoint and functions configurable in the cli (#2190) 2022-07-25 22:12:36 +00:00
bae35dec97 Implement Jobs function for C# (#2157)
#2156 - convert the `jobs` function from Python to C#
2022-07-25 03:17:46 +00:00
23a7dae606 fix log level (#2185) 2022-07-25 14:47:46 +12:00
cc42ed4597 Release 5.9.0 (#2184)
* Release 5.9.0

* Fixed grammatical error.
5.9.0
2022-07-22 11:09:51 -07:00
c667e3aa2c Bump regex from 1.5.5 to 1.6.0 in /src/agent (#2127)
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.5 to 1.6.0.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.5...1.6.0)

---
updated-dependencies:
- dependency-name: regex
  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-07-22 16:39:32 +12:00
b2f5b9a2d1 Bump bytes from 1.1.0 to 1.2.0 in /src/agent (#2175)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: bytes
  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-07-22 15:21:33 +12:00
8c636c37df Bump Azure.Storage.Blobs & Azure.Storage.Queues (#2181)
* Bump Azure.Storage.Queues in /src/ApiService/ApiService

Bumps [Azure.Storage.Queues](https://github.com/Azure/azure-sdk-for-net) from 12.9.0 to 12.11.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](https://github.com/Azure/azure-sdk-for-net/compare/Azure.Storage.Queues_12.9.0...Azure.Storage.Queues_12.11.0)

---
updated-dependencies:
- dependency-name: Azure.Storage.Queues
  dependency-type: direct:production
...

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

* Bump Azure.Storage.Blobs in /src/ApiService/ApiService

Bumps [Azure.Storage.Blobs](https://github.com/Azure/azure-sdk-for-net) from 12.11.0 to 12.13.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](https://github.com/Azure/azure-sdk-for-net/compare/Azure.Storage.Blobs_12.11.0...Azure.Storage.Blobs_12.13.0)

---
updated-dependencies:
- dependency-name: Azure.Storage.Blobs
  dependency-type: direct:production
...

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

* Update lockfiles

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: George Pollard <gpollard@microsoft.com>
2022-07-22 00:31:29 +00:00
5083d9e461 Bump symbolic from 8.6.0 to 8.8.0 in /src/agent (#2056)
Bumps [symbolic](https://github.com/getsentry/symbolic) from 8.6.0 to 8.8.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.6.0...8.8.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>
2022-07-21 23:16:36 +00:00
94db49995f Move functions into Functions namespace (#2176) 2022-07-21 20:46:31 +00:00
08fb29fc6b ignore the state when a job_id is specified in tasks list (#2171) 2022-07-21 18:25:39 +00:00
8dbc97129a Bump tokio from 1.19.2 to 1.20.0 in /src/proxy-manager (#2164)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.19.2 to 1.20.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.19.2...tokio-1.20.0)

---
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-07-21 10:43:48 +12:00
4fa6e74241 Enable .NET functions in check-pr for Agent-specific functions (#2119)
Enable the .NET functions for the agent by sending the agent the URI for the `-net` service.

Also fix some things causing failures when using the .NET functions (`CouldShrinkScaleset` was not implemented).

Improve error handling around table serialization/deserialization, fix an issue with int64/long mismatch between Python & C# code.

----

For `check-pr` testing:

1. There's a new parameter `enable_dotnet` which maps directly to the `--enable_dotnet` switch on `deploy.py`.
2. If you put `agent` there, all the `agent_*` functions will be enabled for .NET and disabled for Python.
3. If `agent_can_schedule` is disabled on the Python side, it will automatically tell the agent to use the .NET functions.

So to test the .NET agent functions, do a `check-pr` run with `enable_dotnet` set to `agent` and it should all work.
2022-07-20 20:40:30 +00:00
b1a3e7530a Drop support for pre 3.0.0 authentication in the cli (#2173) 2022-07-20 13:28:31 -07:00
7f90c13724 Laying groundwork for TimerRepro implementation (#2168)
* Add some pre-reqs for TimerRepro

* Format and add some API to creds

* PR comment
2022-07-15 18:33:25 +00:00
3347e7e67b Use .get instead of lookup (#2165) 2022-07-14 23:55:30 +00:00
fe8b75045f Drop the global event sender on close (#2125)
* anyhow

* rename flush to done

* format

* log when messages are skipped
2022-07-14 01:18:50 +00:00
ae4c1b9bec Allow autoscale with a minimum of 0 (#2162) 2022-07-14 12:37:46 +12:00
d71c558447 allow and set onefuzz cli autoscale min value default to zero (#2112) 2022-07-13 08:59:03 -07:00
0b8093b89e Reuse Agent artifacts if nothing in src/agent changes (#2115)
The agent build takes most of the CI runtime, so improve it by only rebuilding if the pre-reqs or something inside `src/agent` changes.

We will always skip the cache for builds on tags and from the `main` branch, so that version is stamped correctly there.
2022-07-12 22:09:32 +00:00
ec515a57fd Implement the containers function for C# (#2078)
Fairly straightforward but required implementation of a few more functions on the `IContainers`/`Containers` class.
2022-07-12 22:00:22 +00:00
9d5d86a03b Pin Rust to 1.62.0 (#2153) 2022-07-12 20:51:20 +00:00
69b11f60c2 Add GoodBad C# example project, integration test (#2148) 2022-07-12 12:07:30 -07:00
c1f9d738d9 Depend on updated SharpFuzz package (#2149) 2022-07-12 10:43:21 -07:00
3878793147 Trim whitespaces from options passed to executables (#2151)
* Trim whitespaces from options passed to executables

* check for None

* refactor to a function
5.8.0
2022-07-11 23:37:48 +00:00
7d704a9688 Fix clippy (#2152) 2022-07-11 19:00:51 -04:00
4878356e48 Release 5.8.0 (#2146)
* Release 5.8.0
2022-07-11 12:09:18 -07:00
28e42ab8e8 Update Function Scaling Policy and Diagnostic Settings. (#2140)
* Update Function Scaling Policy and Diagnostic Settings.

* Adding changes to scaling policy

* UPdating cooldown.

* Changing time windows.

* Updating duration.
2022-07-08 12:03:14 -07:00
34a8d721bb Add LibFuzzerDotnetLoader docs (#2142) 2022-07-08 08:24:56 -07:00
e37f56dd05 Remove some allow(clippy::uninit_vec) (#2111)
Closes #1595. Leaving one instance of `allow(clippy::uninit_vec)` in `pipe_handle.rs` as it is more difficult to remove. (Maybe there's  another crate we could use for pipes?)

To satisfy clippy, instead of creating the vec and then resizing it straight away (exposing uninitialized data), write into the `spare_capacity_mut()` (which is `&mut [MaybeUninit<_>]`) and then resize it afterwards.
2022-07-08 01:24:11 +00:00
6bf77a6230 Add logging (#2141)
- Add logging
- Catch terminal exceptions and log as errors before re-throwing
- Nest some exceptions
- Warn when falling back to non-zero cost delegate for legacy compat
2022-07-07 17:41:53 -07:00
ff1d088fa1 include state filter when searching for expired jobs and tasks (#2138) 2022-07-07 14:53:51 -07:00