Playwright-based tool for enrolling AI agent identities in Cloudron,
generating API keys via SSO (Gitea/Discourse/Redmine), and storing
all credentials in Bitwarden per-agent collections.
- provision-agent.py: main Playwright automation (Cloudron enroll,
SSO login, API key generation, verification)
- bw-helper.py: Bitwarden CLI wrapper (password gen, item CRUD,
TOTP, session management)
- Dockerfile: Playwright v1.52.0 + bw CLI + Python deps
- agents.yaml.example: manifest template for Q3/Q4 agents
- TSYSGroupAIOS framework adopted (hooks, rules engine, Makefile)
💘 Generated with Crush
Assisted-by: Crush:glm-5.2
22 lines
484 B
Docker
22 lines
484 B
Docker
FROM mcr.microsoft.com/playwright:v1.52.0-noble
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
jq \
|
|
unzip \
|
|
libzbar0 \
|
|
libzbar-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Bitwarden CLI
|
|
RUN npx -y @bitwarden/cli@2026.7.0 || true
|
|
|
|
# Install Python dependencies
|
|
COPY requirements.txt /tmp/
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
ENTRYPOINT ["python3", "/app/provision-agent.py"]
|