Skip to content

Move sensitive configuration options into separate files #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davehunt opened this issue Mar 24, 2016 · 0 comments
Closed

Move sensitive configuration options into separate files #60

davehunt opened this issue Mar 24, 2016 · 0 comments
Assignees

Comments

@davehunt
Copy link
Contributor

At the moment usernames and keys for services like Sauce Labs, BrowserStack and TestingBot can either be set via environment variables or in the shared pytest configuration file. Using the configuration file means both private and public options are shared. It can also be difficult to manage when the configuration file is checked into source control and you don't want to expose your credentials to others.

I think it makes sense to add support for new configuration files such as .saucelabs, .browserstack, and .testingbot to hold these sensitive values. These should be able to be stored in the project directory (and can easily be ignored from version control), any parent directory, or the user's home directory. The files should be discovered in this order and the first match should take priority, allowing projects to override user defaults.

@davehunt davehunt self-assigned this Jan 24, 2017
davehunt added a commit to davehunt/pytest-selenium that referenced this issue Jan 24, 2017
Read credentials for cloud testing services from configuration files in the working or home directory. Fixes pytest-dev#60
davehunt added a commit to davehunt/pytest-selenium that referenced this issue Jan 24, 2017
Read credentials for cloud testing services from configuration files in the working or home directory. Fixes pytest-dev#60
davehunt added a commit to davehunt/pytest-selenium that referenced this issue Jan 25, 2017
Read credentials for cloud testing services from configuration files in the working or home directory. Fixes pytest-dev#60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant