Commit Graph

34 Commits

Author SHA1 Message Date
0b40abd0ef address clippy warnings from 0.1.54 (#1118) 2021-08-02 12:05:27 -04:00
3be29cbfe9 update 3rd-party rust prereqs (#1116) 2021-08-02 12:04:21 -04:00
0bb75344e3 update 3rd-party rust dependencies (#1052) 2021-07-08 11:25:15 -04:00
aa4ed2893e update 3rd-party Rust dependencies (#1040) 2021-07-06 11:57:01 -04:00
97cba8eda1 update third-party Rust dependencies (#1009) 2021-06-22 11:51:38 -04:00
f450e937a8 update rust dependencies (#1004) 2021-06-18 12:58:13 -04:00
f878064c8f update rust dependencies (#942) 2021-06-01 13:23:04 -04:00
2f81c44f01 Refactoring proxy lifetime to only shutdown when proxy is out-of-date. (#839)
## Summary of the Pull Request

_What is this about?_
We'd like to refactor the proxy lifecycle to only delete when the proxy is out-of-date - i.e. when the proxy is older than 7 days or a mismatched version. I've changed two files, proxy.py and timer_daily\init.py to check for the version and timestamp before stopping a live proxy. 

## PR Checklist
* [ ] Applies to work item: #xxx
* [ ] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/onefuzz) and sign the CLI.
* [ ] Tests added/passed
* [ ] Requires documentation to be updated
* [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

## Info on Pull Request

_What does this include?_
Changes to two files: 
proxy.py: 
- get_or_create() edited to check if timestamp is >7 days.
- Created is_outdated() to check version and timestamp for out-of-date proxy. 
timer_daily/init.py
- Proxy check now includes is_outdated() before determining if a proxy should be shutdown. 

## Validation Steps Performed
Deploying test instance to determine if proxy lives past a single day.
2021-05-20 14:33:29 +00:00
372c194f7a address clippy issues in latest rust release (#884) 2021-05-13 14:25:09 -04:00
e759133287 update third-party rust libraries (#829) 2021-04-23 10:04:01 -04:00
954cdac5ec update multiple rust dependencies (#826) 2021-04-22 10:08:45 -04:00
e413aec03d Upgrade to tokio 1.5.0 (#800)
Upgrade to tokio 1.5.0
replaced tokio::sync::mpsc:: with [flume ](https://crates.io/crates/flume) because try_recv was removed
2021-04-14 10:07:28 +00:00
e21eafd135 clarify telemetry key names at the service level (#769) 2021-04-05 15:23:03 -04:00
dc9b6fa1b0 address telemetry log message locality (#736) 2021-03-26 18:45:36 -04:00
16d3f3cf10 show the full error on proxy loop failure (#702) 2021-03-22 19:55:28 +00:00
6b9ee20364 simplify config update notification (#683) 2021-03-18 20:26:30 -04:00
4b07fdc455 local_run refactoring (#508)
## Summary of the Pull Request

This is a refactoring of the local debugging.
- The input queue as been abstracted and can now be locally 
- The SyncDir can now sync a local directory
- Added the ability to monitor a local directory with a queue

## Reviewers Notes
The most import part of the PR are 
- The queue abstraction and implementations 
    - src/agent/storage-queue/src/azure_queue.rs
    - src/agent/storage-queue/src/local_queue.rs
    - src/agent/storage-queue/src/lib.rs
- Changes to support local files in 
    - src/agent/onefuzz/src/syncdir.rs
- Example of how those abstractions are used to link task together
    - src/agent/onefuzz-agent/src/local/libfuzzer_fuzz.rs
    - src/agent/onefuzz-agent/src/local/common.rs

## Validation Steps Performed

_How does someone test & validate?_
2021-03-17 19:32:45 +00:00
d4cedabdf8 update 3rd party rust dependencies (#624) 2021-03-02 11:41:30 -05:00
6a049db3a3 Renames application insights keys to be more clear (#587)
* renames `telemetry_key` to `microsoft_telemetry_key`
* renames `instrumentation_key` to `instance_telemetry_key`
* renames `can_share` to `can_share_with_microsoft`
* renames the `applicationinsights-rs` instances to `internal` and `microsoft` respective of the keys used during construction.

This clarifies the underlying use of Application Insights keys and uses struct tuple to ensure the keys are used correctly via rust's type checker.
2021-02-26 17:04:49 +00:00
e9b67952e3 update 3rd-party rust dependencies (#548) 2021-02-16 11:11:20 -05:00
5114332ea0 clarify proxy log messages (#520) 2021-02-08 17:39:26 -05:00
19655b50ae update rust prereqs (#517) 2021-02-08 12:17:25 -05:00
c5bb0f0588 Update Proxy heartbeat & logging (#502) 2021-02-04 15:38:17 -05:00
ce32981b1b address clippy issues in proxy-manager (#410) 2021-01-04 22:33:42 +00:00
e222b01003 update rust prereqs (#396) 2020-12-16 07:38:37 -05:00
69fc9f508b fix clippy issue (#367) 2020-12-04 15:04:29 -05:00
fc34725428 update rust prereqs (#357) 2020-12-01 17:22:32 -05:00
64bd389eb7 Declarative templates (#266) 2020-11-17 16:00:09 -05:00
2d5cda79b3 fix breaking change in cargo-audit (#242) 2020-11-02 11:18:35 -05:00
db8534109f Resilient connection (#153) 2020-10-28 10:51:18 -04:00
307b5ebd5f update prereq crates (#178) 2020-10-19 19:48:05 -04:00
d2ee7e5e7d make version.localchanges match API logic (#62) 2020-10-01 11:28:58 -04:00
24f43478dd set more detailed version information during builds (#58) 2020-09-30 18:54:25 -04:00
d3a0b292e6 initial public release 2020-09-18 12:21:04 -04:00