Skip to content

[FEATURE] Add Fleet Sharing functionality to the UI #1228

Description

@LucasDamascenoS

Title

Add Fleet Sharing functionality to the UI

Platform

Website - Chrome

Is it related to an issue?

The Termix documentation describes a Fleet Sharing feature that allows a fleet's current hosts to be shared with other users or roles, with configurable permissions and an optional expiration time.

However, I could not find any option in the Termix UI to share a fleet.

This makes it difficult to use fleets as a convenient way to manage access to groups of hosts. For example, an administrator may create a fleet containing all hosts belonging to a particular customer and then want to grant an engineer access to those hosts without having to share each host individually.

I noticed that the backend already appears to implement this functionality through the POST /fleets/{id}/share endpoint, so the functionality seems to exist but is not currently exposed through the UI.

Adding Fleet Sharing to the UI would make the documented feature accessible and would provide a much more convenient way to manage access to multiple hosts at once.

The Solution

Add a Share option to the Fleet UI, allowing users with the appropriate permissions to share an existing fleet with other users or roles.

The sharing dialog could provide:

  • Users/Roles: Select one or more users or roles that should receive access.
  • Permission level: Select the level of access to grant (for example, connect).
  • Expiration: Optionally specify the number of hours for which the access should remain valid.
  • Share action: Submit the sharing request using the existing POST /fleets/{id}/share backend endpoint.
  • Result feedback: Display how many hosts were successfully shared and any hosts that could not be shared.

The UI could expose this through a Share button in the fleet actions menu or alongside the existing fleet management actions.

Since the backend already implements the fleet-sharing logic, this feature would primarily involve exposing the existing functionality through the frontend and providing an appropriate user interface.

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions