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
- Use the operator's
servers/<alias>/connection.ymlas the starting point. In the selected checkout,servers/EXAMPLE.server/connection.ymlshows the short and expanded formats.portdefaults to 22. ReserveEXAMPLE.server,all, andungroupedfor the example or tooling. - 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_keyfor the endpoint. When collecting a key withssh-keyscan, compare its fingerprint against that trusted source. - Store supplied passwords and private keys as encrypted credentials. Run
check-secret ALIASand 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 fromservers/EXAMPLE.server/server-notes/README.mdin the selected checkout. Record the outcome inservers/<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
- 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 NAMEbefore replacing the card. Select another existing account with--user LOGINas needed. Preserve the old entries through verification. - Write the
connectionsmap 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. - Verify the named profile with a fresh login. Retain recovery access while resolving any failure. Update the inventory and record the outcome.