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

Add 'env' auth module #994

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add 'env' auth module #994

wants to merge 1 commit into from

Conversation

matthinc
Copy link

I wrote a small authentication module, which takes login and password from environment variables.

Use-case: This makes it really easy to setup a single-user-Radicale-instance in a dockerized environment.

Config:

[server]
# Bind all addresses
hosts = 0.0.0.0:5232

[auth]
type = env

A docker-compose.yml could look like this:

services:
  radicale:
    build: .
    ports:
      - 5232:5232
    volumes:
      - ./radicale:/data
      - ./radicale_config:/etc/radicale/
    environment:
      RADICALE_LOGIN: admin
      RADICALE_PASSWORD: test123

@coveralls
Copy link

Pull Request Test Coverage Report for Build 903

  • 12 of 12 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 82.245%

Totals Coverage Status
Change from base Build 895: 0.05%
Covered Lines: 2965
Relevant Lines: 3521

💛 - Coveralls

@funkyfuture
Copy link
Contributor

this would be indeed great for deployments with containers. i'm wondering whether multiple user should be definable by providing comma-separated values.

a RADICALE_PASSWORD_<HASH_ALGORITHM> as alternative to …_PASSWORD seems reasonable as well.

i could work on it, but there seems to be no interest.

Copy link
Collaborator

@pbiering pbiering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase to latest Radicale 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants