Skip to main content

Support Strict Read-Only Operation Mode on Spacelift/Spacectl MCP

Support read-only operation mode in order to support strict safety/security boundaries around the use of the Spacelift MCP.

Workaround
Problem
Status: ⬆️ Gathering votes3 comments

Log in to comment and vote

Comments3

  • Purple Cookie

    •

    Jun 9

    I second this request.

    Possible good solutions are:

    1. When authenticating with spacectl (`spacectl profile login`) a UI is being presented, allowing to set pre-defined roles, in the same UI it is possible to select the permission set/role/boundaries for the token

    2. Allow passing role in the config.yaml/spacectl command line

    3. Allow setting up personal token with permissions

  • Red Glacier

    •

    May 6

    It is also worth clarifying that another problem with the Workaround is that the Spacectl documentation states the order of authentication method selection is:

    • Spacelift API tokens

    • GitHub tokens

    • Spacelift API keys

    Which means that where a users default profile is using any Token based authentication method the API Key environment variables would be ignored.

    • Natalia Gazda

      Team•

      May 6

      Hey Dale!

      Thank you for the detailed request. That makes a lot of sense and I’m taking it straight to the team. I will keep you posted once we have a timeline :)