Commonpassword - Search for the password in the file

commonpassword service

Responsible for searching the password provided in a file containing all the common password list placed at https://pwlist.cfapps.eu10.hana.ondemand.com/passwords.txt. It downloads the file from the web on the application startup and stores in locally.

Developer Setup

Add launch.json to provide the environment variable

  {
    "version": "0.2.0",
    "configurations": [        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "remotePath": "",
            "HOSTNAME": "127.0.0.1",
            "program": "${workspaceRoot}",
            "env": {
                "HOSTNAME": "127.0.0.1",
                "APP_PORT": 18605,
                "APP_VERSION": "0.15.25" ,  
                "PASSWORD_URL":"https://pwlist.cfapps.eu10.hana.ondemand.com/passwords.txt",
                "PASSWORD_PATH":"./download/PasswordList.txt"
            },
            "args": [],
            "showLog": true
        }
    ]
  }

API Request

How to send API Request to the code running locally through tool like Postman etc.?

Method : POST

URL : http://localhost:18605/CommonPassword

Body :

{
    "password": "JamesBond#007forYou"
}

Response

Status : 200

Body : "Your password is not in the common password list "

Code structure

passwordstrength

.github -CI workflow

config -Application level configuration eg. AppName,AppVersion etc

customization -Customization related to bootstrapping,logging,hosting,handlers and web requests

deployment -k8 yaml files like deployment.yaml,service.yaml

handler -hanlers for API request

middleware -middleware related to logging or other

sessionutil -Used for Session related operations

timeutil -Used for time related operations

vendor -stored dependent libraries

web - RegisteredStatics Static,Business & Utility routes

CI

As soon as commit is pushed to the master branch, CI workflow is triggered. Which include

  1. Build
  2. Running Test cases with code coverage
  3. Building docker image
  4. push the image to the docker hub account https://hub.docker.com/r/sachinmahanin/commonpassword

Running the service in minikube

  1. Run the minikube service on your local box - minkube start
  2. Run following command from the root commonpassword will create deployment+service+configMap in the minikube
kubectl apply -f deployment
Similar Resources

A productivity tools to diagnose list of exported URL status from Google Search Console, Analytics, Sitemap URL...etc.

google-url-checker A productivity tools to diagnose list of exported URL status from Google Search Console, Analytics, Sitemap URL...etc. A quick way

Dec 31, 2021

🚀 A command with fzf-like UI to quickly search Wikipedia articles and open it in your browser

fzwiki A command with fzf-like UI to quickly search Wikipedia articles and open it in your browser. Usage Run the command by specifying a search query

Dec 20, 2022

advancedsearch is a package to help peoples make search while typing "char" by "char" in Golang.

advancedsearch is a package to help peoples make search while typing "char" by "char" in Golang. Actually he has two main functions, CompareSingleWord and CompareMultipleWords.

Feb 2, 2022

🎼 This library provides an API to search for lyrics from various providers in China.

LYRIC-GO This library provides an API to search for lyrics from various providers in China. Supported Providers KuGou Music QQ Music Netease Music Usa

May 24, 2022

Ztgrep - Recursively search through compressed tarballs and files

ztgrep Search for file names and contents through nested archives. Useful for fi

Jun 7, 2022

Search for GitHub team posts (discussions)

go CLI to search GitHub Team Posts (Discussions) Motivation Want to search for content in GitHub team posts? Use this CLI. Usage: Get a PAT with acces

Sep 14, 2022

Azure Data Lake Storage Account Share 9p File System

dlfs Azure storage account (data lake) v2 as a 9p file system. Fork of abfs. Written in Go. Created during the 2021 MS hackathon. Build Currently the

Oct 15, 2021

A simple implementation to upload file to AWS S3

A simple implementation to upload file to AWS S3.

Nov 19, 2021

A cross platform desktop service that watches custom folders for file changes and updates the corresponding database in Notion.

A cross platform desktop service that watches custom folders for file changes and updates the corresponding database in Notion. Perfect for tracking reading lists

Mar 12, 2022
Simple tool to search tagged resources between all AWS resouces

Welcome to Cloud Inventory Tags ?? Simple tool to search tagged resources around all AWS Account Installation MacOS / OSX

Jan 26, 2022
An Apple Search Ads API client for Go

apple-search-ads-go is a Go client library for accessing Apple's Apple Search Ads API.

Jul 14, 2022
RawLink makes backlinks queried from ahref ready for *Google Search Console*

Raw Link This simple program makes backlinks queried from ahref ready for Google Search Console. See footnote 1 for more information. It can be used t

Dec 14, 2022
Twingly Blog Search API in Go

Twingly Search API Go A Go package for Twingly's Blog Search API. Twingly is a blog search service that provides a searchable API known as Twingly Blo

Nov 3, 2021
Experimental port of PHP faceted-search library

Experimental port of PHP k-samuel/faceted-search PHP Library https://github.com/k-samuel/faceted-search Bench v1.3.0 PHP 7.4.25 (no xdebug extension)

Sep 17, 2022
Spotify Search Microservice

SpotifySearch Service This is the SpotifySearch service Generated with micro new spotify-search Usage Generate the proto code make proto Run the ser

Nov 21, 2021
GoSearch: Search the Go packages via command-line

GoSearch Search the Go packages for pkg.go.dev via command-line. It supports all search options in Search Help. Installation go get github.com/mingram

Jun 23, 2022
Search and output the value of JSON by it's path.

golang-cli Get the value of a JSON element via it's path name. Usage ======= jutil ======= Usage: jutil [-p <path>] [-v] Options: -p string

Dec 19, 2021
This repo introduces a simple server, which provided some APIs for search DAS account's records or reverse records

Prerequisites Install Usage Others Das-Account-Indexer This repo introduces a simple server, which provided some APIs for search DAS account's records

Dec 13, 2022
Unofficial golang implementation for the pipl.com search API
Unofficial golang implementation for the pipl.com search API

go-pipl The unofficial golang wrapper for the pipl.com API. Table of Contents Installation Documentation Examples & Tests Benchmarks Code Standards Us

Nov 6, 2022