Adding credentials, roles, and permissions in Bugster is simple and explicit. Define multiple credential profiles in config.yaml, keep secrets in environment variables, reference a profile per test with credential_id, and—if you use the GitHub App—mirror the same variables in your project settings for CI runs. Bugster doesn’t grant permissions itself; your application enforces them. Bugster simply logs in with the chosen profile so each test runs under the correct roleDocumentation Index
Fetch the complete documentation index at: https://docs.bugster.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Bugster CLI installed and authenticated.
- Access to your app’s user accounts with different permission levels.
- For CI/CD: Bugster GitHub App installed or access to CI secret management.
1. Add credentials in config.yaml
Create one entry per login profile (each maps to an app role). Use env vars—don’t hard-code secrets.id is the handle you’ll reference from tests (e.g., superadmin).
2. Provide secrets locally (.bugster/.env)
Add the variables to your local Bugster env file.3. Use a credential in a test
Point the test to the desired profile viacredential_id.
credentials[].id in config.yaml.
4. If you use the Bugster GitHub App (CI/CD)
For cloud runs to authenticate, mirror these env vars in your project’s settings or your CI secrets.Add environment variables
Add the same keys/values you used locally (e.g.,
BUGSTER_USERNAME_SUPERADMIN, BUGSTER_PASSWORD_SUPERADMIN).5. Quick validation
Run a test that specifiescredential_id and watch the login succeed:
.bugster/.env or CI secrets and re-run.
6. Best practices
Security & Organization:
- One profile per app role. Name ids by role (
user,manager,superadmin) for clarity. - Never commit secrets. Keep them in env files or CI secret stores, not in Git.
- Keep least privilege. Tests that don’t need admin rights should use
user, notsuperadmin. - Document intent. Add a short comment near each credential entry describing what the role can do.
