Skip to main content

Ability to enforce approval requirements for admins

We have a global GCP organization policy that is being used to protect access to a sensitive project. (For context, the project contains sensitive employee data, and so there are very few people at the company allowed to view it and the data is rightfully very strongly protected.) The challenge we're having is that we can't move the Terraform directory for the org policy into Spacelift because it would allow too many people to change the permissions and potentially open up access to the sensitive project.

It would be nice if we could move this into Spacelift as currently this policy has to be updated by manually applying Terraform locally, which adds a lot of unnecessary friction when changing this policy, eg the person making the change has to be available and have time to apply the change. For instance, we could add an approval policy to the project so that there's an extra level of review on any applies to the stack managing this policy. The issue is that the current owner of this policy is not willing to move this into Spacelift because our Spacelift admins could (in theory) remove the approval control and make arbitrary changes to the policy.

I am not exactly sure how this should work, but it would generally be nice if Spacelift could support this kind of compliance requirement.

Status: ⚙️ In Progress7 comments

Log in to comment and vote

Comments7

  • Ovidiu Moise

    Team•

    Nov 2

    hey @Evan Strat , I’m not sure I understand the need here. I understand that there is an org-level policy that is currently being managed via Terraform locally because of its sensitivity, and that you’d like to port it to Spacelift. What prevents you from doing that, e.g. bringing it into the root-space where only the Root Admin would have edit rights?

    • Amaranth Dew

      •

      Nov 3

      We have people on our Cloud Operations team who are root admins (at least in part because the policy sample/evaluation feature can’t be used unless you’re a root admin), and right now we decided it’s not worth the trade-off of pulling the standing admin access to support restricting access to sufficiently protect the GCP stack. I think at least one of the more obvious barriers to going this direction is the number of features that still seem to not fully exist within the new permissions ecosystem and can only be granted via space/org-level admin roles

      • Ovidiu Moise

        Team•

        Nov 3

        @Evan Strat sorry, but this is still unclear. I do agree we don’t have yet a full palette of permissions, generally, so that you have a fine control on who can do what yet. But I don’t understand what the Featurebase post here is about. What should the feature you’re mentioning do, more specifically? Thanks!

        • Amaranth Dew

          •

          Nov 3

          I think what we are looking for is a way to harden our account without having to limit the permissions of people who maintain our Spacelift usage too much.

          Which would be possible (if I think about how we model our access to AWS, for instance) with changes on both sides:

          • On our side, we would need to update our space structure and permissions so that our Cloud Ops team can’t touch all spaces, so we can create a cordoned space for the GCP policy project to live in. This basically means not giving anyone access to modify the policies in the root space (or defining a separate set of policies in the restricted space)

          • On the Spacelift side, we would need the permissions structure to allow us to do the above. What I was saying above is that I don’t think we can actually do this right now without removing permissions that we need, like the ability to simulate a policy using a sample, which currently requires Space admin, which we would need to move away from to do this

            • Other permissions managed in this way are things like the org settings / usage pages, I’m pretty sure

            • It’s possible adding deny permissions could also solve this a little more concisely

          I realize this is still somewhat vague and it’s more of a particular solution case than a specific feature request

          We can try implementing this as suggested on our side and raise more specific blockers later, but I’m not sure we’re going to attempt it as it’s very clear that we would have to be very thorough, and even then it may not be enough to demonstrate to the stakeholders that the GCP stack and its configuration can’t be modified without sufficient approvals

          • Ovidiu Moise

            Team•

            Nov 11

            Thanks @Evan Strat for the details, I think I understand the conundrum.

            On one hand you’d like to restrict access to this sensitive stack all the way to Root space Admins (although “someone” still needs to have the keys to the kingdom right? I assume there would be at least one Root space Admin), but on the other you can’t leave your team to work with much lesser permissions because they need things like the Policy Simulator. And, we don’t support “deny” type of permissions.

            1. How many people are we talking about? How many Root space admins and how many lower spaces Admins?

            2. What other features do you sense you are missing, except for the Policy simulator, if you were to assign lower-tier roles to people?

            • Amaranth Dew

              •

              Nov 13

              I think right now we have ~5 root admins. Right now policy simulator is the only thing that’s coming to mind but it’s hard to say for sure

              • Ovidiu Moise

                Team•

                Nov 25

                @Evan Strat we’re working to create an individual permission for the Policy Workbench, that will then unlock this scenario for you. I’ll keep you posted.