This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6df8d4
commit c48f21d
Showing
6 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -40,13 +40,32 @@ Configuration maintained in a simple `config.ini` file consisting of the server_ | |
[agent] | ||
server_url=http://192.168.1.197 # Note: Do NOT include a trailing slash on the server_url | ||
client_id=9ab55261-bfb7-4bb3-ad29-a6dbdbf8a5af # Device Code Grant client_id provided by the server | ||
auth=True # To disable auth when not using with RunbookSolutions. | ||
``` | ||
|
||
### Creating a Keytab File | ||
## Expected Server Responses | ||
Due to the Agent's nature; it can easily be used by others outside of RunbookSolutions. | ||
|
||
``` | ||
To implement a backend for this agent you will need to provided the following endpoints. | ||
|
||
`GET /api/agent` for the agent to load information about itself. This endpoint also provides the agent with a list of PLUGIN_ID's that it needs to load. | ||
|
||
`GET /api/agent/plugin/{PLUGIN_ID}` for the agent to download plugins. This endpoint also provides details about commands the plugin provides. | ||
|
||
`GET /api/agent/tasks` for the agent to load tasks that it needs to run. Tasks include scheduled and one-off tasks to run; and will always present tasks until they are removed from the backend. This allows for the agent to restart without skipping task execution. | ||
|
||
Additional details can be found on the [Expected Server Responses](/docs/Responses.md) page. | ||
|
||
## Creating a Keytab File | ||
|
||
Some plugins may require authentication against your windows domain. | ||
|
||
The simplest way to acomplish this is by using the [Docker Kerberos Keytab Generator](https://github.com/simplesteph/docker-kerberos-get-keytab): | ||
|
||
```sh | ||
cd agent | ||
docker run -it --rm \ | ||
-v $(pwd):/output \ | ||
-v $(pwd)/kerberos:/output \ | ||
-e PRINCIPAL=<[email protected]> \ | ||
simplesteph/docker-kerberos-get-keytab | ||
``` |
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,3 +1,7 @@ | ||
[agent] | ||
server_url=http://192.168.1.197 # Note: Do NOT include a trailing slash on the server_url | ||
client_id=9ab55261-bfb7-4bb3-ad29-a6dbdbf8a5af # Device Code Grant client_id provided by the server | ||
# Note: Do NOT include a trailing slash on the server_url | ||
server_url=http://192.168.1.197 | ||
# Device Code Grant client_id provided by the server | ||
client_id=9ab55261-bfb7-4bb3-ad29-a6dbdbf8a5af | ||
# If we are required to preform Device Code Authentication | ||
auth=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
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
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