If possible, try to eliminate need to pass in explicit rest api connection creds. Ideally use creds of user of deployment automagically.