Skip to content

Conversation

@gmemstr
Copy link
Contributor

@gmemstr gmemstr commented Jul 6, 2024

*nix systems can't have periods in their environment variable names, so we instead look for HIBERNATE prefixes, then lowercase and translate underscores to periods. This will allow for better compatibility with *nix systems when configuring likely sensitive hibernate values.

Copy link
Member

@FireMasterK FireMasterK left a comment

Choose a reason for hiding this comment

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

How would this work for configuration properties that have a _ such as hibernate.connection.handling_mode for example?

@gmemstr
Copy link
Contributor Author

gmemstr commented Jul 11, 2024

@FireMasterK Given that sort of variable isn't sensitive, I don't image many people would use an environment variable to set it. However, we could swap out a single underscore for a double underscore in the env variable names.

@FireMasterK
Copy link
Member

@FireMasterK Given that sort of variable isn't sensitive, I don't image many people would use an environment variable to set it. However, we could swap out a single underscore for a double underscore in the env variable names.

Yes I think that would be a reasonable workaround!

@gmemstr gmemstr requested a review from FireMasterK July 12, 2024 09:28
@gmemstr
Copy link
Contributor Author

gmemstr commented Mar 29, 2025

@FireMasterK Could I get a review on this?

*nix systems can't have periods in their environment variable names, so we instead look for `HIBERNATE` prefixes, then lowercase and translate underscores to periods. This will allow for better compatibility with *nix systems when configuring likely sensitive hibernate values.
auto-merge was automatically disabled September 27, 2025 10:59

Head branch was pushed to by a user without write access

@gmemstr
Copy link
Contributor Author

gmemstr commented Sep 27, 2025

Rebased onto master, should be all good now?

@FireMasterK FireMasterK merged commit c5921f6 into TeamPiped:master Sep 27, 2025
2 of 14 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.

2 participants