Skip to content

Commit

Permalink
hide ps aux command
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartz committed Jul 10, 2024
1 parent 17ed465 commit 7568caf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src-docs/runner_manager.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Construct RunnerManager object for creating and managing runners.

---

<a href="../src/utilities.py#L790"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/utilities.py#L792"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `build_runner_image`

Expand Down Expand Up @@ -87,7 +87,7 @@ Check if runner binary exists.

---

<a href="../src/runner_manager.py#L601"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L603"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `flush`

Expand Down Expand Up @@ -164,7 +164,7 @@ The runner binary URL changes when a new version is available.

---

<a href="../src/runner_manager.py#L782"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L784"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `has_runner_image`

Expand All @@ -181,7 +181,7 @@ Check if the runner image exists.

---

<a href="../src/runner_manager.py#L519"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L521"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `reconcile`

Expand All @@ -205,7 +205,7 @@ Bring runners in line with target.

---

<a href="../src/runner_manager.py#L805"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L807"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `schedule_build_runner_image`

Expand Down
4 changes: 3 additions & 1 deletion src/runner_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ def _get_runner_health_states(self) -> RunnerByHealth:
unhealthy = []

for runner in local_runners:
_, stdout, _ = runner.execute(["ps", "aux"])
# we need to hide the command to prevent sensitive information on the workload
# from being exposed.
_, stdout, _ = runner.execute(["ps", "aux"], hide_cmd=True)
if f"/bin/bash {Runner.runner_script}" in stdout.read().decode("utf-8"):
healthy.append(runner.name)
else:
Expand Down

0 comments on commit 7568caf

Please sign in to comment.