-
Notifications
You must be signed in to change notification settings - Fork 200
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
postgresql.conf can't be parsed due to password_encryption = scram-sha-256 #700
Comments
marcinbarczynski
added a commit
to marcinbarczynski/augeas
that referenced
this issue
Oct 20, 2020
…ercules-team#700) Since PostgreSQL 10 password_encryption is enum. If the value is set to scram-sha-256 (which contains hyphens), saving postgresql.conf with augeas fails with: saving failed (run 'errors' for details) Error in /var/lib/pgsql/13/data/postgresql.conf:782.0 (parse_skel_failed) Iterated lens matched less than it should Lens: /usr/share/augeas/lenses/dist/postgresql.aug:69.10-.46: Last matched: /usr/share/augeas/lenses/dist/postgresql.aug:30.10-.46: Next (no match): /usr/share/augeas/lenses/dist/quote.aug:117.2-.35: This is because hyphen wasn't included in the definition of string that doesn't require quoting.
raphink
added a commit
that referenced
this issue
Oct 22, 2020
…700) (#701) Since PostgreSQL 10 password_encryption is enum. If the value is set to scram-sha-256 (which contains hyphens), saving postgresql.conf with augeas fails with: saving failed (run 'errors' for details) Error in /var/lib/pgsql/13/data/postgresql.conf:782.0 (parse_skel_failed) Iterated lens matched less than it should Lens: /usr/share/augeas/lenses/dist/postgresql.aug:69.10-.46: Last matched: /usr/share/augeas/lenses/dist/postgresql.aug:30.10-.46: Next (no match): /usr/share/augeas/lenses/dist/quote.aug:117.2-.35: This is because hyphen wasn't included in the definition of string that doesn't require quoting. Co-authored-by: Raphaël Pinson <raphael.pinson@camptocamp.com>
Closed by #701 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since PostgreSQL 10
password_encryption
is enum. If the value is set toscram-sha-256
(which contains hyphens), saving postgresql.conf with augeas fails with:This is because hyphen is not included in the definition of string that doesn't require quoting:
augeas/lenses/postgresql.aug
Line 34 in 299979d
I fixed it by adding
-
to the regex.The text was updated successfully, but these errors were encountered: