HomeDevCentral

Serve ccache metrics and other utilities through api-exec

Description

Serve ccache metrics and other utilities through api-exec

Summary:
D3492 has introduced metrics for ccache as a command line utility.

That would have been enough in the 90s where cgi-bin was a reality,
but nowadays we don't even deploy Apache anymore.

This change solves this issue through api-exec, a tiny Flask
application to provide a request <> command gateway.

To reduce security issues, the gateway DOES NOT try to inject
URL parameters as shell arguments. It runs known commands and
arguments without any customization in the URL.

Ref T2039

Test Plan:
Deployed on WindRiver.

Metrics for ccache available at http://172.27.27.35:2337/metrics/ccache

Reviewers: DorianWinty

Reviewed By: DorianWinty

Maniphest Tasks: T2039

Differential Revision: https://devcentral.nasqueron.org/D3494

Details

Provenance
derecksonAuthored on Oct 7 2024, 00:11
derecksonPushed on Oct 26 2024, 14:31
Reviewer
DorianWinty
Differential Revision
D3494: Serve ccache metrics and other utilities through api-exec
Parents
rOPSc56da24dc9e0: Export metrics for ccache
Branches
Unknown
Tags
Unknown
Tasks
T2039: Automate Poudriere deployment