2148 Commits

Author SHA1 Message Date
Noah McGregor Harper
f93c75556d
Resolving bug in config refactor. (#2811)
* Resolving bug in config refactor.

* fixing isort.

* Reformatting api.

* debugging.

* fixing backend.

* Adding condition to param retrieval.

* Adding back save.

* Fixing condition check.

* Formatting.
2023-02-07 18:13:29 -08:00
dependabot[bot]
fed7e6939d
Update azure_* packages in agent (#2807)
* Bump azure_storage_blobs from 0.7.0 to 0.9.0 in /src/agent

Bumps [azure_storage_blobs](https://github.com/azure/azure-sdk-for-rust) from 0.7.0 to 0.9.0.
- [Release notes](https://github.com/azure/azure-sdk-for-rust/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-rust/blob/main/HISTORY.md)
- [Commits](https://github.com/azure/azure-sdk-for-rust/commits)

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

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

* Update other Azure packages

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: George Pollard <gpollard@microsoft.com>
2023-02-07 22:12:56 +00:00
Noah McGregor Harper
2ab07ef21b
Upgrade openssl. (#2812)
https://rustsec.org/advisories/RUSTSEC-2023-0006
https://rustsec.org/advisories/RUSTSEC-2023-0007
https://rustsec.org/advisories/RUSTSEC-2023-0009
https://rustsec.org/advisories/RUSTSEC-2023-0010
2023-02-07 20:50:06 +00:00
dependabot[bot]
c52b0bab79
Bump quick-xml from 0.26.0 to 0.27.1 in /src/agent (#2808)
Bumps [quick-xml](https://github.com/tafia/quick-xml) from 0.26.0 to 0.27.1.
- [Release notes](https://github.com/tafia/quick-xml/releases)
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md)
- [Commits](https://github.com/tafia/quick-xml/compare/v0.26.0...v0.27.1)

---
updated-dependencies:
- dependency-name: quick-xml
  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>
2023-02-08 09:00:31 +13:00
dependabot[bot]
c5700b4a34
Bump os_pipe from 1.0.0 to 1.1.3 in /src/agent (#2795)
Bumps [os_pipe](https://github.com/oconnor663/os_pipe.rs) from 1.0.0 to 1.1.3.
- [Release notes](https://github.com/oconnor663/os_pipe.rs/releases)
- [Commits](https://github.com/oconnor663/os_pipe.rs/compare/1.0.0...1.1.3)

---
updated-dependencies:
- dependency-name: os_pipe
  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>
2023-02-07 12:50:47 +13:00
dependabot[bot]
d6fed9dc7d
Bump num_cpus from 1.13.1 to 1.15.0 in /src/agent (#2717)
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus) from 1.13.1 to 1.15.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases)
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.1...v1.15.0)

---
updated-dependencies:
- dependency-name: num_cpus
  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>
2023-02-06 20:39:31 +00:00
George Pollard
80e9b737e8
Add readonly_inputs to dotnet & dotnet_dll templates (#2740)
Closes #2739
2023-02-06 20:15:21 +00:00
Teo Voinea
c1f6dfc366
Validate scriban from cli (#2800)
* Add validate scriban endpoint to cli

* missed a file

* Lint -- I miss C#

* docs
2023-02-06 08:32:49 -05:00
Cheick Keita
8f418f692c
fix default value of analyzer_exe (#2797) 2023-02-03 00:32:33 +00:00
George Pollard
3ccb599c19
Update tokio to fix RUSTSEC-2023-0005 (#2796)
Fixing build failure, see: https://rustsec.org/advisories/RUSTSEC-2023-0005
2023-02-02 23:49:27 +00:00
George Pollard
949c579deb
Add cobertura output to coverage example (#2777)
This makes it very easy to generate Cobertura reports.

Replace `--source` flag argument with `--output={mod-off, source, cobertura}` (default is still `mod-off`).
2023-02-02 22:12:08 +00:00
Teo Voinea
73fac638d1
Scriban to jinja migration script (#2787)
* .

* fmt

* Testing time

* .

* fmt

* More tests

* More tests

* Cleanup

---------

Co-authored-by: George Pollard <gpollard@microsoft.com>
2023-02-02 21:29:55 +00:00
George Pollard
840ced57df
Check agent binary dependencies in CI (#2792)
Check the list of dynamic dependencies of the agent binaries to ensure we don't accidentally take a dependency on some new or unknown library.
2023-02-02 16:12:26 -05:00
Noah McGregor Harper
457eb1e906
Adding Notification Failure Webhook. (#2628)
* Adding Notification Failure Webhook.

* Typo.

* Add await.
2023-02-02 10:31:13 -08:00
Cheick Keita
291f9dfbcf
Fix query to get he existing proxy (#2791) 2023-02-01 20:49:14 +00:00
Justin Moore
f209c0b2f4
Trim output from monitored process before logging (#2782) 2023-02-01 02:06:54 +00:00
George Pollard
be43032bf5
Fixes & improvements to Expand behaviour (#2789)
- Recursively expand Paths before canonicalization; fixes #2387
- Detect and error on infinitely-expanding variables (due to self-reference or mutual recursion); this fixes an existing problem with list expansion as well
- Detect and report references to unknown replacements (e.g. typoes)
- Detect and report references to _known_ replacements which are not available

---

There is a behavioural change here which is that values which were previously unknown such as `{x}` were unexpanded; from now on these will be errors. It's possible that something somewhere is relying on this.
2023-01-31 23:55:53 +00:00
Noah McGregor Harper
f402304084
Config Refactor Round 2. (#2771)
* Config Refactor Round 2.

* Adding docs.

* Fix file formatting.

* Removing.

* fixing imports.

* Removing.

* Fixing cli access token retrieval.

* Fixing authority check.

* Small edits.

* Removing duplicate.

* Adding uuid check.

* Possible to override with existing params.

* Allowing flags to override storage.

* Trying to fix config params.?

* Fixing.

* Set endpoint params via app function.

* Checking changes to params.

* Make tenant_domain default.

* Remove endoint params from models.

* UPdating docs.

* Setting

* Removing hardcoded values.

* Typo.

* Removing endpoint upload.

* Typo.

* Fixing typos.

* Fix error message about aad tenant.

* Responding to comments.

* Update src/ApiService/ApiService/UserCredentials.cs

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>

---------

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2023-01-31 15:03:38 -08:00
Teo Voinea
3d2fb65c14
Truncate for queue as well + bug fix (#2788) 2023-01-31 17:41:59 +00:00
Cheick Keita
bc57fa016c
Add dockerfile to the runtime tools (#2730)
* Add docker file to the runtime tools

* fixes

* bug fixes

* more bug fixes and added doc

* don;t overwrite the RUST_LOG env var

* integration test for unmanaged nodes

* add unamanged parameters to launch()

* add ing object_id

* more bug fixes

* bug fixes

* chmod on the linux files in docker

* format

* revert changes in  integration tests

* Apply suggestions from code review

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>

* format and bug fix

* fix condition

---------

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2023-01-30 20:33:11 -08:00
Joe Ranweiler
c7ba712de0
Apply allowlist to all blocks within a function (#2785) 2023-01-30 09:46:58 -08:00
Joe Ranweiler
6d36f5194a
Fully escape allowlist rules (#2784) 2023-01-30 07:14:31 -08:00
Teo Voinea
6829318d67
Include AssignedTo when failing to create a work item due to an authentication exception (#2770)
* In authenticate exceptions, include the identity that the WI would have been assigned to

* Allow querying for a single notification by id
2023-01-27 16:08:06 +00:00
George Pollard
00031156bc
Rust 1.67 (#2781)
Mostly automated `clippy` fixes.
2023-01-27 16:00:24 +13:00
Noah McGregor Harper
e631ac6cd2
Release 6.3.0 (#2752)
* Release 6.3.0.

* Spacing.

* Adding another PR.

* More changelog updates.

* Fixing.

* Updating changelog.

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2023-01-26 10:12:20 -08:00
George Pollard
f90b53d833
Fix command in docs (#2779)
The `--container_type` argument is not named
2023-01-26 08:55:51 -05:00
Cheick Keita
7de23af60c
delete python function (#2763)
* delete python function

* fix build
2023-01-25 22:05:55 +00:00
Joe Ranweiler
d79e6d9864
Convert callback errors to recording errors (#2772) 2023-01-24 18:46:56 -08:00
Cheick Keita
a3ceb2dec7
Another fix to the regression parsing (#2758)
* Another fix to the regression parsing

* unit tests

* format
2023-01-23 15:27:05 -08:00
Joe Ranweiler
2bff511f52
Add stdio dumping to example (#2757)
* Add stdio dumping to example

* Format
2023-01-22 21:07:31 +00:00
Joe Ranweiler
5adaadd0ce
Support allowlist extension (#2756)
* Support allowlist extension

* Address lint
2023-01-23 09:52:44 +13:00
Cheick Keita
0cdb0c3a92
fix report parsing (#2755)
* fix report parsing

* message parsing fix in the agent

* formatting
2023-01-20 20:08:25 -08:00
Joe Ranweiler
3f865e245a
Add sourceline output and logging to coverage example (#2753) 2023-01-19 17:26:24 -08:00
Joe Ranweiler
62a0dd695a
Fix Linux detection of shared library mappings (#2754) 2023-01-19 16:59:18 -08:00
Cheick Keita
b1625d3033
Fix notification logic (#2751)
* Fix notification logic
This bug was preventing the rest of the NewFils logic to proceed if no notification was associated with the container

* build fix
2023-01-19 22:04:56 +00:00
Teo Voinea
61685e6e6f
Wrap fallible ORM functions in try/catch (#2745) 2023-01-19 21:38:36 +00:00
Cheick Keita
81de10258b
Added machine_id to config_path and failure path of the agent (#2731) 2023-01-17 20:20:00 -08:00
Cheick Keita
7227856e98
Adds an optional analysis task to the libfuzzer template (#2748)
* Adding an analysis task to the libfuzzer template

* format

* build fix

* Use `elsa` for debuggable_module::loader (#2703)

* build fix

Co-authored-by: George Pollard <gpollard@microsoft.com>
2023-01-17 17:14:37 -08:00
George Pollard
748270080b
Use elsa for debuggable_module::loader (#2703) 2023-01-17 15:19:38 -08:00
George Pollard
5bf0c21b57
Update bumpalo to address RUSTSEC-2022-0078 (#2744) 2023-01-17 19:44:36 +00:00
Teo Voinea
8058497e17
Truncate large webhook events (#2742)
* Add ITrunctable

* Tests

* Pass some more tests

* Cleanup
2023-01-13 14:16:46 -05:00
Cheick Keita
cd659d2f27
Fixed the database query to retrieve the proxy for a region (#2743) 2023-01-12 19:17:15 -08:00
Adam
dc0f7ab561
Release-6.2.0 (#2728)
* Release-6.2.0

Co-authored-by: Noah McGregor Harper <74685766+nharper285@users.noreply.github.com>
6.2.0
2023-01-10 09:55:10 -08:00
Adam
6c3b465dbe
Update azure cli (#2733)
* update azure-cli to v2.43 along with supporting dependencies
2023-01-10 09:19:16 -08:00
Adam
64a6c155e1
Bump Tokio from 1.16.0 to 1.24.1 in /src/agent (#2735)
* Bump tokio from 1.16.0 to 1.24.1 in /src/agent

* update dependent mio 0.8.2 -> 0.8.5
2023-01-09 16:48:35 -08:00
dependabot[bot]
7361e92d6e
Bump tokio from 1.23.0 to 1.24.1 in /src/proxy-manager (#2734)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.0 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.24.1)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 12:11:06 -08:00
Adam
af25752c55
Add arg to deploy.py for custom_domain (#2720) 2023-01-05 10:28:17 -08:00
Joe Ranweiler
b995cc25ad
Add more into-JSON coverage conversions (#2725) 2023-01-04 10:54:20 -08:00
Joe Ranweiler
a8d5ab7c5c
Add binary coverage merging (#2724) 2023-01-04 10:11:40 -08:00
Joe Ranweiler
df40c99cb9
Use a custom Output type when recording coverage (#2723) 2022-12-22 12:01:51 -08:00