Skip to content

#585 certificate rotation based on file hash, not modified time#599

Merged
CyberDem0n merged 3 commits intozalando:masterfrom
irishandyb:bugfix/issue-585-certificate-rotation
Aug 12, 2021
Merged

#585 certificate rotation based on file hash, not modified time#599
CyberDem0n merged 3 commits intozalando:masterfrom
irishandyb:bugfix/issue-585-certificate-rotation

Conversation

@irishandyb
Copy link
Copy Markdown
Contributor

Updating the certificate reload scripts to be based on @bchrobots script change.

I have tested this and can verify that it works.

Copy link
Copy Markdown
Contributor

@CyberDem0n CyberDem0n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the shellcheck complains about your changes: https://github.com/zalando/spilo/pull/599/checks#step:6:7

env = ' '.join('{0}="{1}"'.format(n, placeholders[n]) for n in ('PGDATA', 'SSL_CA_FILE', 'SSL_CRL_FILE',
'SSL_CERTIFICATE_FILE', 'SSL_PRIVATE_KEY_FILE') if placeholders.get(n))
lines += ['*/5 * * * * {0} /scripts/test_reload_ssl.sh 5'.format(env)]
lines += ['*/5 * * * * {0} /scripts/test_reload_ssl.sh /tmp'.format(env)]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The /tmp directory is could be read-only if the container is in read-only.
It is better to use os.path.join(placeholders['RW_DIR'], 'tmp').

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I will make this change.

Comment thread postgres-appliance/scripts/configure_spilo.py
@bchrobot
Copy link
Copy Markdown

Any rough timeline for release of this?

@Jan-M
Copy link
Copy Markdown
Member

Jan-M commented Aug 12, 2021

👍

1 similar comment
@CyberDem0n
Copy link
Copy Markdown
Contributor

👍

@CyberDem0n CyberDem0n merged commit 0ab7fe0 into zalando:master Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants