Skip to content
Back to skills

2335 Login Babe5b30

CSecurity

Authenticate to ArgoCD server for the cafehyna-hub cluster.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopsgobashkubernetesazureapi

Works with

  • api

Security analysis

C71/100
  • mediumUses curl or wget to download content
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2335-login_babe5b30 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2335 Login Babe5b30?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2335 Login Babe5b30
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2335-login-babe5b30/badge)](https://www.skillsdirectory.com/skills/tools-only-2335-login-babe5b30)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Login Workflow

Authenticate to ArgoCD server for the cafehyna-hub cluster.

## Cluster Configuration

| Setting | Value |
|---------|-------|
| **Kubeconfig** | `~/.kube/aks-rg-hypera-cafehyna-hub-config` |
| **ArgoCD Server** | `argocd.cafehyna.com.br` |
| **ArgoCD Namespace** | `argocd` |

## Connection Options

| Mode | Server | Command |
|------|--------|---------|
| **Production** | `argocd.cafehyna.com.br` | `argocd login argocd.cafehyna.com.br --sso` |
| **Port-Forward** | `localhost:8080` | `argocd login localhost:8080 --insecure` |

## Steps

### 1. Production Login (SSO)

```bash
# Set kubeconfig for cafehyna-hub
export KUBECONFIG=~/.kube/aks-rg-hypera-cafehyna-hub-config

# Login with Azure AD SSO
argocd login argocd.cafehyna.com.br --sso

# Verify login
argocd account get-user-info
```

### 2. Port-Forward Login (Development)

```bash
# Start port-forward in background (cafehyna-hub cluster)
kubectl --kubeconfig ~/.kube/aks-rg-hypera-cafehyna-hub-config port-forward svc/argocd-server -n argocd 8080:443 &

# Login with insecure flag (self-signed cert)
argocd login localhost:8080 --insecure

# Get initial admin password (if needed)
kubectl --kubeconfig ~/.kube/aks-rg-hypera-cafehyna-hub-config -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
```

### 3. Token-Based Login

```bash
# Login with auth token
argocd login argocd.cafehyna.com.br --auth-token $ARGOCD_AUTH_TOKEN

# Generate new token
argocd account generate-token
```

## Context Management

```bash
# List available contexts
argocd context

# Switch context
argocd context <context-name>

# Delete context
argocd context --delete <context-name>
```

## Account Management

```bash
# Get current user info
argocd account get-user-info

# List accounts
argocd account list

# Update password
argocd account update-password

# Get account details
argocd account get --account <username>
```

## Logout

```bash
# Logout from current server
argocd logout argocd.cafehyna.com.br

# Relogin (refresh token)
argocd relogin
```

## Troubleshooting

### Certificate Issues
```bash
# Skip TLS verification
argocd login argocd.cafehyna.com.br --insecure

# Use specific CA certificate
argocd login argocd.cafehyna.com.br --certificate-authority /path/to/ca.crt
```

### Connection Issues
```bash
# Check server connectivity
curl -k https://argocd.cafehyna.com.br/api/version

# Check ArgoCD server pod (cafehyna-hub cluster)
kubectl --kubeconfig ~/.kube/aks-rg-hypera-cafehyna-hub-config get pods -n argocd -l app.kubernetes.io/name=argocd-server
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…