-
Notifications
You must be signed in to change notification settings - Fork 93
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
docs: add registry authentication documentation #1267
Open
austinvazquez
wants to merge
1
commit into
runfinch:main
Choose a base branch
from
austinvazquez:add-credential-helper-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Registry Authentication | ||
|
||
Finch supports multiple methods for authenticating with container registries to push and pull images. | ||
|
||
## macOS and Windows | ||
|
||
### Credential Helpers (Recommended) | ||
|
||
Finch offers two types of credential helper integrations: | ||
|
||
1. Managed credential helpers | ||
1. Bring-Your-Own (BYO) credential helpers | ||
|
||
#### Managed Credential Helpers | ||
|
||
Managed credential helpers are installed and configured by Finch. This means the credential helper binary will be downloaded | ||
to the host machine and a config.json will be created and configured inside the $HOME/.finch directory if it does not already | ||
exist. Finch will ensure the credential helper binary is available to its container runtime stack with no additional action | ||
required by the user. | ||
|
||
##### Amazon ECR Credential Helper | ||
|
||
The Amazon ECR credential helper enables seamless authentication with Amazon Elastic Container Registry (ECR). | ||
This helper automatically handles the retrieval and renewal of ECR credentials for both public and private repositories. | ||
|
||
###### Installation and Setup | ||
|
||
1. Add `ecr-login` to `creds-helpers` in `finch.yaml`. | ||
|
||
```yaml | ||
creds-helpers: | ||
- ecr-login | ||
``` | ||
|
||
1. Stop and start the Finch guest machine for configuration to take effect. | ||
|
||
```bash | ||
finch vm stop | ||
finch vm start | ||
``` | ||
|
||
1. Verify credential helper configuration has been added to `$HOME/.finch/config.json`. | ||
For example: | ||
|
||
```json | ||
{ | ||
"credsStore": "ecr-login" | ||
} | ||
``` | ||
|
||
#### Bring-Your-Own (BYO) Credential Helpers | ||
|
||
Bring-Your-Own credential helpers enables users to plug-and-play their own custom credential helpers. | ||
|
||
##### Installation and Setup | ||
|
||
1. Add credential helper to `creds-helpers` in `finch.yaml`. | ||
|
||
```yaml | ||
creds-helpers: | ||
- secretservice | ||
``` | ||
|
||
1. Download and install the Linux credential helper binary to `$HOME/.finch/creds-helpers` directory. | ||
1. Add credential helper configuration to `$HOME/.finch/config.json`. | ||
|
||
### Basic username/password authentication | ||
|
||
Finch enables users to use basic username/password to authenticate with container image registries via `finch login` command. | ||
|
||
```bash | ||
localhost:~$ finch login | ||
Enter Username: username | ||
Enter Password: | ||
``` | ||
|
||
If the login has been successful, you should see: | ||
|
||
```bash | ||
Login Succeeded | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: perhaps mention that we only support docker naming convention for the credential helper binary. So random names are not supported