docs: add credentials and connection status documentation
This commit is contained in:
parent
bec073c5b1
commit
ccbaee4f23
3 changed files with 439 additions and 0 deletions
122
inventcloud/invista/nexus/CONNECTION-STATUS.md
Normal file
122
inventcloud/invista/nexus/CONNECTION-STATUS.md
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
# Status das Conexoes - 2026-02-21
|
||||
|
||||
## Resumo
|
||||
|
||||
| Servico | Status | Obs |
|
||||
|---------|--------|-----|
|
||||
| GitHub | ✅ OK | Autenticado |
|
||||
| Echo | ✅ OK | Dokku funcionando |
|
||||
| NC2 | ✅ OK | Contabo funcionando |
|
||||
| Redbull | ❌ FAIL | Chave nao autorizada |
|
||||
| Azure DevOps | ❌ FAIL | Chave nao registrada |
|
||||
| Vim | ❌ FAIL | Chave nao autorizada |
|
||||
| Forgejo | ❌ OFFLINE | Servidor indisponivel |
|
||||
|
||||
---
|
||||
|
||||
## Detalhado
|
||||
|
||||
### ✅ GitHub
|
||||
|
||||
```
|
||||
Status: Autenticado
|
||||
Usuario: tiagoyamamoto
|
||||
Chave: ~/.ssh/github
|
||||
```
|
||||
|
||||
### ✅ Echo (Dokku PROD)
|
||||
|
||||
```
|
||||
Status: Online
|
||||
Hostname: v2202501247812309542
|
||||
IP: 152.53.120.181
|
||||
Chave: ~/.ssh/civo
|
||||
```
|
||||
|
||||
Containers:
|
||||
- photum.web.1 (Up 45 hours)
|
||||
- food-backend.web.1 (Up 46 hours)
|
||||
- q1agenda-backend.web.1 (Up 7 days)
|
||||
- dokku.postgres.q1agenda-db (Up 7 days)
|
||||
- dokku.postgres.photum-db (Up 3 weeks)
|
||||
|
||||
### ✅ NC2 (Contabo)
|
||||
|
||||
```
|
||||
Status: Online
|
||||
Hostname: vmi2943543.contaboserver.net
|
||||
IP: 212.56.41.211
|
||||
Chave: ~/.ssh/civo
|
||||
```
|
||||
|
||||
Containers:
|
||||
- redis (Up 5 weeks)
|
||||
- glances (Up 5 weeks)
|
||||
- traefik (Up 4 weeks)
|
||||
- postgres (Up 3 weeks)
|
||||
|
||||
### ❌ Redbull (Coolify DEV)
|
||||
|
||||
```
|
||||
Status: Online (HTTP 302)
|
||||
IP: 185.194.141.70
|
||||
Chave: ~/.ssh/lh-zeus
|
||||
Erro: Permission denied (publickey)
|
||||
```
|
||||
|
||||
**Acao:** Adicionar chave publica ao servidor
|
||||
|
||||
### ❌ Azure DevOps
|
||||
|
||||
```
|
||||
Status: Falha
|
||||
Chave: ~/.ssh/ic-ad
|
||||
Erro: Permission denied (publickey)
|
||||
```
|
||||
|
||||
**Acao:** Registrar `~/.ssh/ic-ad.pub` em Azure DevOps > User Settings > SSH public keys
|
||||
|
||||
### ❌ Vim (Dokku PROD)
|
||||
|
||||
```
|
||||
Status: Indeterminado
|
||||
IP: 38.19.201.52
|
||||
Chave: ~/.ssh/lh-zeus
|
||||
Erro: Permission denied (publickey)
|
||||
```
|
||||
|
||||
**Acao:** Adicionar chave publica ao servidor
|
||||
|
||||
### ❌ Forgejo
|
||||
|
||||
```
|
||||
Status: Offline
|
||||
Host: forgejo-gru.rede5.com.br:2323
|
||||
Erro: Connection timed out
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Arquivos Faltando
|
||||
|
||||
| Arquivo | Uso |
|
||||
|---------|-----|
|
||||
| cloudflare-token | Cloudflare API |
|
||||
| coolify-redbull-token | Coolify API |
|
||||
| github-token | GitHub PAT |
|
||||
| absam-db-novo | Absam DB |
|
||||
| absam-token | Absam API |
|
||||
|
||||
---
|
||||
|
||||
## 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
|
||||
|
||||
---
|
||||
|
||||
*Testado em: 2026-02-21*
|
||||
255
inventcloud/invista/nexus/CREDENTIALS.md
Normal file
255
inventcloud/invista/nexus/CREDENTIALS.md
Normal file
|
|
@ -0,0 +1,255 @@
|
|||
# Credenciais e Conexoes - Consolidado
|
||||
|
||||
## Arquivos em ~/.ssh/
|
||||
|
||||
### Chaves SSH
|
||||
|
||||
| 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 |
|
||||
|
||||
### Arquivos de Configuracao
|
||||
|
||||
| Arquivo | Conteudo |
|
||||
|---------|----------|
|
||||
| `config` | Hosts SSH configurados |
|
||||
| `azure_devops_auth.json` | Azure DevOps PAT |
|
||||
| `oci-credentials.md` | Clusters OCI, ArgoCD, Compartments |
|
||||
| `known_hosts` | Fingerprints conhecidos |
|
||||
|
||||
---
|
||||
|
||||
## Azure DevOps
|
||||
|
||||
**Arquivo:** `~/.ssh/azure_devops_auth.json`
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| Organization | CN-Squad |
|
||||
| Project | Invista FIDC - Nexus |
|
||||
| PAT | `<REDACTED>` |
|
||||
|
||||
### 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 | `<REDACTED>` |
|
||||
| prd-cls-2 (PROD) | http://10.130.128.46 | admin | `<REDACTED>` |
|
||||
|
||||
### 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 <CLUSTER_OCID> \
|
||||
--file $HOME/.kube/config \
|
||||
--region sa-saopaulo-1 \
|
||||
--overwrite
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Servidores VPS
|
||||
|
||||
### Redbull (Coolify DEV)
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| IP | `185.194.141.70` |
|
||||
| Plataforma | Coolify v4 |
|
||||
| Chave SSH | `lh-zeus` |
|
||||
| Alias | `redbull` |
|
||||
|
||||
```bash
|
||||
ssh redbull
|
||||
```
|
||||
|
||||
### Echo (Dokku PROD)
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| IP | `152.53.120.181` |
|
||||
| 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` |
|
||||
| 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
|
||||
|
||||
```bash
|
||||
ssh nc2
|
||||
# Postgres: podman exec -it postgres psql -U gohorse -d app_db
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Cloudflare
|
||||
|
||||
**Status:** ❌ Token nao encontrado em `~/.ssh/cloudflare-token`
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| Email | yamamoto@rede5.com.br |
|
||||
|
||||
### Zones
|
||||
|
||||
| Zone | Zone ID |
|
||||
|------|---------|
|
||||
| gohorsejobs.com | `5e7e9286849525abf7f30b451b7964ac` |
|
||||
| rede5.com.br | `7eb6587a2c867bb9743719a8fabcd455` |
|
||||
|
||||
---
|
||||
|
||||
## 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 |
|
||||
|
||||
---
|
||||
|
||||
## Absam Cloud Database
|
||||
|
||||
**Status:** ❌ Tokens nao encontrados
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| 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)
|
||||
|
||||
---
|
||||
|
||||
## GitHub
|
||||
|
||||
| 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 |
|
||||
|
||||
---
|
||||
|
||||
## Bitbucket (Bionexo)
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| Chave SSH | `bionexo` / `bionexo.pub` |
|
||||
| Alias | `bitbucket.org-bionexo` |
|
||||
|
||||
---
|
||||
|
||||
## Beecare RabbitMQ
|
||||
|
||||
| Propriedade | Valor |
|
||||
|-------------|-------|
|
||||
| Chave SSH | `app01-rabbitmq-beecare-origin` |
|
||||
|
||||
---
|
||||
|
||||
## Arquivos Faltando
|
||||
|
||||
| Arquivo | Necessario para |
|
||||
|---------|-----------------|
|
||||
| `cloudflare-token` | Cloudflare API |
|
||||
| `coolify-redbull-token` | Coolify API |
|
||||
| `github-token` | GitHub PAT |
|
||||
| `absam-db-novo` | Absam DB credenciais |
|
||||
| `absam-token` | Absam API |
|
||||
|
||||
---
|
||||
|
||||
*Atualizado em: 2026-02-21*
|
||||
62
inventcloud/invista/nexus/SSH-DIAGNOSTIC.md
Normal file
62
inventcloud/invista/nexus/SSH-DIAGNOSTIC.md
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# 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*
|
||||
Loading…
Reference in a new issue