GithubHelp home page GithubHelp logo

passwordcockpit / passwordcockpit Goto Github PK

View Code? Open in Web Editor NEW
107.0 8.0 18.0 560 KB

Passwordcockpit is a simple, free, open source, self hosted, web based password manager for teams. It is made in PHP, Javascript, MySQL and it run on a docker service. It allows users with any kind of device to safely store, share and retrieve passwords, certificates, files and much more.

Home Page: https://passwordcockpit.com

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 42.26% Shell 16.34% PHP 29.56% CSS 11.84%
password passwords password-vault password-manager php emberjs mysql restful responsive open-source opensource free self-hosted selfhosted web webapp docker docker-image laminas mezzio

passwordcockpit's Issues

docker return 500 after successful login

Hi, after successful login in self-hosted app in docker I get error on every endpoint.

{"title":"Internal Server Error","type":"https://httpstatus.es/500","status":500,"detail":"An unknown error occurred."}

On local docker it's working good, but on server not. In logs I don't have any useful information, even after set dosplay_errors "On" in php.ini.

[16/Mar/2023:11:34:50 +0000] "GET /api/v1/users/1/permissions HTTP/1.1" 500 506 "http://<hostname>/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"

PASSWORDCOCKPIT_SSL is disable,
PASSWORDCOCKPIT_DEBUG is true,
PASSWORDCOCKPIT_AUTHENTICATION_TYPE is password,
PASSWORDCOCKPIT_BLOCK_CIPHER_KEY is supersecretkey,
PASSWORDCOCKPIT_AUTHENTICATION_SECRET_KEY is authenticationsecretkey.

I don't know where to search next...

develop Installation as described in README results in "Token not found" 401

Error Message received after Installation:
{"status":401,"title":"Unauthorized","type":"https://httpstatuses.com/401","detail":"Token not found."}

Precedure used as described in README @ URL https://github.com/passwordcockpit/passwordcockpit/tree/master/develop:
cd frontend
git checkout origin master
cd ..
cd backend
git checkout origin master
docker-compose restart passwordcockpit_frontend

Further: in README its written => "After that, go to [YOUR-IP]:4200. If everything went correctly, there should be a login page."
Shouldn't that be => "After that, go to [YOUR-IP]:4344. If everything went correctly, there should be a login page." ?
My fault so striked through.

Some people may change this Port to 443 standard https port.
But anyhow its not working.

Kind regards.

Password becomes visible when clicking "copy to clipboard"

Description:
Password gets visible when clicking "copy to clipboard".
This is not how it should be.

Possible reason:
When clicking the "copy to clipboard" Button, Google Chrome automatically selects the illegible password and so the password does become visible.

Expected result:
Password still not visible on "copy to clipbloard". It should be possible to copy a password to clipboard without making it visible on the screen.

This happens in Midori,Firefox and Chrome...

Needs fix.
Thank you.

Development mode

Add an attribute in docker-compose.yml to active the development mode.

Simply in config/autoload/mezzio.global.php change 'debug' => false, to 'debug' => true,

Allows change the language

Add a select to the right of the name that allows you to change the language.
You probably need to add an endpoint that allows you to change only the language and not all user data.
This feature can remain enabled even if LDAP is disabled.

Causes Swagger to append "http://" or "https://" to a base URL that already contains the network protocol

sed -ri -e 's!PASSWORDCOCKPIT_BASEHOST!'${PASSWORDCOCKPIT_BASEHOST}'!g' swagger/swagger.json

Below is an example of the curl generated by Swagger when attempting to test the REST API:

curl -X GET "https://https://localhost/api/v1/folders" -H "accept: application/json"

The environment variable "PASSWORDCOCKPIT_BASEHOST" must have either "http://" or "https://" due to how its being used elsewhere in the entrypoint.sh script. However, since the variable is configured in Swagger.json and Swagger also appends a network protocol via a form selector, the network protocol ends up being included twice.

 "host": "https://localhost",
    "basePath": "/api",
    "schemes": [
        "http",
        "https"
    ]

Most likely need a separate environment variable for just the FQDN or IP address.

When creating an user with LDAP disable password

When creating an user with LDAP enabled the password must be disabled, so it must allow NULL.
Check also that at login if password = null you should NOT be able to login (This is to prevent you from accidentally disabling LDAP everyone can login)

LDAP Connection

Hi,

I can't connect users when ldap backend is configured, all I've got is the red pop-up (Error, Wrong username or password).
These are the parameters that I added to docker-compose.yml :
PASSWORDCOCKPIT_AUTHENTICATION_TYPE: ldap PASSWORDCOCKPIT_LDAP_HOST: ip.address.of.dc PASSWORDCOCKPIT_LDAP_PORT: 389 PASSWORDCOCKPIT_LDAP_USERNAME: uid-name,CN=user,OU=OU,DC=domain,DC=com PASSWORDCOCKPIT_LDAP_PASSWORD: my_password PASSWORDCOCKPIT_LDAP_BASEDN: OU=OU,DC=domain,DC=com PASSWORDCOCKPIT_LDAP_ACCOUNTFILTERFORMAT: (&(memberOf=CN=group,OU=OU,DC=domain,DC=com)(uid=%s)) PASSWORDCOCKPIT_LDAP_BINDREQUIRESDN: 'false' (I tested both without luck)
Do you have any hint to help me configure ldap connection?

Does the default admin work if ldap is configured? Which user is the admin?

Thank you in advance.
Mathieu

LDAP Start TLS

Is there a hidden option to enable LDAP Start TLS?
If yes could you add it to the docs?

Calculate integrity in JS and CSS links of index.html on ember build #30

ember build -p
without
SRI: { enabled: false, },

in ember-cli-build.js calculates an integrity check for js and css files that are linked in index.html.
This doesn't allow you to change the js and css code after the build, so you can't change the host in the container.

To put back the functionality find the way to calculate and add the integrity with the entrypoint

This was done to create the image in docker.

Specifications: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity

changing passwords in docker-compose.yml not working -- security threat

Hi folks,

it is not possible to change the following username and/or passwords in docker-compose.yml for
image: passwordcockpit/passwordcockpit:1.2.2-php-7.3-apache

Changing one of the following will result in connection errors:

  •         PASSWORDCOCKPIT_DATABASE_USERNAME: passwordcockpit_db_usr
    
  •         PASSWORDCOCKPIT_DATABASE_PASSWORD: password
    
    • MYSQL_ROOT_PASSWORD=root_password
  •         - MYSQL_USER=passwordcockpit_db_usr
    
  •         - MYSQL_PASSWORD=password
    

Suggestion:
If they are not intended to get changed by Sys-Admin, than there should be a comment or variables should be removed (or commented) from docker-compose.yml and some info in documentation is appreciated.

Thank you and kind regards!
Raphael

Mime type error when try upload files

Hello!
I installed the docker version of this application, everything is fine except of the file upload, when I try to attach any type of file to the password entry they get Mime type error message. I tried to modify the .htaccess file and added the requested types but does not impacted to the behaviour. Please help were I'm doing wrong.

Thanks a lot,
BR
Megyo

No user name and password combination is recognized

I installed passwordcockpit following the instruction on a LXC in a Proxmox hypervisor. However, neither "admin" "Admin123!" and "user" "User123!" grant me access to the service. Any combination of username and password will return the same "undifined error". Would anyone know what cause the problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.