Azure / Azure/azure-cli-extensions
[FR] Bastion tunnel inactivity timeout
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### Describe the bug
When running `az network bastion tunnel` in the background (see eg https://github.com/konstruktoid/ansible-bastion-tunnels), the user needs to manually terminate the running threads.
Feature request: Add an inactivit timeout option that will terminate the thread if no data has been sent for X amount of seconds or minutes.
### Related command
`az network bastion tunnel`
### Errors
N/A
### Issue script & Debug output
N/A
### Expected behavior
Threads are terminated after a defined time of inactivity.
### Environment Summary
```
az --version
azure-cli 2.59.0
core 2.59.0
telemetry 1.1.0
Extensions:
bastion 0.3.0
ssh 2.0.3
bastion 0.3.1 (dev) # local code modifications
```
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.