PSONO | टीमों के लिए ओपन सोर्स क्रेडेंशियल मैनेजर

Psono मुफ्त पासवर्ड प्रबंधन सॉफ्टवेयर

टीमों और उद्यमों के लिए ओपन सोर्स क्रेडेंशियल्स मैनेजर

PSONO एक ओपन सोर्स पासवर्ड मैनेजर है जिसे टीमों के लिए डिज़ाइन किया गया है। यह ग्राहक पक्ष में स्व-होस्ट किया जा सकता है और अधिकतम सुरक्षा के लिए बहुस्तरीय एन्क्रिप्शन है।

अवलोकन

PSONO टीमों के लिए एक मुफ्त पासवर्ड प्रबंधक है। अधिकांश ओपन सोर्स पासवर्ड मैनेजर जो उपयोग करने के लिए स्वतंत्र हैं, वे क्रमशः आपकी टीम में या आपके सर्वर पर पासवर्ड मैनेजरों को स्केल और होस्ट करने का विकल्प प्रदान नहीं करते हैं। हालांकि, PSONO के साथ आपको उपयोग करने के लिए एक स्वतंत्र, पूरी तरह से सुरक्षित, ओपन सोर्स क्रेडेंशियल मैनेजर का उपयोग किया जाता है जो टीमों को ध्यान में रखते हुए डिज़ाइन किया गया है। PSONO के साथ, आप पासवर्ड मैनेजर को अपने स्वयं के सर्वर पर तैनात कर सकते हैं और 10 उपयोगकर्ताओं को उनकी महत्वपूर्ण जानकारी को संग्रहीत करने और इसे एक्सेस करने की अनुमति दे सकते हैं। एक ओपन सोर्स पासवर्ड मैनेजर के रूप में, इसमें कई डिवाइस और क्रॉस प्लेटफ़ॉर्म कम्पैटिबिलिटी जैसे कि iOS, Android, MacOS, Linux और Chrome, Edge, Safari और बहुत कुछ जैसे ब्राउज़र भी हैं। PSONO जैसे ओपन सोर्स पासवर्ड मैनेजरों का उपयोग करने की मुख्य सुविधा किसी भी समय, किसी भी समय और क्रेडिट कार्ड डेटा, बैंकिंग जानकारी और अधिक जैसी अन्य जानकारी को संग्रहीत करने की क्षमता से आपकी महत्वपूर्ण जानकारी तक पहुंचने की क्षमता है। PSONO सुविधाजनक और कुशल है, विशेष रूप से उन टीमों के लिए जो लॉग इन कर रहे हैं और विभिन्न अनुप्रयोगों या सर्वरों तक पहुंच रहे हैं जो संवेदनशील हैं। PSONO एक स्व-होस्टेड पासवर्ड मैनेजर है। इसका उपयोग वेब एक्सटेंशन के रूप में किया जा सकता है, जिसे आपके सर्वर पर तैनात किया गया है, जिसे वेब क्लाइंट एप्लिकेशन के माध्यम से एक्सेस किया गया है या डॉकर के माध्यम से इंस्टॉल किया गया है। आप इसे अपने मोबाइल फोन पर भी एक्सेस कर सकते हैं या किसी भी प्रोजेक्ट के लिए इसे अपनी CI CD पाइपलाइन में स्थापित कर सकते हैं।

सिस्टम आवश्यकताएं


Ubuntu के लिए PSONO स्थापित करते समय सुनिश्चित करें कि आपके पास निम्नलिखित सिस्टम आवश्यकताएं हैं:

  • उबंटू 20.04
  • स्टेटिक आईपी या एक डोमेन/होस्ट नाम के माध्यम से सर्वर एक्सेस।
  • सुनिश्चित करें कि सर्वर में 2GB रैम और 2 कोर हैं
  • SUDO अनुमतियों के साथ एक गैर-रूट उपयोगकर्ता

विशेषताएँ


यहाँ Psono के बारे में सुविधाओं को जानने के लिए कुछ अच्छे हैं:

  • PSONO एक बहुस्तरीय एन्क्रिप्शन का उपयोग करता है जहां एन्क्रिप्शन की तीन परतें डेटा की रक्षा करती हैं जब इसे ब्राउज़र से PSONO एप्लिकेशन सर्वर में स्थानांतरित किया जा रहा है। सर्वर POLY1305 मैक कोड के साथ Salso20 स्ट्रीम सिफर का उपयोग करके डेटा को एन्क्रिप्ट करता है जो सत्यापन के लिए DBA (डेटा बेस एडमिनिस्ट्रेटर) पर भरोसा करने की आवश्यकता को कम करता है।
  • आप पासवर्ड जनरेटर का उपयोग कर सकते हैं, जिसमें न्यूनतम 6 वर्णों या अधिक प्रतीकों, संख्याओं, निचले मामले/ऊपरी केस वर्ण आदि से मिलकर एक पासवर्ड का उत्पादन किया जा सकता है।
  • PSONO के साथ आप आवेदन पर आवश्यक विवरण प्रदान करने के बाद विभिन्न वेबसाइटों के लिए अपने लॉगिन क्रेडेंशियल्स को आसानी से ऑटोफिल कर सकते हैं।
  • जब आप क्लाइंट साइड एप्लिकेशन के माध्यम से ऑफ़लाइन होते हैं तो पासवर्ड भी एक्सेस किया जा सकता है।
  • आप डिजिटल विरासत समस्या के मामले में पासवर्ड का उपयोग करने के लिए आपातकालीन कोड भी बना सकते हैं जैसे कि टीम के सदस्य से गुजरना या आपातकालीन स्थिति में अनुपलब्धता।
  • Psono किसी भी पासवर्ड ब्रीच का भी पता लगाता है जो हो सकता है और समय पर इस पर रिपोर्ट करता है।
  • आपको कई एपीआई कुंजियाँ मिलेंगी जो बिल्ड या स्टार्टअप स्क्रिप्ट के दौरान पासवर्ड के एकीकरण के लिए अनुमति देती हैं।

स्थापना


यह गाइड PSONO सर्वर को स्थापित करेगा, और इसे Gunicorn और Nginx के साथ चलाएगा। इसका परीक्षण उबंटू 18.04 पर किया गया है।

  • जड़ बनो
sudo su
  • कुछ सामान्य सामान स्थापित करें
apt-get update
apt-get install -y \
        git \
        libyaml-dev \
        libpython3-dev \
        libpq-dev \
        libffi-dev \
        python3-dev \
        python-pip \
        python3-pip \
        python3-psycopg2 \
        postgresql-client \
        haveged \
        libsasl2-dev \
        libldap2-dev \
        libssl-dev \
        supervisor
pip3 install gunicorn
  • psono उपयोगकर्ता बनाएँ
adduser psono
  • PSONO उपयोगकर्ता बनें
su psono
  • क्लोन गिट रिपॉजिटरी
git clone https://gitlab.com/psono/psono-server.git ~/psono-server
  • पायथन आवश्यकताओं को स्थापित करें
Ctrl + D
cd /home/psono/psono-server
pip3 install -r requirements.txt
su psono
  • सेटिंग फ़ोल्डर बनाएं
mkdir ~/.psono_server
  • निम्नलिखित सामग्री के साथ ~/ .psono \ _server/ में एक सेटिंग।

# generate the following six parameters with the following command
# python3 ~/psono-server/psono/manage.py generateserverkeys
SECRET_KEY: 'SOME SUPER SECRET KEY THAT SHOULD BE RANDOM AND 32 OR MORE DIGITS LONG'
ACTIVATION_LINK_SECRET: 'SOME SUPER SECRET ACTIVATION LINK SECRET THAT SHOULD BE RANDOM AND 32 OR MORE DIGITS LONG'
DB_SECRET: 'SOME SUPER SECRET DB SECRET THAT SHOULD BE RANDOM AND 32 OR MORE DIGITS LONG'
EMAIL_SECRET_SALT: '$2b$12$XUG.sKxC2jmkUvWQjg53.e'
PRIVATE_KEY: '302650c3c82f7111c2e8ceb660d32173cdc8c3d7717f1d4f982aad5234648fcb'
PUBLIC_KEY: '02da2ad857321d701d754a7e60d0a147cdbc400ff4465e1f57bc2d9fbfeddf0b'

# The URL of the web client (path to e.g activate.html without the trailing slash)
# WEB_CLIENT_url:  'https://www.psono.pw'

# Switch DEBUG to false if you go into production
DEBUG: False

# Adjust this according to Django Documentation https://docs.djangoproject.com/en/2.2/ref/settings/
ALLOWED_HOSTS: ['*']

# Should be your domain without "www.". Will be the last part of the username
ALLOWED_DOMAINS: ['psono.pw']

# If you want to disable registration, you can comment in the following line
# ALLOW_REGISTRATION: False

# If you want to disable the lost password functionality, you can comment in the following line
# ALLOW_LOST_PASSWORD: False

# If you want to enforce that the email address and username needs to match upon registration
# ENFORCE_MATCHING_USERNAME_AND_EMAIL: False

# If you want to restrict registration to some email addresses you can specify here a list of domains to filter
# REGISTRATION_EMAIL_FILTER: ['company1.com', 'company2.com']

# Should be the URL of the host under which the host is reachable
# If you open the url and append /info/ to it you should have a text similar to {"info":"{\"version\": \"....}
HOST_url:  'https://www.psono.pw/server'

# The email used to send emails, e.g. for activation
# ATTENTION: If executed in a docker container, then "localhost" will resolve to the docker container, so
# "localhost" will not work as host. Use the public IP or DNS record of the server.
EMAIL_FROM: <span id="cloak820118571330d66e81d06c4c2b562de4">This email address is being protected from spambots. You need JavaScript enabled to view it.</span><script type="text/javascript">document.getElementById('cloak820118571330d66e81d06c4c2b562de4').innerHTML='';var prefix='&#109;a'+'i&#108;'+'&#116;o';var path='hr'+'ef'+'=';var addy820118571330d66e81d06c4c2b562de4='&#039;th&#101;-m&#97;&#105;l-f&#111;r-f&#111;r-&#101;x&#97;mpl&#101;-&#117;s&#101;r&#97;cc&#111;&#117;nt-&#97;ct&#105;v&#97;t&#105;&#111;ns'+'&#64;';addy820118571330d66e81d06c4c2b562de4=addy820118571330d66e81d06c4c2b562de4+'t&#101;st'+'&#46;'+'c&#111;m';var addy_text820118571330d66e81d06c4c2b562de4='&#039;th&#101;-m&#97;&#105;l-f&#111;r-f&#111;r-&#101;x&#97;mpl&#101;-&#117;s&#101;r&#97;cc&#111;&#117;nt-&#97;ct&#105;v&#97;t&#105;&#111;ns'+'&#64;'+'t&#101;st'+'&#46;'+'c&#111;m';document.getElementById('cloak820118571330d66e81d06c4c2b562de4').innerHTML+='<a '+path+'\''+prefix+':'+addy820118571330d66e81d06c4c2b562de4+'\'>'+addy_text820118571330d66e81d06c4c2b562de4+'<\/a>';</script>'
EMAIL_HOST: 'localhost'
EMAIL_HOST_USER: ''
EMAIL_HOST_PASSWORD : ''
EMAIL_PORT: 25
EMAIL_SUBJECT_PREFIX: ''
EMAIL_USE_TLS: False
EMAIL_USE_SSL: False
EMAIL_SSL_CERTFILE:
EMAIL_SSL_KEYFILE:
EMAIL_TIMEOUT:

# In case one wants to use mailgun, comment in below lines and provide the mailgun access key and server name
# EMAIL_BACKEND: 'anymail.backends.mailgun.EmailBackend'
# MAILGUN_ACCESS_KEY: ''
# MAILGUN_SERVER_NAME: ''

# In case you want to offer Yubikey support, create a pair of credentials here https://upgrade.yubico.com/getapikey/
# and update the following two lines before commenting them in
# YUBIKEY_CLIENT_ID: '123456'
# YUBIKEY_SECRET_KEY: '8I65IA6ASDFIUHGIH5021FKJA='

# If you have own Yubico servers, you can specify here the urls as a list
# YUBICO_API_URLS: ['https://api.yubico.com/wsapi/2.0/verify']

# Cache enabled without belows Redis may lead to unexpected behaviour

# Cache with Redis
# By default you should use something different than database 0 or 1, e.g. 13 (default max is 16, can be configured in
# redis.conf) possible URLS are:
#    redis://[:password]@localhost:6379/0
#    rediss://[:password]@localhost:6379/0
#    unix://[:password]@/path/to/socket.sock?db=0
# CACHE_ENABLE: False
# CACHE_REDIS: False
# CACHE_REDIS_LOCATION: 'redis://127.0.0.1:6379/13'

# Disables Throttling (necessary for unittests to pass) by overriding the cache with a dummy cache
# https://docs.djangoproject.com/en/2.2/topics/cache/#dummy-caching-for-development
# THROTTLING: False

# Enables the management API, required for the psono-admin-client / admin portal
# MANAGEMENT_ENABLED: False

# Enables the fileserver API, required for the psono-fileserver
# FILESERVER_HANDLER_ENABLED: False

# Enables files for the client
# FILES_ENABLED: False

# Allows that users can search for partial usernames
# ALLOW_USER_SEARCH_BY_USERNAME_PARTIAL: True

# Allows that users can search for email addresses too
# ALLOW_USER_SEARCH_BY_EMAIL: True

# Disables central security reports
# DISABLE_CENTRAL_SECURITY_REPORTS: True

# Configures a system wide DUO connection for all clients
# DUO_INTEGRATION_KEY: ''
# DUO_SECRET_KEY: ''
# DUO_API_HOSTNAME: ''

# If you are using the DUO proxy, you can configure here the necessary HTTP proxy
# DUO_PROXY_HOST: 'the-ip-or-dns-name-goes-here'
# DUO_PROXY_PORT: 80
# DUO_PROXY_TYPE: 'CONNECT'
# If your proxy requires specific headers you can also configure these here
# DUO_PROXY_HEADERS: ''

# Normally only one of the configured second factors needs to be solved. Setting this to True forces the client to solve all
# MULTIFACTOR_ENABLED: True

# Allows admins to limit the offered second factors in the client
# ALLOWED_SECOND_FACTORS: ['yubikey_otp', 'google_authenticator', 'duo']

# Your Postgres Database credentials
# ATTENTION: If executed in a docker container, then "localhost" will resolve to the docker container, so
# "localhost" will not work as host. Use the public IP or DNS record of the server.
DATABASES:
    default:
        'ENGINE': 'django.db.backends.postgresql_psycopg2'
        'NAME': 'psono'
        'USER': 'psono'
        'PASSWORD': 'password'
        'HOST': 'localhost'
        'PORT': '5432'
# for master / slave replication setup comment in the following (all reads will be redirected to the slave
#    slave:
#        'ENGINE': 'django.db.backends.postgresql_psycopg2'
#        'NAME': 'YourPostgresDatabase'
#        'USER': 'YourPostgresUser'
#        'PASSWORD': 'YourPostgresPassword'
#        'HOST': 'YourPostgresHost'
#        'PORT': 'YourPostgresPort'

# Update the path to your templates folder
# If you do not want to change it (yet) you can leave it like it is.
TEMPLATES: [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': ['/home/psono/psono-server/psono/templates'],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]	
  • उपरोक्त टिप्पणियों में वर्णित डेटाबेस क्रेडेंशियल्स / रहस्य / पथ को अपडेट करें।

  • somethingsomethingcom निष्पादित करने के लिए एक परीक्षण ई-मेल भेजने के लिए: python3 ~/psono-server/psono/manage.py sendtestmail कुछ@something.com -यदि आप इस परीक्षण को ई-मेल प्राप्त करते हैं, तो ई-मेल को उचित कॉन्फ़िगर किया जाना चाहिए।

  • हमारा डेटाबेस बनाएं
python3  ~/psono-server/psono/manage.py migrate
  • PSONO सर्वर चलाएं
cd ~/psono-server/psono
gunicorn --bind 0.0.0.0:10100 wsgi
  • यह पोर्ट 10100 पर PSONO सर्वर शुरू कर देगा। यदि आप अभी खोलते हैं तो http: // your-ip: 10100/जानकारी/इस तरह से कुछ देखना चाहिए:
{"info":"{\"version\": \"....}
  • फिर से जड़ बनो
Ctrl + D
  • पर्यवेक्षक कॉन्फ़िगरेशन बनाएं। निम्नलिखित सामग्री के साथ /etc/supervisor/conf.d/ में एक psono-server.conf बनाएँ:
[program:psono-server]
command = /usr/local/bin/gunicorn --bind 127.0.0.1:10100 wsgi
directory=/home/psono/psono-server/psono
user = psono
autostart=true
autorestart=true
redirect_stderr=true
  • आपको एहसास हो सकता है कि हमने बाइंड को बदल दिया है। इस तरह से Psono केवल लोकलहोस्ट से सुलभ है, जो ठीक है क्योंकि हम Nginx के साथ प्रॉक्सी अनुरोध करेंगे।
  • पुनः लोड पर्यवेक्षक
supervisorctl reload
  • सेटअप क्लीनअप जॉब
crontab -e
  • और निम्न पंक्ति जोड़ें:
30 2 * * * psono python3 /home/psono/psono-server/psono/manage.py cleartoken >> /var/log/cron.log 2>&1
  • उत्पादन में PSONO पासवर्ड मैनेजर को चलाने के लिए, SSL ऑफलोडिंग को संभालने और PSONO सर्वर और WebClient को एक साथ गोंद करने के लिए एक रिवर्स प्रॉक्सी की आवश्यकता होती है। अगले चरण के रूप में सेटअप रिवर्स प्रॉक्सी के लिए गाइड का पालन करें।

अन्वेषण करना


इस लेख में हमने Psono के अवलोकन और सुविधाओं पर चर्चा की है जो इसे एक विश्वसनीय क्रेडेंशियल्स मैनेजर बनाती है। अन्य ओपन सोर्स क्रेडेंशियल मैनेजमेंट सॉफ्टवेयर के बारे में जानने के लिए, कृपया निम्नलिखित पृष्ठों की जाँच करें:

 हिन्दी