Add Codex marketplace and Server Ops plugin

This commit is contained in:
ВяткинАртём committed 2026-11-27 09:19:26 +03:00
1 parent 33285dcc8c
commit 42a6d05672
38 files changed
+2464 -1

No files matched your search

@@ -0,0 +1,71 @@
---
name: server-onboard
description: Заполняет карточку сервера, защищает учётные данные, проверяет первый доступ по SSH или переводит доступ на именованные подключения.
---
Use the [server-ops checkout](../server-ops/SKILL.md#select-the-checkout)
for all repository paths and commands in this skill.
## First connection
1. Use the operator's `servers/<alias>/connection.yml` as the starting point.
In the selected checkout, `servers/EXAMPLE.server/connection.yml` shows
the short and expanded formats. `port` defaults to 22. Reserve
`EXAMPLE.server`, `all`, and `ungrouped` for the example or tooling.
2. Prepare usable credentials from a protected source. If a working credential
is missing, ask for it through local terminal entry or an approved protected
source. Confirm the SSH host key through a trusted fingerprint or provider
console before saving `host_key` for the endpoint. When collecting a key
with `ssh-keyscan`, compare its fingerprint against that trusted source.
3. Store supplied passwords and private keys as encrypted credentials. Run
`check-secret ALIAS` and verify a fresh read-only login using the saved
method before reporting portable access. Follow the
[operation skill](../server-operate/SKILL.md#connect-and-verify). Complete the
card and inventory from observed facts. Start server notes from
`servers/EXAMPLE.server/server-notes/README.md` in the selected checkout.
Record the outcome in `servers/<alias>/server-notes/HISTORY.md`. Use
[server initialization](../server-initialize/SKILL.md) when setup is requested.
## Credentials
For SOPS on Linux, activate the project env and use
`python3 .agents/scripts/ops.py` from the checkout root. Run `init-age` when
preparing encryption. Paths in the following commands identify files and
fields. Pass secret values only through hidden local prompts, protected
stdin, or protected files.
| Subcommand | Use |
| --- | --- |
| `secret ALIAS` | Create the first encrypted credential using a hidden password prompt |
| `secret --key-file PATH ALIAS` | Import a protected private key for `auth: encrypted_key` with an optional hidden passphrase |
| `edit-secret ALIAS` | Open existing ciphertext in the local SOPS editor |
| `set-secret ALIAS INDEX` | Create or update one encrypted field using a JSON string on stdin |
| `check-secret ALIAS` | Verify the stored credentials decrypt without printing them |
For `secret`, choose a named profile with `--connection NAME` and a method
with `--auth METHOD`. Use `--user LOGIN` when the login is unique.
Use `agent` or `key_file` only for an operator-selected external credential.
An agent public-key selector or an external private-key path goes in
`identity_file` for the selected method.
New credential records go under `credentials` in `connection.yml`. Credential
commands continue to use an existing `secrets.sops.yml` for a legacy card.
Use indexes relative to the credentials: `users.<login>` for short and legacy
cards, `connections.<name>` for named profiles, and
`services.<service>.<account>` for application accounts. For example, use
`["connections"]["NAME"]["password"]` for a named SSH password. Verify SSH
access separately after changing an SSH credential. If the existing age
identity cannot be unlocked, ask the operator to restore the matching `.env`.
## Expand to named connections
1. Keep the old card as the active route while preparing the new format.
Name the existing endpoint and login. For a SOPS-backed account, run
`python3 .agents/scripts/ops.py copy-ssh-secrets ALIAS NAME` before replacing
the card. Select another existing account with `--user LOGIN` as needed.
Preserve the old entries through verification.
2. Write the `connections` map and preserve the original default route.
Populate additional profiles from known endpoints, users, and settings
within the active scope. Record the correct pin for each endpoint.
3. Verify the named profile with a fresh login. Retain recovery access while
resolving any failure. Update the inventory and record the outcome.
@@ -0,0 +1,4 @@
interface:
display_name: "Добавление сервера"
short_description: "Карточка сервера и проверка первого входа по SSH"
default_prompt: "С помощью $server-onboard дополни карточку app-01 и проверь первый вход по SSH."