Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: allow to use the username from UI as value of environment variables #2524

Open
jguay opened this issue Nov 6, 2024 · 0 comments
Open
Labels

Comments

@jguay
Copy link

jguay commented Nov 6, 2024

Related to

Web-Frontend (what users interact with), Ansible (task execution), Configuration

Impact

nice to have

Missing Feature

User john runs a terraform task that creates a VM and VM name should include name john-, we can use :

  • Environment with variable called TF_VAR_semaphoreuser - var.semaphoreuser is accessible in terraform automatically - but environment does not belong to John it belongs to the project so this is not usable at scale
  • Survey variable - every task need to have survey variable semaphoreuser asking user to fill its own username - there is nothing preventing to give any other value. Also it is tedious to ask semaphore user name at every task execution

Implementation

  • ability for environment and have value set by UI
  • example environment I need the value is username from GET /api/user

If the value of the variable is not resolved when running a task then - the variable should not exist at all (default empty value is not wanted - task failure is expected if variable does not resolve to username)

Design

No response

@jguay jguay added the feature label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant