Task Type: upsertProject

A policy call is made for this type anytime a user attmpts to create a new project or edit an existing one.
  • Path: tasks
  • Method: Post
  • Package: spinnaker.http.authz

Example Payload

Click to expand
{
  "input": {
    "body": {
      "application": "spinnaker",
      "description": "Create project: testProjectName",
      "job": [
        {
          "project": {
            "config": {
              "applications": [
                "hostname"
              ],
              "clusters": [
                {
                  "account": "spinnaker",
                  "detail": "*",
                  "stack": "*"
                }
              ],
              "pipelineConfigs": [
                {
                  "application": "hostname",
                  "pipelineConfigId": "7db1e350-dedb-4dc1-9976-e71f97b5f132"
                }
              ]
            },
            "email": "myUser@company.com",
            "name": "testProjectName"
          },
          "type": "upsertProject",
          "user": "myUserName"
        }
      ],
      "project": "testProjectName"
    },
    "method": "POST",
    "path": [
      "tasks"
    ],
    "user": {
      "isAdmin": false,
      "roles": [],
      "username": "myUserName"
    }
  }
}

Example Policy

Keys

KeyTypeDescription
input.body.applicationstring
input.body.descriptionstring
input.body.job[].project.config.applications[]string
input.body.job[].project.config.clusters[].accountstring
input.body.job[].project.config.clusters[].detailstring
input.body.job[].project.config.clusters[].stackstring
input.body.job[].project.config.pipelineConfigs[].applicationstring
input.body.job[].project.config.pipelineConfigs[].pipelineConfigIdstring
input.body.job[].project.emailstring
input.body.job[].project.namestring
input.body.job[].typestring
input.body.job[].userstring
input.body.projectstring
input.methodstring
input.path[]string
input.user.isAdminboolean
input.user.usernamestring
input.body.job[].project.config.clusters[].applications
input.body.job[].project.createTsnumber
input.body.job[].project.idstring
input.body.job[].project.lastModifiedBystring
input.body.job[].project.updateTsnumber

Last modified August 18, 2023: (02b163b7)