Skip to content

Conversation

@lkstrp
Copy link
Member

@lkstrp lkstrp commented Jan 19, 2026

Changes proposed in this Pull Request

The snakemake config is written back to n.meta, therefore any tokens which are set in the config can be leaked with the network. The PR removes the existing CORINE token config and adds a check to disallow passing Gurobi WLS tokens via the solver_options config. Instead environment variables should be used, which are now also read from .env.

Ref PyPSA/PyPSA#1531, which allows passing gurobi secrets now also via .env file.

@lkstrp lkstrp requested review from coroa and euronion January 19, 2026 17:12
Copy link
Member

@coroa coroa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good. Will test tomorrow how the validation works!

@coroa
Copy link
Member

coroa commented Jan 19, 2026

We also need to add .env to .gitignore

Co-authored-by: Jonas Hörsch <coroa@posteo.de>
@lkstrp
Copy link
Member Author

lkstrp commented Jan 19, 2026

We also need to add .env to .gitignore

Is already

@coroa
Copy link
Member

coroa commented Jan 20, 2026

Cool, working as expected

@euronion
Copy link
Contributor

Cool, thanks!

@lkstrp lkstrp enabled auto-merge (squash) January 21, 2026 19:05
@lkstrp lkstrp merged commit 491ff9f into PyPSA:master Jan 21, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants