Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: 🎡 deprecated python 3.7 #9

Merged
merged 5 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
15 changes: 0 additions & 15 deletions .github/workflows/python3.7.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/windows.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: "windows-latest"
python-version: "3.9"
python-version: "3.10"
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"
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@
[![macOs](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/macos.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/macos.yml)
[![Windows](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/windows.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/windows.yml)

![Python <=3.6](https://img.shields.io/badge/python-<=3.6-red.svg)
![Python <=3.7](https://img.shields.io/badge/python-<=3.7-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://img.shields.io/badge/python->=3.12-yellow.svg)

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
48 changes: 28 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 32 additions & 32 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
-i https://pypi.org/simple
attrs==23.1.0 ; python_version >= '3.6'
attrs==22.2.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'
botocore==1.29.55; python_version >= '3.7'
certifi==2022.12.7; 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'
charset-normalizer==3.0.1
click==8.1.3; python_version >= '3.7'
coverage==7.0.5; python_version >= '3.7'
coverage-badge==1.1.0
cryptography==41.0.4 ; python_version >= '3.6'
cryptography==39.0.0; 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'
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.2; python_version >= '3.7'
mock==5.0.1
moto==4.1.0
mypy-extensions==1.0.0
packaging==23.2 ; 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'
mypy-extensions==0.4.3
packaging==23.0; python_version >= '3.7'
pathspec==0.10.3; python_version >= '3.7'
platformdirs==2.6.2; python_version >= '3.7'
pluggy==1.0.0; python_version >= '3.6'
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'
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.22.0; python_version >= '3.7'
s3transfer==0.6.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'
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.1
typing-extensions==4.4.0; python_version < '3.10'
urllib3==1.26.14; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
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.4.2; python_version >= '3.7'
werkzeug==2.2.2; python_version >= '3.7'
xmltodict==0.13.0; python_version >= '3.4'
ldap3==2.9.1
pyasn1==0.5.0
pyasn1==0.4.8
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.26.55
botocore==1.29.55; 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.4.8
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.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==1.26.14; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
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