Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

added CredentialProvider #308

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

Open
kratkyzobak wants to merge 25 commits into nette:master
base: master
Choose a base branch
Loading
from kratkyzobak:credential-provider

Conversation

@kratkyzobak
Copy link

@kratkyzobak kratkyzobak commented Jun 14, 2024

Adds support for dynamic passwords in connection level. Dynamic passwords are supported in various Cloud SQL solutions (Google Cloud SQL, Azure Database For MySQL etc). Usually works as OIDC tokens, which are considered more secure since their short time expiration. "Negative" consequence of short time expiration are lazy instances with statically set password in long running jobs. Password can expire before connection is initialized.

We used "hack" to change password by reflection, but since 3.2.2 is password readonly property, there is no other "simple" solution.
Other solutions mentioned in issue 229 are hard to write in legacy code. This PR uses non-BC way to improve security (by removing static passwords) for legacy codes with simple solution.

PR does not anyhow propose, how should anyone obtain token as it is highly dependent on environment. So password now can be either string (as usuall) or Nette\Database\CredentialProvider interface.

dg added 24 commits May 10, 2024 18:22
@kratkyzobak kratkyzobak force-pushed the credential-provider branch 4 times, most recently from 5dad961 to 2fc38e1 Compare June 14, 2024 07:43
@dg dg force-pushed the master branch 14 times, most recently from cdb8832 to a1798c0 Compare September 6, 2024 15:11
@dg dg force-pushed the master branch 2 times, most recently from 1769a67 to b02f117 Compare January 9, 2025 22:12
@dg dg force-pushed the master branch 2 times, most recently from 2d78899 to 2f04c73 Compare June 5, 2025 23:26
@dg dg force-pushed the master branch 2 times, most recently from e8459f8 to 23617a8 Compare June 19, 2025 17:07
@dg dg force-pushed the master branch 5 times, most recently from 2da238e to 038bab3 Compare December 29, 2025 00:26
@dg dg force-pushed the master branch 2 times, most recently from d3018bd to 9dc391a Compare January 13, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /