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

CLI Login and Set Process Does Not Work Per Documentation #1802

Open
seancallaway opened this issue May 8, 2024 · 3 comments
Open

CLI Login and Set Process Does Not Work Per Documentation #1802

seancallaway opened this issue May 8, 2024 · 3 comments

Comments

@seancallaway
Copy link

seancallaway commented May 8, 2024

Describe the bug

After logging in, running infisical secrets set generates a "You must be logged in to run this command. To login, run [infisical login]" error, though infisical secrets get (with a projectId) will return data.

To Reproduce

Steps to reproduce the behavior:

  1. Set INFISICAL_API_URL (export INFISICAL_API_URL=https://<REDACTED_FQDN>/api)
  2. Login, setting token (export INFISICAL_TOKEN=$(infisical login --method=universal-auth --client-id=<REDACTED_CLIENT_ID> --client-secret=<REDACTED_CLIENT_SECRET> --silent --plain)
  3. Try to set a secret (infisical secrets set --env=staging TEST_SECRET=test)
  4. Get error message (You must be logged in to run this command. To login, run [infisical login]
  5. Try to get a secret (infisical secrets --projectId <REDACTED_PROJECT_ID> --env=staging get TEST_SECRET)
  6. Get table containing "not found" for the SECRET VALUE (expected, as it is unset). I am able to get a secret set via the web UI for the dev environment.

Expected behavior

I'd expect step 3 to succeed, setting the secret properly, based on the documentation.

Platform you are having the issue on:

CLI

  • MacOS: infisical version 0.22.2
  • Alpine (CI container): infisical version 0.22.2

Self-Hosted Docker-Compose Setup
Installed today using :latest.

Additional context

Tested from my workstation and our GitLab CI/CD pipeline.

The machine identity in question has the following permission in the project:

image

@seancallaway
Copy link
Author

Team has indicated that there is, in fact, an issue with Infisical via Slack.

@seancallaway
Copy link
Author

Turns out that this just isn't a supported operation. Documentation should be fixed to indicate this or, better yet, implement this.

@akhilmhdh
Copy link
Member

Hey @seancallaway . This should be resolved by this week or coming week. Our team is prioritizing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants