Squarespace / pgbedrock

Manage a Postgres cluster's roles, role memberships, schema ownership, and privileges
https://pgbedrock.readthedocs.io/en/latest/
Other
311 stars 35 forks source link

Setting password commented out #64

Closed acarl005 closed 4 years ago

acarl005 commented 4 years ago

I tried to create a role with a password.

student:
  can_login: yes
  is_superuser: no
  attributes:
    - PASSWORD "{{ env['STUDENT_PASSWORD'] }}"
  privileges:
    schemas:
      read:
        - challenges
    tables:
      read:
        - challenges.*

I provided STUDENT_PASSWORD in the environment. This is the generated config. The password setting was skipped for some reason:

--------------------------------
--- Configuring attributes -----
--------------------------------

CREATE ROLE "student";
ALTER ROLE "student" WITH LOGIN;
--ALTER ROLE "student" WITH ENCRYPTED PASSWORD '******';

How can I get pgbedrock to actually set the password for my new user?

acarl005 commented 4 years ago

I realized the statement was actually executed.