1662 Commits

Author SHA1 Message Date
29a20634ff rejig 2022-11-29 19:46:35 +00:00
d1d381707c Doh 2022-11-28 08:00:32 +00:00
a3f3477d38 Handle 404 2022-11-28 07:15:59 +00:00
dd5cc769fb Fix 2022-11-28 02:24:41 +00:00
ca8b725c48 Fix deploy template 2022-11-28 01:12:28 +00:00
f72d1ce040 Merge remote-tracking branch 'origin/main' into storage-rework 2022-11-28 00:49:32 +00:00
961bee4b47 format 2022-11-28 00:45:24 +00:00
6507871774 Do it for nodes as well 2022-11-28 00:44:33 +00:00
b3b65b5ea6 Check before starting instance 2022-11-28 00:30:40 +00:00
09f0be3632 Check if orchestration exists first 2022-11-27 23:33:19 +00:00
95abeeacef Improve logging around notification failures (#2653)
Co-authored-by: Teo Voinea <Teodor.Voinea@microsoft.com>
2022-11-25 09:04:42 -05:00
e0634a3365 Deploy update (#2650)
* Remove Python App Function Deployment Code and  Code.

* Updating yml and zip names.

* Fixing ci.yml.

* Typo.

* Format

* Trying to remove python service.

* Updating directories.

* Removing flag.

* Format.

* Fixng api-service-net ref.

* Re-add requirement.

* Fixing refs in bicep.

* Specifying version.

* Removing dotnet refs in integration tests.

* Updating role assignment naming convention.

* Adding ignore.

* Update src/deny.toml

Co-authored-by: George Pollard <porges@porg.es>

* Update version.

* Removing onefuzztypes dependency.

* Switch app service plan to windows.

* Update test version.

* Changing version.

* Returning version.

* Trying to add onefuzz types back.

* Force pipenv version.

* Fix.

* Syntax.

* Renaming.

* Trying different version.

* Removing build step.

* Fixing bicep parameter.

* Retrying run with older version.

* Trying pipenv with another version.

* Forcing pipenv version in tox.

* Adding pipenv fix and updating version.

Co-authored-by: George Pollard <porges@porg.es>
2022-11-23 17:48:30 -08:00
6c981f613d Making machine identity a parameter of the agent config (#2649)
* making machine identity a parameter

* build fix

* build fix

* format
2022-11-23 16:32:19 -08:00
ae827b2dda Fix invocation of functionapp in the deployment script (#2645) 2022-11-21 21:13:53 -08:00
abb7b4781e Add gitignore for C# artifacts (#2640) 2022-11-21 21:35:43 +00:00
1755683be4 More default devcontainer settings (#2641) 2022-11-21 21:06:44 +00:00
06849b29f0 Bump azure_* crates (#2637) 2022-11-21 20:38:44 +00:00
04d39a3f28 Setup cargo-deny (#2638)
Using [`cargo-deny`](https://embarkstudios.github.io/cargo-deny/) to ensure that disallowed dependencies removed in #2423 do not accidentally make their way back in.

`cargo-deny` subsumes the `cargo-audit` functionality, so switch to the `cargo-deny` version.

Setting this up required explicitly stating the license which was not in some of our `Cargo.toml` files.
2022-11-21 08:23:20 -05:00
8aac68923a Use point query 2022-11-18 01:35:41 +00:00
f0516ca24c Add test impl 2022-11-18 01:12:35 +00:00
f45682dac0 Setup cosmos client 2022-11-18 01:12:34 +00:00
c7e3d63c25 Testing 2022-11-18 01:12:34 +00:00
894dcc62be Update to .NET 7 (#2615)
Update service code to .NET 7.0.

Also update the version installed onto agent nodes via setup scripts to 7.0.100.
2022-11-18 10:39:45 +13:00
1f46388e6d Bug fixes related to the unmanaged nodes (#2632)
* bug fixes related to the unmanaged nodes
- fix the token request in the client
- adding a is_unmnaged field to the agentConfig
- fix typo in the appId claim type
- fix typo in the UnmanagedNode claim value
- fix query PoolOperation.GetByClientId

* remove unused import

* build fix

* change unmanaged  field to managed

* Apply suggestions from code review

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

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-11-17 20:51:52 +00:00
5bc3dac1ae Fix clippy failure (#2634) 2022-11-17 20:38:14 +00:00
21205198c9 Update OMI to 1.6.10.2 on Ubuntu VMs (#2629)
* updating OMI version
2022-11-16 15:37:31 -08:00
40c85b8c16 Make the --container_type parameter required (#2631)
* Make --container_type a required parameter (#2574)

* Fix targetUrl so it no longer contains full exe path

* Make --container_type a required parameter (#2574)
2022-11-16 11:38:42 -08:00
2a3f1e7241 Fix a logic bug in the notification hook (#2627)
* Fix a logic bug in the notification hook

* Format
2022-11-15 08:41:52 -08:00
07befc58b2 Fix SignalR client code not reading responses correctly (#2626)
The `Response` object must have the JSON loaded via `json()` (`backend.request` was updated but this callsite was missed).

Also, import the `Onefuzz` type so that this is type-checked to avoid the same problem in future.
2022-11-15 02:16:06 +00:00
e546f78cce Release 5.20.0 (#2614) 2022-11-15 00:44:01 +00:00
b41e61a784 Fix targetUrl so it no longer contains full exe path (#2625) 2022-11-14 14:13:05 -08:00
c5840eb69b Use broker or browser login instead of device flow (#2612)
Update CLI to attempt broker or browser-based authentication first; if you `Ctrl-C` to cancel it, you can fall back to device code login.

Also updated the MSAL dependency to latest version and pass `allow_broker=True` which will allow the use of Web Account Manager (WAM), if it is available.

Using browser auth requires the `http://localhost` redirect URI, and using the broker requires a special custom URI including the app ID (see code).
2022-11-14 20:13:36 +00:00
0caac2fc00 Only add "re-opened" comment if bug was reopened (#2623) 2022-11-15 08:51:59 +13:00
b4750ae52c Make Proxy TelemetryKey optional (#2619) 2022-11-14 03:18:36 +00:00
0b19af3381 Switch to quick-xml (#2611) 2022-11-14 12:45:05 +13:00
f5851d0764 Update the Authorization layer to allow unmanaged nodes (#2584)
* create the config_path folder if it does not exist

* Update the Authorization layer to allow unmanaged nodes

* check the role assignment

* fix merge

* build fix

* fix typo

* formatting

* formatting
2022-11-10 17:58:20 +00:00
ff85b808e9 Adding an optional retry_limit to onefuzz debug connect (#2609)
* adding an optional retry_limit to onefuzz debug connect

* make none the default retry limit

* fix logic

* fix default
2022-11-10 01:51:35 +00:00
c50a9daf20 Bump cpufeatures to 0.2.5 (#2608) 2022-11-09 20:33:20 +00:00
7b9fbae38d Ensure wheel updated when pipenv check invoked (#2593) 2022-11-09 10:19:36 -08:00
09e564f6fd Catching Model Exceptions During VMSS Update (#2607)
* Catching Update VMSS Exceptions.

* Adding additional exception handling.

* Updating wording.

* Adding handler for model error when catching scale protection exceptions.

* Fixing error messaging.
2022-11-08 15:20:49 -08:00
f20c482052 Adding Additional Information to Decommission Functionality. (#2605)
* Adding Additional Information to Decommission Function.

* Separating instance and machine ids
2022-11-08 10:04:18 -08:00
2a7a072333 Fixing status top bug (#2604) 2022-11-08 01:03:55 +00:00
7e9ff9cd11 Add endpoint to download the agent binaries (#2600)
* Add endpoint to download the agent binaries

* build fix

* fix types

* adding test

* format

* remove comments

* address pr comment

* build fix
2022-11-07 15:28:22 -08:00
f7dd265fdd Release-5.19.0 (#2599)
* Release-5.19.0

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2022-11-07 15:09:01 -08:00
1c23b87f83 Release 5.18.0 (#2582)
* Release 5.18.0

* Combining PRs.

* Typo.

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Updating changelog.

* Adding fix PR.

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2022-11-03 10:09:18 -07:00
fb8a4e36f1 Add a registration command to allow an application registration to connect to the Onefuzz (#2571) 2022-11-03 16:41:38 +00:00
6cc7caf67b Handle duplicate containers across accounts (#2596) 2022-11-03 01:21:35 +00:00
f1f6400dad Improve AppInsights setup (#2597)
Switch to using the package provided by Azure Functions to set up Application Insights.

Using the provided setup method `AddApplicationInsightsTelemetry` will configure the dependency collector by default as well as set up some other things that we haven’t done manually, including application version, which would be very useful.

This also means that `operation_Id` is populated more consistently which permits joining `traces` or `dependencies` on the `requests` table.

This also means that the end-to-end data in AI is now correct, so the chart works:
![MicrosoftTeams-image](https://user-images.githubusercontent.com/12575/199629195-f442c9b4-2bb3-4f78-a532-3936cf6bf74f.png)
2022-11-03 01:09:51 +00:00
22cb201805 Fix the notification get request (#2591)
* Fix the notification get request

* remove unused import
2022-11-02 17:56:50 -07:00
e6dd1ac35b Only ignore known issue (#2595) 2022-11-02 20:27:45 +00:00