forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteb61136
committed
Remove support for password_encryption='off' / 'plain'.
Storing passwords in plaintext hasn't been a good idea for a very longtime, if ever. Now seems like a good time to finally forbid it, since we'remessing with this in PostgreSQL 10 anyway.Remove the CREATE/ALTER USER UNENCRYPTED PASSSWORD 'foo' syntax, sincestoring passwords unencrypted is no longer supported. ENCRYPTED PASSWORD'foo' is still accepted, but ENCRYPTED is now just a noise-word, it doesthe same as just PASSWORD 'foo'.Likewise, remove the --unencrypted option from createuser, but accept--encrypted as a no-op for backward compatibility. AFAICS, --encrypted wasa no-op even before this patch, because createuser encrypted the passwordbefore sending it to the server even if --encrypted was not specified. Itadded the ENCRYPTED keyword to the SQL command, but since the password wasalready in encrypted form, it didn't make any difference. The documentationwas not clear on whether that was intended or not, but it's moot now.Also, while password_encryption='on' is still accepted as an alias for'md5', it is now marked as hidden, so that it is not listed as an acceptedvalue in error hints, for example. That's not directly related to removing'plain', but it seems better this way.Reviewed by Michael PaquierDiscussion:https://www.postgresql.org/message-id/16e9b768-fd78-0b12-cfc1-7b6b7f238fde@iki.fi1 parent1f30295 commiteb61136
File tree
21 files changed
+177
-331
lines changed- contrib/passwordcheck
- doc/src/sgml
- ref
- src
- backend
- commands
- libpq
- parser
- utils/misc
- bin
- psql
- scripts
- include/libpq
- interfaces/libpq
- test
- authentication/t
- regress
- expected
- sql
21 files changed
+177
-331
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
43 |
| - | |
| 42 | + | |
| 43 | + | |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
|
Lines changed: 10 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1188 | 1188 |
| |
1189 | 1189 |
| |
1190 | 1190 |
| |
1191 |
| - | |
1192 |
| - | |
1193 |
| - | |
1194 |
| - | |
1195 |
| - | |
1196 |
| - | |
1197 |
| - | |
1198 |
| - | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
1199 | 1201 |
| |
1200 | 1202 |
| |
1201 | 1203 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
172 |
| - | |
173 |
| - | |
| 171 | + | |
174 | 172 |
| |
175 | 173 |
| |
176 | 174 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Lines changed: 11 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
| 210 | + | |
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
| |||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 | 222 |
| |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
239 | 232 |
| |
240 | 233 |
| |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 | 234 |
| |
247 | 235 |
| |
248 | 236 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
|
Lines changed: 3 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
127 |
| - | |
128 |
| - | |
| 127 | + | |
| 128 | + | |
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 | 207 |
| |
219 | 208 |
| |
220 | 209 |
| |
| |||
481 | 470 |
| |
482 | 471 |
| |
483 | 472 |
| |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
| 473 | + | |
489 | 474 |
| |
490 | 475 |
| |
491 | 476 |
| |
|
Lines changed: 6 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
84 | 83 |
| |
85 | 84 |
| |
86 | 85 |
| |
| |||
128 | 127 |
| |
129 | 128 |
| |
130 | 129 |
| |
131 |
| - | |
132 |
| - | |
133 |
| - | |
| 130 | + | |
134 | 131 |
| |
135 | 132 |
| |
136 | 133 |
| |
137 | 134 |
| |
138 | 135 |
| |
139 | 136 |
| |
140 | 137 |
| |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 | 138 |
| |
151 | 139 |
| |
152 | 140 |
| |
| |||
400 | 388 |
| |
401 | 389 |
| |
402 | 390 |
| |
403 |
| - | |
| 391 | + | |
| 392 | + | |
404 | 393 |
| |
405 | 394 |
| |
406 | 395 |
| |
| |||
503 | 492 |
| |
504 | 493 |
| |
505 | 494 |
| |
506 |
| - | |
507 | 495 |
| |
508 | 496 |
| |
509 | 497 |
| |
| |||
537 | 525 |
| |
538 | 526 |
| |
539 | 527 |
| |
540 |
| - | |
541 |
| - | |
542 |
| - | |
| 528 | + | |
543 | 529 |
| |
544 | 530 |
| |
545 | 531 |
| |
546 | 532 |
| |
547 | 533 |
| |
548 | 534 |
| |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 | 535 |
| |
559 | 536 |
| |
560 | 537 |
| |
| |||
809 | 786 |
| |
810 | 787 |
| |
811 | 788 |
| |
812 |
| - | |
| 789 | + | |
| 790 | + | |
813 | 791 |
| |
814 | 792 |
| |
815 | 793 |
| |
|
Lines changed: 2 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 | 202 |
| |
219 | 203 |
| |
220 | 204 |
| |
221 |
| - | |
222 |
| - | |
| 205 | + | |
| 206 | + | |
223 | 207 |
| |
224 | 208 |
| |
225 | 209 |
| |
|
Lines changed: 8 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
754 | 754 |
| |
755 | 755 |
| |
756 | 756 |
| |
757 |
| - | |
758 |
| - | |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 |
| - | |
763 |
| - | |
764 |
| - | |
765 |
| - | |
766 |
| - | |
767 |
| - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
768 | 764 |
| |
769 | 765 |
| |
770 | 766 |
| |
| |||
775 | 771 |
| |
776 | 772 |
| |
777 | 773 |
| |
778 |
| - | |
779 |
| - | |
780 |
| - | |
| 774 | + | |
781 | 775 |
| |
782 | 776 |
| |
783 | 777 |
| |
784 | 778 |
| |
785 | 779 |
| |
786 |
| - | |
787 | 780 |
| |
788 |
| - | |
789 | 781 |
| |
790 |
| - | |
791 | 782 |
| |
792 |
| - | |
793 | 783 |
| |
794 | 784 |
| |
795 | 785 |
| |
|
0 commit comments
Comments
(0)