As long as technical challenge is concerned, you can make a call to this
url settings/hostconfiguration/jcr:content in json format and get the
node data in response.On other note, if you are planning to do this in
publish/prod you may have to double check. If these are secret keys, you
may want to perform these operations in backend (java).