mirror of
https://github.com/freelabz/secator
synced 2026-05-24 10:08:23 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added AI-powered penetration testing capabilities with attack and chat modes * Introduced workspace management commands (set default, view current) * Added query engine with support for MongoDB, API, and JSON backends * New markdown exporter for AI-generated content * Interactive terminal menu for user prompts * AI addon installation command * **Configuration** * New workspace and AI configuration sections with customizable settings * Updated dependency constraints (rich-click, click) * **Improvements** * Enhanced prompt rendering and history management * Sensitive data encryption for AI workflows <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
868 B
Text
36 lines
868 B
Text
FROM python:3.12-alpine
|
|
|
|
RUN apk add --no-cache \
|
|
flock \
|
|
gcc \
|
|
musl-dev \
|
|
linux-headers \
|
|
python3-dev \
|
|
sudo
|
|
|
|
RUN adduser -D secator
|
|
|
|
# Allow secator to run anything as root without password
|
|
RUN echo "secator ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
|
chmod 0440 /etc/sudoers
|
|
|
|
USER secator
|
|
|
|
WORKDIR /code
|
|
ENV PATH="${PATH}:/home/secator/.local/bin"
|
|
ENV CARGO_HOME="/home/secator/.local"
|
|
ENV GOBIN="/home/secator/.local/bin"
|
|
ENV GOPATH="/home/secator/go"
|
|
ENV TERM="xterm-256color"
|
|
ENV SECATOR_SECURITY_PROMPT_SUDO_PASSWORD="0"
|
|
|
|
COPY --chown=secator:secator . .
|
|
RUN pip install --no-cache-dir -e ".[dev]" && \
|
|
secator install addons worker && \
|
|
secator install addons mongodb && \
|
|
secator install addons redis && \
|
|
secator install addons gcs && \
|
|
secator install addons ai
|
|
|
|
ENTRYPOINT ["secator"]
|
|
CMD ["worker", "-r"]
|