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

airbyte weak credentials #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
35 changes: 35 additions & 0 deletions airbyte/weak_credentials/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# setup requirements
I used ubuntu 22.10 as my OS.
1. Install docker.
2. k8s with minikube: https://minikube.sigs.k8s.io/docs/start/ (we can use original k8s but this is an easy solution)
3. please don't forget to add `alias kubectl="minikube kubectl --"` to your shell environment.
4. download the `abctl` to manage the k8s easier. choose a compatible processor architecture from the release page: https://github.com/airbytehq/abctl/releases/tag/v0.16.0
```bash
# linux amd64
curl https://github.com/airbytehq/abctl/releases/download/v0.16.0/abctl-v0.16.0-linux-amd64.tar.gz
tar -xvzf abctl-v0.16.0-linux-amd64.tar.gz
mv abctl-v0.16.0-linux-amd64/abctl .
rm -rf abctl-v0.16.0-linux-amd64
chmod +x abctl
```
Thanks to the James Fox(@jamesfoxxx) for the minikube setup guide.

# vulnerable instance
```bash
# clear the previous installation
./abctl local uninstall
./abctl local install
./abctl local credentials --email [email protected]
./abctl local credentials --password new_password
```
Go to http://localhost:8000/ and enter airbyte/password as username and password.

# secure instance
```bash
# clear the previous installation
./abctl local uninstall
./abctl local install
# get the random username and password
./abctl local credentials
```
Choose an email as a username and enter the random password that you received in a terminal. Since the password is random this is a secure airbyte instance.