mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Run mongodb monitoring and backup agents as non-root user
- We need to modify the read permissions on the secrets and allow the mongodb-mms-agent to read the credentials.
This commit is contained in:
parent
e7640feaec
commit
650177c50e
@ -20,5 +20,5 @@ RUN apt update \
|
|||||||
COPY mongodb_backup_agent_entrypoint.bash /
|
COPY mongodb_backup_agent_entrypoint.bash /
|
||||||
RUN chown -R mongodb-mms-agent:mongodb-mms-agent /etc/mongodb-mms/
|
RUN chown -R mongodb-mms-agent:mongodb-mms-agent /etc/mongodb-mms/
|
||||||
VOLUME /etc/mongod/ssl
|
VOLUME /etc/mongod/ssl
|
||||||
#USER mongodb-mms-agent - BUG(Krish) Uncomment after tests are complete
|
USER mongodb-mms-agent
|
||||||
ENTRYPOINT ["/mongodb_backup_agent_entrypoint.bash"]
|
ENTRYPOINT ["/mongodb_backup_agent_entrypoint.bash"]
|
||||||
|
@ -51,8 +51,8 @@ spec:
|
|||||||
- name: mdb-bak-certs
|
- name: mdb-bak-certs
|
||||||
secret:
|
secret:
|
||||||
secretName: mdb-bak-certs
|
secretName: mdb-bak-certs
|
||||||
defaultMode: 0400
|
defaultMode: 0404
|
||||||
- name: cloud-manager-credentials
|
- name: cloud-manager-credentials
|
||||||
secret:
|
secret:
|
||||||
secretName: cloud-manager-credentials
|
secretName: cloud-manager-credentials
|
||||||
defaultMode: 0400
|
defaultMode: 0404
|
||||||
|
@ -54,5 +54,5 @@ RUN apt update \
|
|||||||
COPY mongodb_mon_agent_entrypoint.bash /
|
COPY mongodb_mon_agent_entrypoint.bash /
|
||||||
RUN chown -R mongodb-mms-agent:mongodb-mms-agent /etc/mongodb-mms/
|
RUN chown -R mongodb-mms-agent:mongodb-mms-agent /etc/mongodb-mms/
|
||||||
VOLUME /etc/mongod/ssl
|
VOLUME /etc/mongod/ssl
|
||||||
#USER mongodb-mms-agent - BUG(Krish) Uncomment after tests are complete
|
USER mongodb-mms-agent
|
||||||
ENTRYPOINT ["/mongodb_mon_agent_entrypoint.bash"]
|
ENTRYPOINT ["/mongodb_mon_agent_entrypoint.bash"]
|
||||||
|
@ -51,8 +51,8 @@ spec:
|
|||||||
- name: mdb-mon-certs
|
- name: mdb-mon-certs
|
||||||
secret:
|
secret:
|
||||||
secretName: mdb-mon-certs
|
secretName: mdb-mon-certs
|
||||||
defaultMode: 0400
|
defaultMode: 0404
|
||||||
- name: cloud-manager-credentials
|
- name: cloud-manager-credentials
|
||||||
secret:
|
secret:
|
||||||
secretName: cloud-manager-credentials
|
secretName: cloud-manager-credentials
|
||||||
defaultMode: 0400
|
defaultMode: 0404
|
||||||
|
Loading…
x
Reference in New Issue
Block a user