OneFlow user_inputs scopes are not respected

Hello.

I’m trying to create a gitlab-runnerservice and I have an issue with USER_INPUTSscopes.

In the following service, I want ONEAPP_RUNNER_GITLAB_TOKEN to be different per role:

{
  "name": "gitlab-runner-debian-12",
  "deployment": "straight",
  "description": "",
  "roles": [
    {
      "name": "docker",
      "cardinality": 1,
      "min_vms": 0,
      "max_vms": 10,
      "cooldown": 30,
      "elasticity_policies": [],
      "scheduled_policies": [],
      "user_inputs": {
        "ONEAPP_RUNNER_GITLAB_TOKEN": "M|password|Gitlab secret token for the runner||"
      },
      "template_id": 2,
      "type": "vm",
      "template_contents": {
        "NIC": [
          {
            "NAME": "_NIC0",
            "NETWORK_ID": "$Network"
          }
        ],
        "DISK": [
          {
            "IMAGE": "gitlab-runner-debian-12",
            "IMAGE_UNAME": "nebula",
            "SIZE": "51200"
          }
        ],
        "TOKEN": "YES",
        "ONEAPP_RUNNER_EXECUTOR_TYPE": "docker"
      }
    },
    {
      "name": "packer",
      "cardinality": 1,
      "min_vms": 0,
      "max_vms": 10,
      "cooldown": 30,
      "elasticity_policies": [],
      "scheduled_policies": [],
      "user_inputs": {
        "ONEAPP_RUNNER_GITLAB_TOKEN": "M|password|Gitlab secret token for the runner||"
      },
      "template_id": 2,
      "type": "vm",
      "template_contents": {
        "NIC": [
          {
            "NAME": "_NIC0",
            "NETWORK_ID": "$Network"
          }
        ],
        "DISK": [
          {
            "IMAGE": "gitlab-runner-debian-12",
            "IMAGE_UNAME": "nebula",
            "SIZE": "51200"
          }
        ],
        "TOKEN": "YES",
        "ONEAPP_RUNNER_EXECUTOR_TYPE": "packer"
      }
    },
    {
      "name": "shell",
      "cardinality": 1,
      "min_vms": 0,
      "max_vms": 10,
      "cooldown": 30,
      "elasticity_policies": [],
      "scheduled_policies": [],
      "user_inputs": {
        "ONEAPP_RUNNER_GITLAB_TOKEN": "M|password|Gitlab secret token for the runner||"
      },
      "template_id": 2,
      "type": "vm",
      "template_contents": {
        "NIC": [
          {
            "NAME": "_NIC0",
            "NETWORK_ID": "$Network"
          }
        ],
        "DISK": [
          {
            "IMAGE": "gitlab-runner-debian-12",
            "IMAGE_UNAME": "nebula",
            "SIZE": "51200"
          }
        ],
        "TOKEN": "YES",
        "ONEAPP_RUNNER_EXECUTOR_TYPE": "shell"
      }
    }
  ],
  "ready_status_gate": false,
  "automatic_deletion": false,
  "networks": {
    "Network": "M|network|Network to access internet||id:"
  },
  "user_inputs": {
    "ONEAPP_RUNNER_RUNNER_NAME": "O|text|Name of the Runner||",
    "ONEAPP_RUNNER_GITLAB_URL": "M|text|URL of Gitlab||https://gitlab.mim-libre.fr",
    "ONEAPP_RUNNER_EXECUTOR_SHELL": "O|text|Shell to use for \"Shell\" executor||bash",
    "ONEAPP_CACHE_S3_ADDRESS": "O|text|Address of the S3 cache server||",
    "ONEAPP_CACHE_S3_ACCESSKEY": "O|text|Access key for S3||",
    "ONEAPP_CACHE_S3_SECRETKEY": "O|password|Secret key for S3||",
    "ONEAPP_CACHE_S3_BUCKET": "O|text|Bucket name||",
    "ONEAPP_CACHE_S3_INSECURE": "O|boolean|Configure S3 over HTTP without TLS||"
  },
  "registration_time": 1756133788
}

But, it’s actually not the case:

  1. I set ONEAPP_RUNNER_GITLAB_TOKEN for role docker
  2. I switch to role packer and the ONEAPP_RUNNER_GITLAB_TOKEN is filled, I had more text to it
  3. I switch back to docker role and the ONEAPP_RUNNER_GITLAB_TOKEN contains more characters.

For completeness:

It looks like a fireedge issue so I opened a ticket.

1 Like

Hi @DaD

Apologies for the late reply (I was off). Thanks for filling the issue, I’ve already asked for an update to the team.

Cheers!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.