Updating `editable` Field in Datahub Policies.json File in Kubernetes Deployment

Original Slack Thread

Hello, I’m deploying Datahub on K8S and receiving requests from my team to update the policies.json file as here: https://github.com/datahub-project/datahub/blob/master/metadata-service/war/src/main/resources/boot/policies.json (specifically, I want to make change to the value of all editable field in this json file to true). I try to find that file somewhere in the running pods but find it nowhere. Can you provide some help about how to edit this file on pods or make change to this file on Helm value (if this option exists). Thanks in advance.

<@U03MF8MU5P0> might be able to speak to this!

The policies.json is included in the war.war artifact in GMS, copied /datahub/datahub-gms/bin/war.war https://github.com/datahub-project/datahub/blob/master/docker/datahub-gms/Dockerfile#L33|here. The file is loaded https://github.com/datahub-project/datahub/blob/master/metadata-service/factories/src/main/java/com/linkedin/metadata/boot/steps/IngestPoliciesStep.java#L72|here. In order to override this file you’d have to build your own container which includes a modified war or modify the war and mount it inside the container at the path located in the first link.