Files
marketplace-ai/plugins/server-ops/skills/server-onboard/SKILL.md
T

4.1 KiB

name, description
name description
server-onboard Заполняет карточку сервера, защищает учётные данные, проверяет первый доступ по SSH или переводит доступ на именованные подключения.

Use the server-ops 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. 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 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.