8000 [DI] Use reproducible entropy to generate env placeholders by nicolas-grekas · Pull Request #34383 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DI] Use reproducible entropy to generate env placeholders #34383

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

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

nicolas-grekas
Copy link
Member
@nicolas-grekas nicolas-grekas commented Nov 14, 2019
Q A
Branch? 4.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Bound arguments typically reference env vars, which are turned into random placeholders right now.
When this randomness is used in a hash to generate the internal name of a service locator, the hash is totally random.

This breaks reproducible builds.

This PR replaces true randomness with reproducible entropy.

@fabpot
Copy link
Member
fabpot commented Nov 15, 2019

Thank you @nicolas-grekas.

fabpot added a commit that referenced this pull request Nov 15, 2019
… (nicolas-grekas)

This PR was merged into the 4.3 branch.

Discussion
----------

[DI] Use reproducible entropy to generate env placeholders

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Bound arguments typically reference env vars, which are turned into random placeholders right now.
When this randomness is used in a hash to generate the internal name of a service locator, the hash is totally random.

This breaks reproducible builds.

This PR replaces true randomness with reproducible entropy.

Commits
-------

600ae33 [DI] Use reproducible entropy to generate env placeholders
@fabpot fabpot merged commit 600ae33 into symfony:4.3 Nov 15, 2019
This was referenced Nov 17, 2019
@nicolas-grekas nicolas-grekas deleted the di-reproducible branch November 18, 2019 17:45
@fabpot fabpot mentioned this pull request Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0