Skip to content
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

chore: update default credentials #1088

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ The CLI is available in the `cmd/cli` directory.
go run cmd/cli/main.go --help
```

To start with, you will need to run `cli auth login -u root -p P4ssw@rd` matching the password bootstrapped from the [database initialization](./database/migrations/000001_init.up.sql)
To start with, you will need to run `cli auth login` using `root:root` as the credentials.
This will open a browser window with the identity provider login page.

## APIs

Expand Down Expand Up @@ -230,8 +231,9 @@ First, login with the default credentials:
go run ./cmd/cli/main.go auth login
```

This will open a browser window with the identity provider login page.
Enter the credentials root / P4ssw@rd. You will immediately be prompted to change your password.
This will open a browser window with the identity provider login page.
Enter the credentials `root:root`.
You will immediately be prompted to change your password.
Upon successful authentication you can close your browser.

You will see the following prompt in your terminal:
Expand Down
2 changes: 1 addition & 1 deletion identity/import/stacklok-realm-with-user-and-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"type" : "password",
"userLabel" : "My password",
"createdDate" : 1695635437604,
"secretData" : "{\"value\":\"VbiUfudYyMOv1rdW8ofVTl005RLXUy9UE7iTCpOU000=\",\"salt\":\"oR6ZY2DgLeOwvp/TgEZEYA==\",\"additionalParameters\":{}}",
"secretData" : "{\"value\":\"JsFSYaycxtfeIWHwDJydCEorBN/ilNRDjAGCAxWozKI=\",\"salt\":\"oR6ZY2DgLeOwvp/TgEZEYA==\",\"additionalParameters\":{}}",
"credentialData" : "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\",\"additionalParameters\":{}}"
} ],
"disableableCredentialTypes" : [ ],
Expand Down
4 changes: 2 additions & 2 deletions tools/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ set -eux
medic() {
go run ./cmd/cli/main.go "$@";
}

medic auth login -u root -p 'P4ssw@rd'
# use root:root for credentials
medic auth login

medic provider enroll -n github

Expand Down