-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up files and update version tracker
- Loading branch information
Showing
12 changed files
with
167 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
# rewst_remote_agent | ||
|
||
[![Unit Tests](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/unit-tests.yml) [![Code Coverage](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/coverage.yml/badge.svg)](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/coverage.yml) | ||
|
||
An RMM-agnostic remote agent using the Azure IoT Hub | ||
|
||
Goals: | ||
* Run as an service on Windows (Linux / Mac coming later!) | ||
* Provisioning (Windows): | ||
* `iwr ((irm {{ github_release_url }}).assets|?{$_.name -eq "rewst_agent_config.win.exe"}|select -exp browser_download_url) -OutFile rewst_agent_config.win.exe` | ||
* Downloads latest release of configuration Utility from GitHub | ||
* `.\rewst_agent_config.win.exe` `--config-url` _{ Your Trigger URL }_ `--config-secret` _{ Your global config secret }_ `--org-id` _{ customer organization id }_ | ||
* Initiates configuration and installation of the agent | ||
* `config-url`: The configured workflow trigger from the Crate installation | ||
* `config-secret`: Stored in an Org variable under your company. If it changes, existing installations will still work, but new commands to install it will need the new secret. | ||
* `org-id`: The organization's (your customer) Rewst Org ID. | ||
* Operation: | ||
* Stays resident and connected to the IoT Hub | ||
* Rewst workflows can send an object to IoT hub that contains a list of `commands` | ||
* When the list arrives, the script will spawn shell process and process these commands sequentially within the _same_ environment | ||
* Each command will have its output collected and returned back in a list of `command_results` that is in the same index as the command from `commands` | ||
* Handle disconnects gracefully and restart | ||
# Agent Smith | ||
|
||
[![Unit Tests](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/unit-tests.yml) | ||
[![Code Coverage](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/coverage.yml/badge.svg)](https://github.com/RewstApp/rewst_remote_agent/actions/workflows/coverage.yml) | ||
|
||
Rewst's lean, open-source command executor that fits right into your Rewst workflows. | ||
|
||
## Documentation | ||
|
||
See [Community Page](https://docs.rewst.help/community-corner/agent-smith) for full details. | ||
|
||
## Contributing | ||
|
||
Contributions are always welcome. Please submit a PR! | ||
|
||
## License | ||
|
||
Agent Smith is licensed under `GNU GENERAL PUBLIC LICENSE`. See license file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
__version__ = '0.6.101' | ||
""" Version tracking module """ | ||
|
||
import subprocess | ||
|
||
def get_poetry_version() -> str|None: | ||
""" | ||
Get poetry version from poetry file. | ||
Returns: | ||
str|None: poetry version string if successful, otherwise None | ||
""" | ||
try: | ||
version = subprocess.check_output(["poetry", "version", "--short"], text=True).strip() | ||
return version | ||
except subprocess.CalledProcessError: | ||
return None | ||
|
||
__version__ = get_poetry_version() |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[virtualenvs] | ||
in-project = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[project] | ||
name = "rewst_remote_agent" | ||
version = "0.6.101" | ||
version = "0.6.102" | ||
description = "An RMM-agnostic remote agent using the Azure IoT Hub" | ||
authors = [ | ||
{name = "tim-at-rewst", email = "[email protected]"} | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.12,<4" | ||
requires-python = ">=3.12,<3.14" | ||
dependencies = [ | ||
"psutil (>=6.1.1,<7.0.0)", | ||
"platformdirs (>=4.3.6,<5.0.0)", | ||
|
@@ -26,4 +26,4 @@ pytest-asyncio = "^0.25.2" | |
pytest-mock = "^3.14.0" | ||
coverage-lcov = "^0.3.0" | ||
pytest-cov = "^6.0.0" | ||
|
||
pyinstaller = "^6.11.1" |
Binary file not shown.
This file was deleted.
Oops, something went wrong.