Skip to main content

AWS Credential Manager and CloudFox Integration Tool

Project description

🦊 TempFox

PyPI version License: MIT Python 3.6+

Description

TempFox is a streamlined Python tool that manages AWS credentials and automates CloudFox security checks. It elegantly handles both long-term (AKIA) and temporary (ASIA) AWS credentials.

  _____                   _____ 
 |_   _|__ _ __ ___  _ _|  ___|____  __
   | |/ _ \ '_ ` _ \| '_ \ |_ / _ \ \/ /
   | |  __/ | | | | | |_) |  _| (_) >  < 
   |_|\___|_| |_| |_| .__/|_|  \___/_/\_\
                     |_|                   

Key Features

  • 🔄 Automatic AWS CLI installation and version detection
  • 🔑 Support for both AKIA (long-term) & ASIA (temporary) credentials
  • ⏰ Token expiration handling with auto-renewal option
  • ✅ Smart credential format validation and verification
  • 🔍 Environment variable detection and reuse
  • 🧪 AWS connection testing with detailed identity information
  • 🦊 Seamless CloudFox integration for security checks

Installation

There are several ways to install TempFox:

Using pip (Recommended)

pip install tempfox

From Source

git clone https://github.com/alfdav/tempfox.git
cd tempfox
pip install -e .

Dependencies

  • Python 3.6+
  • boto3 >= 1.26.0
  • AWS CLI (automatically installed if missing)

Quick Start

  1. Basic Usage:
tempfox
  1. Using with AWS Access Key:
# Long-term credentials (AKIA)
export AWS_ACCESS_KEY_ID=AKIAXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
tempfox

# Temporary credentials (ASIA)
export AWS_ACCESS_KEY_ID=ASIAXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export AWS_SESSION_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
tempfox
  1. Auto-renewal Mode:
tempfox --auto-renew
  1. Run CloudFox Security Checks:
# After credentials are configured
tempfox --cloudfox
  1. Check Credential Status:
tempfox --status

Prerequisites

  • Python 3.6 or higher
  • Linux operating system
  • Internet connection
  • Sudo privileges (for AWS CLI installation if needed)

License

MIT License

Copyright (c) 2024 David Diaz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, AUTHORS, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

USE OF THIS SOFTWARE IS ENTIRELY AT YOUR OWN RISK. THE AUTHORS ASSUME NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR OMISSIONS IN THE CONTENT OF THIS SOFTWARE. THE INFORMATION CONTAINED IN THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS WITH NO GUARANTEES OF COMPLETENESS, ACCURACY, USEFULNESS OR TIMELINESS.

By using this software, you acknowledge and agree that you are using it at your own risk and discretion. The authors shall not be held responsible for any security breaches, data loss, or any other damages resulting from the use of this software.


Made with ❤️ by David

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tempfox-1.0.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tempfox-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file tempfox-1.0.0.tar.gz.

File metadata

  • Download URL: tempfox-1.0.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for tempfox-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2664bbfeab8895b0f5744dd89bc91281ae4a3a1b3bb483a4b94131097755b8a
MD5 86d3d30779321820f01537bbb3cba667
BLAKE2b-256 ce52c321d7049108e807b33cb297d3858634acbbe0caf19f4731fd35e7612b80

See more details on using hashes here.

File details

Details for the file tempfox-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tempfox-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for tempfox-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c93d423278e4c0b6c3e3871da379e926f02ba8a6a1a7688d359dd17fdd14ce0
MD5 ea1812682657aac2b45572083d5f3203
BLAKE2b-256 ac231a3cb4e87a395007998a053f477a68d371e21e1571f2228589f1c5d55f01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page