Skip to content

Commit

Permalink
ci: 🎡 deprecated python 3.7
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 🧨 python3.7 no longer supported
  • Loading branch information
DanielRDias committed Nov 17, 2023
1 parent b23ef0b commit 14ab3c9
Show file tree
Hide file tree
Showing 10 changed files with 504 additions and 502 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
uses: ./.github/workflows/pytest.yml
with:
os: "ubuntu-latest"
python-version: "3.9"
python-version: "3.10"
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
uses: ./.github/workflows/pytest.yml
with:
os: "macos-latest"
python-version: "3.9"
python-version: "3.10"
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
type: string
python-version:
description: "Python version passed from the caller workflow"
default: "3.9"
default: "3.10"
required: false
type: string

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: python3.7
name: python3.12

on:
push:
Expand All @@ -12,4 +12,4 @@ jobs:
uses: ./.github/workflows/pytest.yml
with:
os: "ubuntu-latest"
python-version: "3.7"
python-version: "3.12"
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ coverage-badge = "*"
py4j = "*"

[requires]
python_version = ">=3.7"
python_version = ">=3.8"
895 changes: 452 additions & 443 deletions Pipfile.lock

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@

![Python <=3.6](https://img.shields.io/badge/python-<=3.6-red.svg)

[![Python 3.7](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.7.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.7.yml)
[![Python 3.8](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.8.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.8.yml)
[![Python 3.9](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.9.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.9.yml)
[![Python 3.10](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.10.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.10.yml)
[![Python 3.11](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.11.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.11.yml)

![Python >=3.12](https://img.shields.io/badge/python->=3.12-greenyellow.svg)
[![Python 3.12](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.12.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.12.yml)

The LDAP Password Rotation Service offers a lambda function that integrates with AWS Secrets Manager and can update the user password to a new random password and update it in AWS Secrets Manager.

The AWS Lambda Function expects to receive a key/value (JSON) secret from AWS Secrets Manager, with a field with the user in which the password should be rotated and the current password. The username has to be the user principal name used to authenticate with LDAP.

## Quick Start

You'll need to have [Python (>=3.7)](https://www.python.org/) with [pipenv](https://github.com/pypa/pipenv), [NodeJS (>=16)](https://nodejs.org/) with [npm (>=8)](https://www.npmjs.com/) installed, and [AWS CLI](https://aws.amazon.com/cli/).
You'll need to have [Python (>=3.8)](https://www.python.org/) with [pipenv](https://github.com/pypa/pipenv), [NodeJS (>=16)](https://nodejs.org/) with [npm (>=8)](https://www.npmjs.com/) installed, and [AWS CLI](https://aws.amazon.com/cli/).

Optional: [Make](https://www.gnu.org/software/make/)

Expand Down
75 changes: 35 additions & 40 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,41 @@
-i https://pypi.org/simple
attrs==23.1.0 ; python_version >= '3.6'
black==22.12.0
boto3==1.26.55
botocore==1.29.161 ; python_version >= '3.7'
certifi==2023.7.22 ; python_version >= '3.6'
cffi==1.15.1
charset-normalizer==3.3.0
click==8.1.3 ; python_version >= '3.7'
coverage==7.2.7 ; python_version >= '3.7'
black==23.11.0
boto3==1.29.2
botocore==1.32.2; python_version >= '3.7'
certifi==2023.7.22; python_version >= '3.6'
cffi==1.16.0; python_version >= '3.8'
charset-normalizer==3.3.2; python_full_version >= '3.7.0'
click==8.1.7; python_version >= '3.7'
coverage==7.3.2; python_version >= '3.8'
coverage-badge==1.1.0
cryptography==41.0.4 ; python_version >= '3.6'
docker==6.0.1
exceptiongroup==1.1.0 ; python_version < '3.11'
idna==3.4 ; python_version >= '3.5'
iniconfig==2.0.0 ; python_version >= '3.7'
jinja2==3.1.2 ; python_version >= '3.7'
jmespath==1.0.1 ; python_version >= '3.7'
markupsafe==2.1.3 ; python_version >= '3.7'
mock==5.0.1
moto==4.1.0
mypy-extensions==1.0.0
packaging==23.0 ; python_version >= '3.7'
pathspec==0.11.1 ; python_version >= '3.7'
platformdirs==3.5.1 ; python_version >= '3.7'
pluggy==1.0.0 ; python_version >= '3.6'
cryptography==41.0.5; python_version >= '3.7'
docker==6.1.3
idna==3.4; python_version >= '3.5'
iniconfig==2.0.0; python_version >= '3.7'
jinja2==3.1.2; python_version >= '3.7'
jmespath==1.0.1; python_version >= '3.7'
markupsafe==2.1.3; python_version >= '3.7'
mock==5.1.0
moto==4.2.9
mypy-extensions==1.0.0; python_version >= '3.5'
packaging==23.2; python_version >= '3.7'
pathspec==0.11.2; python_version >= '3.7'
platformdirs==4.0.0; python_version >= '3.7'
pluggy==1.3.0; python_version >= '3.8'
py4j==0.10.9.7
pycparser==2.21
pytest==7.2.1
pytest-cov==4.0.0
python-dateutil==2.8.2 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
requests==2.28.2 ; python_version >= '3.7' and python_version < '4'
responses==0.23.1 ; python_version >= '3.7'
s3transfer==0.6.1 ; python_version >= '3.7'
six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
toml==0.10.2 ; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
tomli==2.0.1 ; python_full_version < '3.11.0a7'
types-toml==0.10.8.7
typing-extensions==4.5.0 ; python_version < '3.10'
urllib3==1.26.18 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
pytest==7.4.3
pytest-cov==4.1.0
python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyyaml==6.0.1; python_version >= '3.6'
requests==2.31.0; python_version >= '3.7'
responses==0.24.1; python_version >= '3.8'
s3transfer==0.7.0; python_version >= '3.7'
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
urllib3==2.0.7; python_version >= '3.10'
uuid==1.30
websocket-client==1.6.1 ; python_version >= '3.7'
werkzeug==2.2.3 ; python_version >= '3.7'
xmltodict==0.13.0 ; python_version >= '3.4'
websocket-client==1.6.4; python_version >= '3.8'
werkzeug==3.0.1; python_version >= '3.8'
xmltodict==0.13.0; python_version >= '3.4'
ldap3==2.9.1
pyasn1==0.5.0
pyasn1==0.5.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-i https://pypi.org/simple
boto3==1.26.54
botocore==1.29.161 ; python_version >= '3.7'
jmespath==1.0.1 ; python_version >= '3.7'
boto3==1.29.2
botocore==1.32.2; python_version >= '3.7'
jmespath==1.0.1; python_version >= '3.7'
ldap3==2.9.1
pyasn1==0.5.0
python-dateutil==2.8.2 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
s3transfer==0.6.1 ; python_version >= '3.7'
six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
urllib3==1.26.18 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
pyasn1==0.5.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
s3transfer==0.7.0; python_version >= '3.7'
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
urllib3==2.0.7; python_version >= '3.10'
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ layers:
ldappw:
path: layer
compatibleRuntimes:
- python3.7
- python3.8
- python3.9
- python3.10
compatibleArchitectures:
- x86_64
- arm64
Expand Down

0 comments on commit 14ab3c9

Please sign in to comment.