Robert Mazurowski
Robert Mazurowski

Reputation: 337

Bluemix Watson Putting project on github

I have a question about sharing a Watson application on github. I am planning to build a small project in Java which would use Rest Apis as I am learning about connecting to rest at the moment. The worry I have is how to share the codes and passwords for cloud services on github.

If I share my code would anybody who sees the password be able to connect to my apis and use up my requests limits?

Is there any good practice for sharing applications like that on github without sharing the passwords?

Upvotes: 1

Views: 37

Answers (1)

Simon O'Doherty
Simon O'Doherty

Reputation: 9359

One way to approach this is to have your service credentials stored in a property file.

For example .env.

You would add .env to the .gitignore file. Then upload a .env.example file which contains example settings.

With instructions for how to get the project working. This is what conversation-simple does.

In the case of Java you would store it in a property file.

Upvotes: 1

Related Questions