-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Overview
Add an API endpoint to provide up-to-date MOTD (Message of the Day) content for containers, including information about their port forwards and active services. The MOTD content should be tailored based on the requester's source IP.
Solution Details
- Implement an API endpoint in the container management service, such as
/containers/:id/motdor/motd. - The endpoint returns dynamically generated MOTD content with:
- Port forwards relevant to the requesting container and IP address
- List of exposed or running services per container
- Any contextual information based on the request source IP
- Add a script to
/etc/update-motd.d/inside containers that pulls the MOTD from the new endpoint and updates the container's MOTD file.
Acceptance Criteria
- API endpoint exists and returns accurate MOTD content for containers and their source IP
/etc/update-motd.d/includes a script to fetch and update MOTD periodically or on demand- Documentation for using the endpoint and integrating with container MOTD
Additional Notes
- The endpoint should be secure and expose no sensitive data
- Consider caching or limiting frequency to avoid excessive API calls
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request