Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support systemd socket activation for soci-snapshotter-grpc #1088

Open
arnaldo2792 opened this issue Feb 27, 2024 · 0 comments · May be fixed by #1378
Open

[FEATURE] Support systemd socket activation for soci-snapshotter-grpc #1088

arnaldo2792 opened this issue Feb 27, 2024 · 0 comments · May be fixed by #1378
Labels
feature New feature or request

Comments

@arnaldo2792
Copy link

Description

I would like to use systemd socket activation with the soci-snapshotter-grpc helper, so that system administrators can decide how they expose this endpoint to services like prometheus

Describe the solution you'd like

I would like soci-snapshotter-grpc to expose a flag or configuration to allow it to use the file descriptors provided by systemd when the soci-snapshotter-grpc service is activated through a socket. For more details refer to system.socket. This feature is already supported by other services like docker, see this file for reference. The docker implementation is a bit overkill for SOCI, so the functionality I would like is:

  • Extend the --address flag to understand the "protocol", e.g.: file://, unix://, fd://, similar to what Docker does
  • Parse the given address, and use that to start the server. Unlike the docker implementation, only one server should be started instead of one per "host" provided.

Describe any alternative solutions/features you've considered

I could use something like socat and redirect traffic with it, however this adds an additional dependency, and that wouldn't be great for container-optimized distributions like Bottlerocket.

Any additional context or information about the feature request

No response

@arnaldo2792 arnaldo2792 added the feature New feature or request label Feb 27, 2024
@Kern-- Kern-- linked a pull request Sep 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant