Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
023139b
Bump cryptography from 37.0.2 to 39.0.2 (#224)
dependabot[bot] Mar 17, 2023
7e0ace5
[Snyk] Security upgrade werkzeug from 2.1.2 to 2.2.3 (#221)
devinlundberg Mar 17, 2023
52a6164
Remove py3.7 (#234)
Jun 9, 2023
7d421a3
Bump cryptography from 39.0.2 to 41.0.1 (#260)
dependabot[bot] Jun 9, 2023
5550735
Bump tox from 3.25.0 to 4.6.0 (#262)
dependabot[bot] Jun 9, 2023
4ae28db
Bump fakeredis from 1.7.5 to 2.14.1 (#263)
dependabot[bot] Jun 9, 2023
9734839
Bump flask from 2.1.2 to 2.3.2 (#250)
dependabot[bot] Jun 9, 2023
08e7bad
Bump pytest from 7.1.2 to 7.3.1 (#243)
dependabot[bot] Jun 9, 2023
ec09645
Bump redis from 4.5.3 to 4.5.5 (#253)
dependabot[bot] Jun 9, 2023
0b3bc74
Bump coverage from 6.4.1 to 7.2.7 (#267)
dependabot[bot] Jun 12, 2023
c0fcde5
Bump pytest-cov from 3.0.0 to 4.1.0 (#266)
dependabot[bot] Jun 12, 2023
55f02f3
Bump actions/checkout from 3 to 4 (#282)
dependabot[bot] Sep 25, 2023
e6d1548
[Snyk] Security upgrade cryptography from 41.0.1 to 41.0.4 (#284)
devinlundberg Sep 25, 2023
8a83c68
Bump tox from 4.6.0 to 4.11.3 (#287)
dependabot[bot] Sep 26, 2023
eb7880b
Bump fakeredis from 2.14.1 to 2.20.0
dependabot[bot] Oct 23, 2023
27abd37
Bump redis from 4.5.5 to 5.0.1
dependabot[bot] Oct 23, 2023
ddfcc8f
Install deps from requirements.txt (#303)
Dec 1, 2023
fde0b7e
Prepare 1.6.1 release (#304)
Dec 2, 2023
07d9cb9
Bump version: 1.6.0 → 1.6.1 (#305)
Dec 2, 2023
13a66e4
Use urllib.parse for quoting/unquoting plus instead of deprecated wer…
vin01 Dec 2, 2023
0cc9823
Bump actions/setup-python from 4 to 5 (#306)
dependabot[bot] Dec 22, 2023
9772e41
Bump github/codeql-action from 2 to 3 (#309)
dependabot[bot] Dec 22, 2023
b8a4f09
Bump werkzeug from 2.3.3 to 3.0.1 (#295)
dependabot[bot] Dec 22, 2023
b217cdc
Bump flask from 2.3.2 to 3.0.0 (#294)
dependabot[bot] Dec 22, 2023
6a2ddce
Bump version: 1.6.1 → 1.6.2 (#311)
Jan 3, 2024
5166d90
Bump pytest from 7.3.1 to 7.4.4
dependabot[bot] Jan 1, 2024
6512865
Bump freezegun from 1.2.1 to 1.4.0
dependabot[bot] Jan 3, 2024
991d50d
Bump flake8 from 6.0.0 to 7.0.0
dependabot[bot] Jan 5, 2024
4fc59cc
Add health check endpoint (#329)
Feb 3, 2024
c8023b8
Bump fakeredis from 2.20.0 to 2.21.1
dependabot[bot] Feb 16, 2024
17291b4
Bump cryptography from 41.0.4 to 42.0.3
dependabot[bot] Feb 19, 2024
57a233f
Bump pytest from 7.4.4 to 8.0.1
dependabot[bot] Feb 20, 2024
4c9c518
Bump coverage from 7.2.7 to 7.4.2
dependabot[bot] Feb 20, 2024
c6e8d92
Bump tox from 4.11.3 to 4.13.0
dependabot[bot] Feb 20, 2024
03e209e
add i18n to Snappass
systeembeheerder Feb 14, 2024
3b080de
remove import of flask, g
systeembeheerder Feb 16, 2024
7fb6efb
Add empty translations for de and es
systeembeheerder Feb 16, 2024
27b2fb6
Add German Translation
systeembeheerder Feb 19, 2024
1c5103f
fix missing bracket
systeembeheerder Feb 21, 2024
52a4fd0
restore extra spaces
systeembeheerder Feb 22, 2024
1807f41
Add Spanish and fixup NL&DE
systeembeheerder Feb 22, 2024
4e48a78
TIL flake8 :)
systeembeheerder Feb 23, 2024
ef0d8db
Bump actions/cache from 3 to 4 (#320)
dependabot[bot] Feb 23, 2024
2299dd3
Bump jinja2 from 3.1.2 to 3.1.3 (#336)
dependabot[bot] Feb 23, 2024
2b026ba
add /api endpoint for automated flows (#316)
reinoud Feb 26, 2024
4bd2885
Bump pytest from 8.0.1 to 8.1.0
dependabot[bot] Mar 4, 2024
dcbb91f
:construction: Add a 'modern' REST API
XREvo Mar 29, 2024
398a177
:construction: Add RFC7807 response type
XREvo Mar 29, 2024
a0bd0b0
:construction: Import missing parts
XREvo Mar 29, 2024
ac881a1
:art: Cleanup
XREvo Mar 29, 2024
cda0682
:recycle: Use token as name for password_key
XREvo Mar 29, 2024
9070e67
:technologist: Use HATEHOAS style
XREvo Mar 29, 2024
0e22683
:white_check_mark: Finish test suite implementation
XREvo Mar 29, 2024
786c323
:memo: Add documentation about new APIs
XREvo Mar 29, 2024
37d31b0
:art: flake8
XREvo Mar 29, 2024
80dff8a
:children_crossing: Remove URL encoding from token
XREvo Mar 30, 2024
43f3fb3
:children_crossing: Add a link to web view
XREvo Mar 30, 2024
6627f4b
Bump pytest-cov from 4.1.0 to 5.0.0
dependabot[bot] Mar 25, 2024
6785602
Bump wheel from 0.42.0 to 0.43.0
dependabot[bot] Apr 10, 2024
fec8d2c
fix: requirements.txt to reduce vulnerabilities
snyk-bot May 6, 2024
611818d
Bump tox from 4.13.0 to 4.16.0 (#376)
dependabot[bot] Aug 2, 2024
14260e0
Bump coverage from 7.4.2 to 7.6.0 (#379)
dependabot[bot] Aug 2, 2024
4f46de8
Bump fakeredis from 2.21.1 to 2.23.4 (#381)
dependabot[bot] Aug 2, 2024
f60cdd7
[Snyk] Security upgrade cryptography from 42.0.3 to 42.0.8 (#371)
devinlundberg Aug 2, 2024
90044cf
Bump freezegun from 1.4.0 to 1.5.1 (#362)
dependabot[bot] Aug 2, 2024
1bda1ed
[Snyk] Security upgrade jinja2 from 3.1.3 to 3.1.4 (#359)
devinlundberg Aug 2, 2024
8ca0bfe
Bump itsdangerous from 2.1.2 to 2.2.0 (#347)
dependabot[bot] Aug 2, 2024
08122d0
Environment variables for default port and bind address (#342)
Radical-Egg Aug 2, 2024
acf9a8b
Bump cryptography from 42.0.8 to 43.0.0 (#382)
dependabot[bot] Aug 5, 2024
549a134
Bump pytest from 8.1.0 to 8.3.2 (#385)
dependabot[bot] Aug 5, 2024
bdfb3a4
Bump flake8 from 7.0.0 to 7.1.1 (#383)
dependabot[bot] Aug 5, 2024
fb22d8a
Bump wheel from 0.43.0 to 0.44.0 (#384)
dependabot[bot] Aug 5, 2024
d211db1
Bump tox from 4.16.0 to 4.17.0 (#386)
dependabot[bot] Aug 6, 2024
b942a9f
Bump tox from 4.17.0 to 4.18.0 (#388)
dependabot[bot] Aug 27, 2024
96a294a
Bump fakeredis from 2.23.4 to 2.24.1 (#390)
dependabot[bot] Aug 27, 2024
174e597
fix i18n (#375)
viktorhaid Sep 11, 2024
cc7ad01
[Snyk] Security upgrade cryptography from 43.0.0 to 43.0.1 (#391)
devinlundberg Sep 11, 2024
c903c15
Bump tox from 4.18.0 to 4.23.0 (#405)
dependabot[bot] Oct 18, 2024
718c572
Bump fakeredis from 2.24.1 to 2.25.1 (#397)
dependabot[bot] Oct 18, 2024
2480674
Bump redis from 5.0.1 to 5.1.1 (#401)
dependabot[bot] Oct 18, 2024
f841ace
Improve german translation (#412)
neuhaus Nov 14, 2024
b8a063d
[Snyk] Security upgrade werkzeug from 2.2.3 to 3.0.6 (#409)
devinlundberg Nov 14, 2024
a9ec697
Update NL messages.po (#424)
systeembeheerder Dec 4, 2024
e5f1923
add French translation by snaaky404, fixes #380 (#422)
systeembeheerder Dec 4, 2024
64f4477
ci(pc): add pre-commit configuration
Feb 25, 2025
4487393
ci(Drone): add pipeline manifest
Feb 25, 2025
becad90
feat(branding): add safepass branding
Feb 25, 2025
d213534
ci(workflows): update branch names in triggers
Feb 25, 2025
38ee5fc
ci(pc): add samplr pc hook
Feb 25, 2025
fb13c0f
fix(project): fix formatting issues
Feb 25, 2025
7069b1f
ci(samplr): add samplr configuration
Feb 25, 2025
b15d8fd
build(gitignore): update ignores for environment configuration
Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
CONTRIBUTING.rst
docker-compose.yml
Dockerfile
# requirements.txt
tests.py
tox.ini

Expand Down
8 changes: 8 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Drone CI File!

kind: template
load: container.jsonnet
data:
repositoryName: josaorg/safepass
releaseName: safepass
buildArgs:
8 changes: 8 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "CodeQL config"

paths-ignore:
- tests.py
- 'snappass/static/bootstrap/**'
- 'snappass/static/clipboardjs/**'
- 'snappass/static/fontawesome/**'
- 'snappass/static/jquery/**'
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Lint
if: matrix.python-version == '3.10'
run: tox -e flake8
- name: Tests
run: tox
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Lint
if: matrix.python-version == '3.10'
run: tox -e flake8
- name: Tests
run: tox
45 changes: 45 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "CodeQL"

on:
push:
branches: ["master"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["master"]
# Skip the workflow if PR only contains changes to files matching the following path patterns
paths-ignore:
- tests.py
- "**/*.md"
- "**/*.rst"
- "snappass/static/bootstrap/**"
- "snappass/static/clipboardjs/**"
- "snappass/static/fontawesome/**"
- "snappass/static/jquery/**"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript", "python"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.project
*.rdb
junit*xml

env/
env/.env*
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -13,7 +12,7 @@ __pycache__/

# Distribution / packaging
.Python
env/
.env.*
build/
develop-eggs/
dist/
Expand Down Expand Up @@ -50,3 +49,7 @@ htmlcov/
# virtualenv
venv/
ENV/

# Translation catalogs
*.mo
*.pot
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# .pre-commit-config.yaml
default_stages: [commit]
default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.0
rev: v8.24.0
hooks:
- id: gitleaks
name: detect hardcoded secrets
- repo: https://github.com/jordanopensource/pre-commit-hooks
rev: v0.4.4
hooks:
- id: run-samplr
17 changes: 17 additions & 0 deletions .samplr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
######################
# samplr configuration
######################

# Want to include a header that indicates this is an autogenerated file?
autogencomments: true

# regex matches for filenames that you want to include or exclude from
# the samplr generation. Be careful to indent using spaces.
# For a file to be sampled, it has to meet both requirements: be included and not excluded.
excludes:
- \.sample # It's a good idea to exclude all *.sample* files, otherwise it will behave recursively
- \.py$ # Most of the times, the code files won't need samples
includes:
- ^env # Matches files like ./config/setup.yml or ./configuration/script.sh
- \.yml$ # Matches all .yml files in the project
- Dockerfile # Matches all Dockerfile in the project
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ RUN groupadd -r snappass && \

WORKDIR $APP_DIR

COPY ["setup.py", "MANIFEST.in", "README.rst", "AUTHORS.rst", "Makefile", "requirements.txt", "$APP_DIR/"]
COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
COPY ["./snappass", "$APP_DIR/snappass"]

RUN apt-get update && \
apt-get install make && \
make prod && \
python setup.py install && \
RUN pip install -r requirements.txt

RUN pybabel compile -d snappass/translations

RUN python setup.py install && \
chown -R snappass $APP_DIR && \
chgrp -R snappass $APP_DIR

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include *.rst LICENSE
recursive-include snappass/static *
recursive-include snappass/templates *
recursive-include snappass/translations *
Loading
Loading