Skip to content

Update container MOTD to include port forwards and services via API #114

@runleveldev

Description

@runleveldev

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/motd or /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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions