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

Move sensitive configuration options into separate files #60

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

Comments

Projects
None yet
1 participant
@davehunt
Collaborator

davehunt commented Mar 24, 2016

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 davehunt removed the help wanted label Jan 24, 2017

davehunt added a commit to davehunt/pytest-selenium that referenced this issue Jan 24, 2017

Move sensitive configuration options into separate files
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

Move sensitive configuration options into separate files
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

Move sensitive configuration options into separate files
Read credentials for cloud testing services from configuration files in the working or home directory. Fixes pytest-dev#60

@davehunt davehunt closed this in #93 Jan 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment