diff --git a/inventcloud/invista/nexus/CIVO-STORAGE.md b/inventcloud/invista/nexus/CIVO-STORAGE.md new file mode 100644 index 0000000..740ceb7 --- /dev/null +++ b/inventcloud/invista/nexus/CIVO-STORAGE.md @@ -0,0 +1,85 @@ +# Civo Object Storage + +**Arquivo:** `~/.ssh/civo-object-storage` + +## Credenciais + +| Propriedade | Valor | +|-------------|-------| +| Endpoint | https://objectstore.nyc1.civo.com | +| Bucket | rede5 | +| Access Key | `0UZ69TH03Q292DMTB82B` | +| Secret Key | `JJ5XXZYvoWdnqBCNP5oREjACyrXeH6EgSqeSybT7` | +| Region | NYC1 | + +## Dashboard + +https://dashboard.civo.com/object-stores/adb27426-51af-43a9-8d50-4d88ff8a28e7 + +## Configuracao AWS CLI + +```bash +# Criar ~/.aws/credentials +[civo] +aws_access_key_id = 0UZ69TH03Q292DMTB82B +aws_secret_access_key = JJ5XXZYvoWdnqBCNP5oREjACyrXeH6EgSqeSybT7 + +# Criar ~/.aws/config +[profile civo] +region = NYC1 +output = json +``` + +## Configuracao S3CMD + +```bash +# Criar ~/.s3cfg +[default] +access_key = 0UZ69TH03Q292DMTB82B +secret_key = JJ5XXZYvoWdnqBCNP5oREjACyrXeH6EgSqeSybT7 +host_base = objectstore.nyc1.civo.com +host_bucket = objectstore.nyc1.civo.com +use_https = True +``` + +## Comandos + +```bash +# Listar buckets +aws s3 ls --endpoint-url https://objectstore.nyc1.civo.com --profile civo + +# Listar conteudo do bucket +aws s3 ls s3://rede5/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo + +# Upload arquivo +aws s3 cp arquivo.txt s3://rede5/vault/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo + +# Upload pasta recursivo +aws s3 sync ~/.ssh/ s3://rede5/vault/ssh/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo + +# Download +aws s3 sync s3://rede5/vault/ssh/ ~/.ssh/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo + +# Deletar +aws s3 rm s3://rede5/vault/ --recursive --endpoint-url https://objectstore.nyc1.civo.com --profile civo +``` + +## S3CMD Alternative + +```bash +# Listar +s3cmd ls s3://rede5/ + +# Upload +s3cmd put arquivo.txt s3://rede5/vault/ + +# Sync +s3cmd sync ~/.ssh/ s3://rede5/vault/ssh/ + +# Download +s3cmd get --recursive s3://rede5/vault/ssh/ ~/.ssh/ +``` + +--- + +*Atualizado em: 2026-02-21* diff --git a/inventcloud/invista/nexus/CREDENTIALS.md b/inventcloud/invista/nexus/CREDENTIALS.md index 58dc319..09d16eb 100644 --- a/inventcloud/invista/nexus/CREDENTIALS.md +++ b/inventcloud/invista/nexus/CREDENTIALS.md @@ -11,7 +11,7 @@ | `lh-zeus` | ed25519 | Disponivel | - | | `ic-ad` | RSA | Azure DevOps | ❌ Nao registrada | | `bionexo` | ed25519 | Bitbucket | ✅ OK | -| `forgejo-gru` | ed25519 | Removido | +| `civo-object-storage` | Civo S3 Keys | | `app01-rabbitmq-beecare-origin` | ed25519 | Beecare | - | ### Chaves SSH Publicas @@ -30,7 +30,7 @@ |---------|----------| | `config` | Hosts SSH configurados | | `azure_devops_auth.json` | Azure DevOps PAT | -| `forgejo-token` | Forgejo API Token | +| `github-token` | GitHub API Token | | `mxroute-api-key` | MXRoute Email API | | `cloudflare-token` | Cloudflare API Key | | `known_hosts` | Fingerprints conhecidos | @@ -142,12 +142,85 @@ Ver documentacao em `OCI.md` --- -## GitHub +## Civo Object Storage + +**Arquivo:** `~/.ssh/civo-object-storage` | Propriedade | Valor | |-------------|-------| -| Chave SSH | `github` | -| Status | ✅ OK | +| Endpoint | https://objectstore.nyc1.civo.com | +| Bucket | rede5 | +| Access Key | Ver arquivo | +| Secret Key | Ver arquivo | +| Region | NYC1 | + +### Uso + +```bash +# Configurar aws cli ou s3cmd +# ~/.aws/credentials: +# [civo] +# aws_access_key_id = +# aws_secret_access_key = + +# S3CMD config: +# ~/.s3cfg: +# access_key = +# secret_key = +# host_base = objectstore.nyc1.civo.com +# host_bucket = objectstore.nyc1.civo.com + +# Upload +aws s3 cp ~/.ssh/ s3://rede5/vault/ssh/ --recursive --endpoint-url https://objectstore.nyc1.civo.com + +# Download +aws s3 sync s3://rede5/vault/ssh/ ~/.ssh/ --endpoint-url https://objectstore.nyc1.civo.com +``` + +### Backup + +Backup das credenciais SSH em: `s3://rede5/vault/ssh/` + +--- + +## GitHub + +**Arquivo Token:** `~/.ssh/github-token` + +**Chave SSH:** `~/.ssh/github` / `~/.ssh/github.pub` + +| Propriedade | Valor | +|-------------|-------| +| Usuario | tiagoyamamoto | +| Nome | Tiago Yamamoto | +| Company | Rede5 | +| Location | Goiania | +| Public Repos | 56 | +| Private Repos | 125 | + +**Acesso:** SSH ✅ + API ✅ + +### Uso SSH + +```bash +ssh -T git@github.com +git clone git@github.com:tiagoyamamoto/.git +``` + +### Uso API + +```bash +GH_TOKEN=$(cat ~/.ssh/github-token) + +# Usuario atual +curl -H "Authorization: token $GH_TOKEN" "https://api.github.com/user" + +# Listar repositorios +curl -H "Authorization: token $GH_TOKEN" "https://api.github.com/user/repos?per_page=100" + +# Clone via HTTPS com token +git clone https://tiagoyamamoto:$GH_TOKEN@github.com//.git +``` ---