Skip to content

Commit

Permalink
adding build files (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
himynamesdave authored Feb 4, 2025
1 parent c48d6ec commit 127119b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ R2_ENDPOINT_URL=
R2_BUCKET_NAME=
R2_ACCESS_KEY=
R2_SECRET_KEY=
R2_CUSTOM_DOMAIN=
R2_CUSTOM_DOMAIN=
# dogesec commons
SRO_OBJECTS_ONLY_LATEST=
7 changes: 6 additions & 1 deletion .env.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@ You can choose to store static assets on Cloudflare on R2. Default is local.
* `R2_SECRET_KEY`: BLANK
* generated when creating an R2 API token
* `R2_CUSTOM_DOMAIN`: BLANK
* this value is optional when using R2, but if you don't set your bucket to public, your images will hit 403s as they will hit the raw endpoint (e.g. https://ID.r2.cloudflarestorage.com/BUCKET/IMAGE/PATH.jpg) which will be inaccessible. The easiest way to do this is to enable R2.dev subdomain for the bucket. Looks like `pub-ID.r2.dev` . Do not include the `https://` part
* this value is optional when using R2, but if you don't set your bucket to public, your images will hit 403s as they will hit the raw endpoint (e.g. https://ID.r2.cloudflarestorage.com/BUCKET/IMAGE/PATH.jpg) which will be inaccessible. The easiest way to do this is to enable R2.dev subdomain for the bucket. Looks like `pub-ID.r2.dev` . Do not include the `https://` part

## DOGESEC COMMONS

* `SRO_OBJECTS_ONLY_LATEST`: `False`
* Due to the way stix2arango works, SCOs with same ID (and also relationships connecting them to other object) will be aged out . This doesn't work in Stixify because we create the same SCO for many reports, but only one is ever `_is_latest=true` due to S2A versioning logic. This value should always be set to `false` to ensure all relationships to SCOs are shown via the API. [You can read more about this in this issue](https://github.com/muchdogesec/dogesec_commons/issues/47)
1 change: 1 addition & 0 deletions Dockerfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ENV POSTGRES_USER=obstracts
ENV POSTGRES_DB=obstracts_database
ENV POSTGRES_HOST=host.docker.internal
ENV R2_ENDPOINT_URL=https://34fe0652772b226d5f06050bf5050738.r2.cloudflarestorage.com
ENV SRO_OBJECTS_ONLY_LATEST=False

WORKDIR /usr/src/app
COPY requirements.txt ./
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ django-storages[s3]==1.14.4
django-cleanup==9.0.0
file2txt @ https://github.com/muchdogesec/file2txt/releases/download/main-2024-11-29-15-39-43/file2txt-0.0.1b2-py3-none-any.whl
txt2stix @ https://github.com/muchdogesec/txt2stix/releases/download/main-2025-01-29-10-35-28/txt2stix-0.0.1b5-py3-none-any.whl
dogesec_commons[stixifier] @ https://github.com/muchdogesec/dogesec_commons/releases/download/main-2025-02-03-10-42-46/dogesec_commons-0.0.4rc0-py3-none-any.whl
stix2arango @ https://github.com/muchdogesec/stix2arango/releases/download/main-2025-02-01-18-38-26/stix2arango-0.0.3-py3-none-any.whl
dogesec_commons[stixifier] @ https://github.com/muchdogesec/dogesec_commons/releases/download/main-2025-02-04-13-24-47/dogesec_commons-0.0.4rc1-py3-none-any.whl
stix2arango @ https://github.com/muchdogesec/stix2arango/releases/download/main-2025-02-04-14-14-39/stix2arango-0.0.4rc0-py3-none-any.whl

0 comments on commit 127119b

Please sign in to comment.