where are the edge endpoint credentials stored locally?

Not applicable

Hello,

i've been playing with the developer portal install for a bit and what i've noticed is that even though i drop and recreate the DB and i manage to start a brand new install process when it gets to the Configure the Edge Endpoint it populates the credentials from the previous install automatically. Where is that file located so i can either delete it or update?

Thank you,

Sergio

Solved Solved
0 8 1,053
1 ACCEPTED SOLUTION

@Sergio Barrios

Edge connection credentials are stored in Drupal File System in encrypted format. If you are in cloud you can see the same file at /code/sites/default/files/private/.apigee in Encrypted format. If you are in onPremise its in /sites/default/files/private/.apigee from Drupal root folder.

You cannot directly edit above file to change the connection settings. Best way to do same is using drush command line too. Please find drush commands to update connection settings below.

Set EndPoint..

drush dc-setend http://YOUREDGEAPIENDPOINT:PORT

If you are on Cloud,

drush dc-setend https://api.enterprise.apigee.com/v1

Set Org

drush dc-setorg YOURORGNAME

Set Credentials

drush devconnect-set-auth XXXXXXXX@domain.com --password=YOURPASSWORD

where XXXXXXX@domain.com is your Org Admin Email, Replace YOURPASSWORD with password.

Test the connection using below command...

drush devconnect-test-conn

Please keep me posted if you see any issues.

View solution in original post

8 REPLIES 8

does the install config [in the browser], prompts for edge configuration or no?

If it prompts and shows values filled in already - it could be your browser's autofill right?

i see your point which kind of makes sense but in this case i have save-password disabled and is filling that field too, and even if it was autocomplete you should at least type the first letter for the browser to ask you if you want to use previous data. I think there's a local 'cache' file somewhere that keeps that info

@Sergio Barrios

Edge connection credentials are stored in Drupal File System in encrypted format. If you are in cloud you can see the same file at /code/sites/default/files/private/.apigee in Encrypted format. If you are in onPremise its in /sites/default/files/private/.apigee from Drupal root folder.

You cannot directly edit above file to change the connection settings. Best way to do same is using drush command line too. Please find drush commands to update connection settings below.

Set EndPoint..

drush dc-setend http://YOUREDGEAPIENDPOINT:PORT

If you are on Cloud,

drush dc-setend https://api.enterprise.apigee.com/v1

Set Org

drush dc-setorg YOURORGNAME

Set Credentials

drush devconnect-set-auth XXXXXXXX@domain.com --password=YOURPASSWORD

where XXXXXXX@domain.com is your Org Admin Email, Replace YOURPASSWORD with password.

Test the connection using below command...

drush devconnect-test-conn

Please keep me posted if you see any issues.

Hello @Anil Sagar thank you this is what I was actually looking for. Sorry for the delay on responding to your answer I was out of town and i'm just catching up.

@Sergio Barrios , No issues, Glad issue is resolved.

HI @Anil Sagar - may I ask for a quick clarification on the cloud part of this. Can you please confirm that, for cloud, in order to run the above drush commands, we first need to clone the repo locally, run the commands and push the changes back into relevant origin repo? In other words, these drush commands will edit that .apigee file which we will then commit back? Thanks.

@Anil Sagar Thanks for the details. Few followup questions: 1) What is the encryption format? 2) Where are the private keys stored? 3) Any key rotation available to change private keys periodically?