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

Retrieving a secret with a specific version always returns the latest one #3263

Open
mateuszjenek opened this issue Mar 17, 2025 · 1 comment

Comments

@mateuszjenek
Copy link

mateuszjenek commented Mar 17, 2025

Describe the bug

The API described in the docs: Secret Retrieve ignores the version parameter.

To Reproduce

  1. Create a new project.
  2. Create a new secret in that project with an initial value.
  3. Edit the created secret by updating it with a new value.
  4. Make a request to retrieve the secret:
curl --location 'https://us.infisical.com/api/v3/secrets/raw/{secretName}?environment=dev&workspaceId={projectId}&version=1' --header 'Authorization: ••••••'
  1. The response contains the secret in version 2 instead of version 1.

Expected behavior

The response should contain the secret in version 1.

Screenshots

Image

Platform you are having the issue on:

Additional context

@mateuszjenek
Copy link
Author

@dangtony98 @maidul98

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

1 participant