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

env from http-client.private.env.json overwritten with values from template-http-client.private.env.json #245

Closed
bohni opened this issue Dec 15, 2023 · 1 comment

Comments

@bohni
Copy link

bohni commented Dec 15, 2023

Hi,

we are using a Maven archetype to generate similar projects.

The archetype creates the file temlate-http-client.private.env.json that contains the keys of the secrets with fake values and is committed to the VCS

{
    "DEV": {
        "secret": "todo"
    }
}

The developer copies the file to http-client.private.env.json and enters the real secrets. This file is ignored by VCS.

When running a request the value from http-client.private.env.json is ignored and the one from the template is used.

image

AnWeber added a commit to AnWeber/httpyac that referenced this issue Dec 18, 2023
@AnWeber
Copy link
Owner

AnWeber commented Dec 18, 2023

I wasn't quite sure exactly what Intellij's logic was here. For this reason, I have accepted all env.json files. But according to the documentation only http-client.env.json and http-client.private.env.json seem to be allowed. I restrict it.

@AnWeber AnWeber closed this as completed Dec 18, 2023
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