{"id":34197370,"url":"https://github.com/user-cube/auth-refresher","last_synced_at":"2026-03-10T09:40:50.385Z","repository":{"id":293108510,"uuid":"982914461","full_name":"user-cube/auth-refresher","owner":"user-cube","description":"Authenticatiom refresher for docker and helm registries.","archived":false,"fork":false,"pushed_at":"2025-05-13T18:32:03.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T18:38:35.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/user-cube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-13T15:35:13.000Z","updated_at":"2025-05-13T17:27:36.000Z","dependencies_parsed_at":"2025-05-13T18:50:24.947Z","dependency_job_id":null,"html_url":"https://github.com/user-cube/auth-refresher","commit_stats":null,"previous_names":["user-cube/auth-refresher"],"tags_count":2,"template":false,"template_full_name":"user-cube/gocli-template","purl":"pkg:github/user-cube/auth-refresher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user-cube%2Fauth-refresher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user-cube%2Fauth-refresher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user-cube%2Fauth-refresher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user-cube%2Fauth-refresher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/user-cube","download_url":"https://codeload.github.com/user-cube/auth-refresher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user-cube%2Fauth-refresher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-15T17:37:22.595Z","updated_at":"2026-03-10T09:40:50.372Z","avatar_url":"https://github.com/user-cube.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth Refresher\n\nAuth Refresher is a command-line tool designed to simplify the process of managing Docker and ECR registry logins. It provides an intuitive interface for selecting registries from a configuration file and handles login operations with support for AWS and Helm registries.\n\n## Features\n\n- **Docker/ECR Registry Login**: Easily log in to Docker and AWS ECR registries.\n- **Helm Registry Login**: Seamlessly log in to Helm registries.\n- **Graceful Cancellation**: Cancel operations gracefully without leaving incomplete states.\n- **Spinner Integration**: Visual feedback during login operations.\n- **YAML Configuration**: Manage registries through a simple YAML configuration file.\n\n## Installation\n\n### Go install to the win\n\n```\ngo install github.com/user-cube/auth-refresher@latest\n```\n\n### Build it yourself\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/user-cube/auth-refresher.git\n   cd auth-refresher\n   ```\n\n2. Build the project:\n   ```bash\n   go build -o auth-refresher\n   ```\n\n3. Run the binary:\n   ```bash\n   ./auth-refresher\n   ```\n\n## Usage\n\n### Login to a Registry\n\nUse the `login` command to log in to a registry:\n```bash\n./auth-refresher login\n```\n\nFollow the prompts to select a registry and log in.\n\n### Logout from a Registry\n\nUse the `logout` command to log out from a registry:\n```bash\n./auth-refresher logout\n```\n\nFollow the prompts to select a registry and log out. This command supports Docker, AWS ECR, and Helm registries.\n\n### List Registries\n\nUse the `list` command to view all configured registries:\n```bash\n./auth-refresher list\n```\n\nThe output includes the registry name, type, URL, and timestamps for the last login and logout operations.\n\n### Example Helm Login Command\n\nFor Helm registries, the tool executes the following commands internally:\n```bash\nAWS_REGION=\"us-west-2\"\nAWS_ACCOUNT_ID=\"123456789012\"\n\n# Get ECR credentials\nexport HELM_ECR_PASSWORD=$(aws ecr get-login-password --region $AWS_REGION)\n\n# Log in to ECR via Helm registry\nhelm registry login \\\n    $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com \\\n    --username AWS \\\n    --password $HELM_ECR_PASSWORD\n```\n\n### Configuration\n\nThe tool uses a YAML configuration file located at `~/.auth-refresher/config.yaml`. Example:\n```yaml\nlast_used_registry: my-docker-registry\nregistries:\n  my-docker-registry:\n    name: My Docker Registry\n    type: docker\n    url: https://index.docker.io/v1/\n  my-aws-ecr:\n    name: My AWS ECR\n    type: aws\n    url: 123456789012.dkr.ecr.us-west-2.amazonaws.com\n    region: us-west-2\n  my-helm-registry:\n    name: My Helm Registry\n    type: helm\n    url: 123456789012.dkr.ecr.us-west-2.amazonaws.com\n    region: us-west-2\n```\n\n## Development\n\n### Prerequisites\n\n- Go 1.18 or later\n\n### Run Locally\n\n1. Install dependencies:\n   ```bash\n   go mod tidy\n   ```\n\n2. Run the application:\n   ```bash\n   go run main.go\n   ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuser-cube%2Fauth-refresher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuser-cube%2Fauth-refresher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuser-cube%2Fauth-refresher/lists"}