From 3a9e3d94a1d0ee5bf0e72823cfc8d9cf020251dc Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sat, 21 Feb 2026 15:13:00 -0300 Subject: [PATCH] docs: update credentials, remove vim server, fix redbull key --- CONNECTIONS.md | 17 +- .../invista/nexus/CONNECTION-STATUS.md | 30 ++- inventcloud/invista/nexus/CREDENTIALS.md | 214 +++++++----------- inventcloud/invista/nexus/SSH-DIAGNOSTIC.md | 62 ----- 4 files changed, 99 insertions(+), 224 deletions(-) delete mode 100644 inventcloud/invista/nexus/SSH-DIAGNOSTIC.md diff --git a/CONNECTIONS.md b/CONNECTIONS.md index ceaf9a6..57017de 100644 --- a/CONNECTIONS.md +++ b/CONNECTIONS.md @@ -32,10 +32,10 @@ Documento de referencia rapida para conexao aos servicos e servidores. | IP | `185.194.141.70` | | Plataforma | Coolify v4 | | Usuario | root | -| Chave SSH | `lh-zeus` | +| Chave SSH | `civo` | ```bash -ssh -i ~/.ssh/lh-zeus root@185.194.141.70 +ssh -i ~/.ssh/civo root@185.194.141.70 ``` ### Echo (PROD) @@ -51,19 +51,6 @@ ssh -i ~/.ssh/lh-zeus root@185.194.141.70 ssh -i ~/.ssh/civo root@152.53.120.181 ``` -### Vim (PROD) - -| Propriedade | Valor | -|-------------|-------| -| IP | `38.19.201.52` | -| Plataforma | Dokku | -| Usuario | root | -| Chave SSH | `lh-zeus` | - -```bash -ssh -i ~/.ssh/lh-zeus root@38.19.201.52 -``` - --- ## Cloud Database (Absam) diff --git a/inventcloud/invista/nexus/CONNECTION-STATUS.md b/inventcloud/invista/nexus/CONNECTION-STATUS.md index 3bb9313..f738b94 100644 --- a/inventcloud/invista/nexus/CONNECTION-STATUS.md +++ b/inventcloud/invista/nexus/CONNECTION-STATUS.md @@ -7,9 +7,8 @@ | GitHub | ✅ OK | Autenticado | | Echo | ✅ OK | Dokku funcionando | | NC2 | ✅ OK | Contabo funcionando | -| Redbull | ❌ FAIL | Chave nao autorizada | +| Redbull | ✅ OK | Coolify funcionando | | Azure DevOps | ❌ FAIL | Chave nao registrada | -| Vim | ❌ FAIL | Chave nao autorizada | | Forgejo | ❌ OFFLINE | Servidor indisponivel | --- @@ -55,16 +54,25 @@ Containers: - traefik (Up 4 weeks) - postgres (Up 3 weeks) -### ❌ Redbull (Coolify DEV) +### ✅ Redbull (Coolify DEV) ``` -Status: Online (HTTP 302) +Status: Online +Hostname: v2202508247812376908 IP: 185.194.141.70 -Chave: ~/.ssh/lh-zeus -Erro: Permission denied (publickey) +Chave: ~/.ssh/civo ``` -**Acao:** Adicionar chave publica ao servidor +Containers: +- coolify-sentinel (Up 18 hours) +- coolify-proxy (Up 4 days) +- coolify (Up 4 days) +- coolify-redis (Up 5 days) +- coolify-realtime (Up 5 days) +- coolify-db (Up 5 days) +- forgejo-redbull (Up 4 days) +- vaultwarden (Up) +- Diversas apps Coolify ### ❌ Azure DevOps @@ -111,11 +119,9 @@ Erro: Connection timed out ## Acoes Pendentes -1. [ ] Adicionar `lh-zeus.pub` ao Redbull -2. [ ] Adicionar `lh-zeus.pub` ao Vim -3. [ ] Registrar `ic-ad.pub` no Azure DevOps -4. [ ] Criar arquivos de token faltantes -5. [ ] Verificar status do Forgejo +1. [ ] Registrar `ic-ad.pub` no Azure DevOps +2. [ ] Criar arquivos de token faltantes +3. [ ] Verificar status do Forgejo --- diff --git a/inventcloud/invista/nexus/CREDENTIALS.md b/inventcloud/invista/nexus/CREDENTIALS.md index 3a1f4f4..e1a8d60 100644 --- a/inventcloud/invista/nexus/CREDENTIALS.md +++ b/inventcloud/invista/nexus/CREDENTIALS.md @@ -2,17 +2,28 @@ ## Arquivos em ~/.ssh/ -### Chaves SSH +### Chaves SSH Privadas -| Arquivo | Tipo | Uso | -|---------|------|-----| -| `github` | ed25519 | GitHub (conta pessoal) | -| `civo` | ed25519 | Echo, NC2 | -| `lh-zeus` | ed25519 | Redbull | -| `ic-ad` | RSA | Azure DevOps | -| `bionexo` | ed25519 | Bitbucket (Bionexo) | -| `forgejo-gru` | ed25519 | Forgejo | -| `app01-rabbitmq-beecare-origin` | ed25519 | Beecare RabbitMQ | +| Arquivo | Tipo | Uso | Status | +|---------|------|-----|--------| +| `github` | ed25519 | GitHub | ✅ OK | +| `civo` | ed25519 | Redbull, Echo, NC2 | ✅ OK | +| `lh-zeus` | ed25519 | Disponivel | - | +| `ic-ad` | RSA | Azure DevOps | ❌ Nao registrada | +| `bionexo` | ed25519 | Bitbucket | ✅ OK | +| `forgejo-gru` | ed25519 | Forgejo | ❌ Offline | +| `app01-rabbitmq-beecare-origin` | ed25519 | Beecare | - | + +### Chaves SSH Publicas + +| Arquivo | +|---------| +| `github.pub` | +| `civo.pub` | +| `lh-zeus.pub` | +| `ic-ad.pub` | +| `bionexo.pub` | +| `forgejo-gru.pub` | ### Arquivos de Configuracao @@ -20,8 +31,24 @@ |---------|----------| | `config` | Hosts SSH configurados | | `azure_devops_auth.json` | Azure DevOps PAT | -| `oci-credentials.md` | Clusters OCI, ArgoCD, Compartments | | `known_hosts` | Fingerprints conhecidos | +| `known_hosts.old` | Backup fingerprints | +| `authorized_keys` | Vazio | +| `agent/` | Diretorio agent | + +--- + +## Status das Conexoes + +| Servico | Status | Obs | +|---------|--------|-----| +| GitHub | ✅ OK | tiagoyamamoto | +| Bitbucket | ✅ OK | Bionexo | +| Redbull | ✅ OK | Coolify | +| Echo | ✅ OK | Dokku | +| NC2 | ✅ OK | Contabo | +| Azure DevOps | ❌ FAIL | Registrar ic-ad.pub | +| Forgejo | ❌ OFFLINE | Servidor indisponivel | --- @@ -33,57 +60,9 @@ |-------------|-------| | Organization | CN-Squad | | Project | Invista FIDC - Nexus | -| PAT | `` | +| PAT | Ver arquivo | -### Uso - -```bash -# API -AZDO_PAT=$(cat ~/.ssh/azure_devops_auth.json | jq -r '.pat') -curl -u ":$AZDO_PAT" "https://dev.azure.com/CN-Squad/_apis/projects?api-version=7.0" - -# SSH (registrar ic-ad.pub no Azure DevOps primeiro) -ssh -T git@ssh.dev.azure.com -``` - ---- - -## Oracle Cloud Infrastructure (OCI) - -**Arquivo:** `~/.ssh/oci-credentials.md` - -### ArgoCD - -| Cluster | URL | Usuario | Senha | -|---------|-----|----------|--------| -| cls-dev-nexus (DEV) | http://10.110.135.3 | admin | `` | -| prd-cls-2 (PROD) | http://10.130.128.46 | admin | `` | - -### Clusters OKE - -| Nome | Ambiente | OCID | -|------|----------|------| -| cls-dev-nexus | DEV | `ocid1.cluster...vc3a` | -| cls-dev-barramento | DEV | `ocid1.cluster...nv6q` | -| cls-dev-observabilidade | DEV | `ocid1.cluster...robq` | -| prd-cls-2 | PROD | `ocid1.cluster...rhua` | - -### Compartments - -| Nome | OCID | -|------|------| -| cmp-dev-nexus | `ocid1.compartment...ddma` | -| cmp-hml-nexus | `ocid1.compartment...5ohq` | - -### Kubeconfig - -```bash -oci ce cluster create-kubeconfig \ - --cluster-id \ - --file $HOME/.kube/config \ - --region sa-saopaulo-1 \ - --overwrite -``` +**Acao necessaria:** Registrar `~/.ssh/ic-ad.pub` no Azure DevOps --- @@ -94,72 +73,43 @@ oci ce cluster create-kubeconfig \ | Propriedade | Valor | |-------------|-------| | IP | `185.194.141.70` | +| Hostname | v2202508247812376908 | | Plataforma | Coolify v4 | -| Chave SSH | `lh-zeus` | -| Alias | `redbull` | - -```bash -ssh redbull -``` +| Chave SSH | `civo` | ### Echo (Dokku PROD) | Propriedade | Valor | |-------------|-------| | IP | `152.53.120.181` | +| Hostname | v2202501247812309542 | | Plataforma | Dokku | | Chave SSH | `civo` | -| Alias | `echo` | - -```bash -ssh echo -``` - -### Vim (Dokku PROD) - -| Propriedade | Valor | -|-------------|-------| -| IP | `38.19.201.52` | -| Plataforma | Dokku | -| Chave SSH | `lh-zeus` (nao registrada) | -| Alias | `vim` | - -**Status:** ❌ Chave nao registrada no servidor ### NC2 (Contabo) | Propriedade | Valor | |-------------|-------| | IP | `212.56.41.211` | +| Hostname | vmi2943543.contaboserver.net | | Provedor | Contabo Inc. | | Localizacao | St. Louis, MO, EUA | | OS | AlmaLinux 9.7 | | Chave SSH | `civo` | -| Alias | `nc2` | -**Servicos:** -- PostgreSQL 17 (user: gohorse, db: app_db) -- Redis -- Traefik -- Glances -- K3s agent +**Servicos:** PostgreSQL 17, Redis, Traefik, Glances, K3s agent -```bash -ssh nc2 -# Postgres: podman exec -it postgres psql -U gohorse -d app_db -``` +--- + +## Oracle Cloud Infrastructure (OCI) + +Ver documentacao em `OCI.md` --- ## Cloudflare -**Status:** ❌ Token nao encontrado em `~/.ssh/cloudflare-token` - -| Propriedade | Valor | -|-------------|-------| -| Email | yamamoto@rede5.com.br | - -### Zones +**Status:** ❌ Token nao encontrado | Zone | Zone ID | |------|---------| @@ -170,12 +120,7 @@ ssh nc2 ## Coolify (Redbull) -**Status:** ❌ Token nao encontrado em `~/.ssh/coolify-redbull-token` - -| Propriedade | Valor | -|-------------|-------| -| URL | https://redbull.rede5.com.br | -| API | https://redbull.rede5.com.br/api/v1 | +**Status:** ❌ Token nao encontrado --- @@ -188,12 +133,6 @@ ssh nc2 | Host | db-60604.dc-us-1.absamcloud.com | | Porta PostgreSQL | 11985 | | Porta SSH | 18863 | -| vpsID | 60604 | -| Console | https://cloud.absam.io | - -**Arquivos esperados:** -- `~/.ssh/absam-db-novo` - Credenciais do banco -- `~/.ssh/absam-token` - API tokens (access-token, secret-token) --- @@ -201,25 +140,8 @@ ssh nc2 | Propriedade | Valor | |-------------|-------| -| Chave SSH | `github` / `github.pub` | -| Status | ✅ Funcionando | - -```bash -ssh -T git@github.com -``` - -**Status:** ❌ Token nao encontrado em `~/.ssh/github-token` - ---- - -## Forgejo - -| Propriedade | Valor | -|-------------|-------| -| Host | forgejo-gru.rede5.com.br | -| Porta | 2323 | -| Chave SSH | `forgejo-gru` | -| Status | ❌ Servidor offline | +| Chave SSH | `github` | +| Status | ✅ OK | --- @@ -227,8 +149,18 @@ ssh -T git@github.com | Propriedade | Valor | |-------------|-------| -| Chave SSH | `bionexo` / `bionexo.pub` | -| Alias | `bitbucket.org-bionexo` | +| Chave SSH | `bionexo` | +| Status | ✅ OK | + +--- + +## Forgejo + +| Propriedade | Valor | +|-------------|-------| +| Host | forgejo-gru.rede5.com.br:2323 | +| Chave SSH | `forgejo-gru` | +| Status | ❌ Offline | --- @@ -247,9 +179,21 @@ ssh -T git@github.com | `cloudflare-token` | Cloudflare API | | `coolify-redbull-token` | Coolify API | | `github-token` | GitHub PAT | -| `absam-db-novo` | Absam DB credenciais | +| `absam-db-novo` | Absam DB | | `absam-token` | Absam API | --- +## Servidores Desativados + +| Host | IP | Status | +|------|-----|--------| +| civo | 212.2.242.136 | OFFLINE | +| posseidon | 45.39.210.21 | OFFLINE | +| apolo | 45.143.7.55 | OFFLINE | +| zeus | 45.39.210.92 | OFFLINE | +| vim | 38.19.201.52 | REMOVIDO | + +--- + *Atualizado em: 2026-02-21* diff --git a/inventcloud/invista/nexus/SSH-DIAGNOSTIC.md b/inventcloud/invista/nexus/SSH-DIAGNOSTIC.md deleted file mode 100644 index 124ef52..0000000 --- a/inventcloud/invista/nexus/SSH-DIAGNOSTIC.md +++ /dev/null @@ -1,62 +0,0 @@ -# Diagnostico SSH - 2026-02-21 - -## Status das Conexoes - -### Funcionando - -| Host | IP | Chave | Status | -|------|-----|-------|--------| -| github.com | github.com | github | ✅ OK | -| redbull | 185.194.141.70 | lh-zeus | ✅ OK | -| echo | 152.53.120.181 | civo | ✅ OK | -| nc2 | 212.56.41.211 | civo | ✅ OK | - -### Problemas - -| Host | IP | Problema | Acao | -|------|-----|----------|------| -| azure-devops | ssh.dev.azure.com | Chave não registrada | Adicionar `ic-ad.pub` no Azure DevOps | -| vim | 38.19.201.52 | Permission denied | Adicionar chave pública no servidor | -| civo | 212.2.242.136 | Connection timed out | Servidor offline? | -| posseidon | 45.39.210.21 | Connection timed out | Servidor offline? | -| apolo | 45.143.7.55 | Connection timed out | Servidor offline? | -| zeus | 45.39.210.92 | Connection timed out | Servidor offline? | -| forgejo-gru | forgejo-gru.rede5.com.br:2323 | Connection timed out | Servidor offline? | - -## Arquivos Faltando - -Os seguintes arquivos mencionados na documentacao nao existem: - -| Arquivo | Uso | -|---------|-----| -| `~/.ssh/cloudflare-token` | Cloudflare API Token | -| `~/.ssh/coolify-redbull-token` | Coolify API Token | -| `~/.ssh/github-token` | GitHub PAT | -| `~/.ssh/absam-db-novo` | Credenciais Absam DB | -| `~/.ssh/absam-token` | Absam API Tokens | - -## Chaves Disponiveis - -| Arquivo | Tipo | Publica | -|---------|------|---------| -| github | ed25519 | ✅ | -| civo | ed25519 | ✅ | -| lh-zeus | ed25519 | ✅ | -| ic-ad | RSA | ✅ | -| bionexo | ? | ✅ | -| forgejo-gru | ed25519 | ✅ | - -## Acoes Necessarias - -1. **Azure DevOps**: Registrar chave pública `ic-ad.pub` em User Settings > SSH public keys -2. **Vim**: Adicionar chave pública `lh-zeus.pub` ao servidor -3. **Tokens**: Criar arquivos de token faltantes -4. **Servidores offline**: Verificar se ainda sao necessarios - -## Config SSH Atualizado - -Ver arquivo `~/.ssh/config` - ---- - -*Diagnostico gerado em: 2026-02-21*