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

Is there a way to disable some of the settings pages? #126

Open
Loqova opened this issue Jun 18, 2022 · 6 comments
Open

Is there a way to disable some of the settings pages? #126

Loqova opened this issue Jun 18, 2022 · 6 comments

Comments

@Loqova
Copy link

Loqova commented Jun 18, 2022

I tried simply blocking the pages already but that doesn't work I guess authenticate referes to some block I cannot include such requests in. I can probably disable it with a custom theme in the frontend but Im still searching for the locatino of those theme files inside the container. And I want to disable those functions in the backend too.

http://auth.xxxxxx.xx {
  respond /settings/sshkeys "Not accessible" 403 
  respond /settings/gpgkeys "Not accessible" 403 
  respond /settings/apikeys "Not accessible" 403 
  respond /settings/connected "Not accessible" 403

  authenticate with myportal
})
@Loqova Loqova added need triage question Further information is requested labels Jun 18, 2022
@greenpau
Copy link
Owner

@Loqova , I am actually working on the redesign of the settings page. May incorporate new features. What is the intent behind disabling the pages? Why did you choose to disable these particular pages?

@Loqova
Copy link
Author

Loqova commented Jun 18, 2022

I didn't disable it but wanted to. What I tried didn't work. For the sake of customizability. I have several use cases where I would only want to use this for simple auth + mfa without the ssh/gpg/api/connected features.

@greenpau
Copy link
Owner

I didn't disable it but wanted to. What I tried didn't work. For the sake of customizability. I have several use cases where I would only want to use this for simple auth + mfa without the ssh/gpg/api/connected features.

@Loqova , makes sense. Will think how to enable/disable features.

@greenpau greenpau added feature ui templates ui settings and removed question Further information is requested need triage labels Jun 19, 2022
@greenpau
Copy link
Owner

greenpau commented Jun 19, 2022

I will be adding the following directive to Caddyfile:

authentication portal myportal {
  ui {
    disable settings [gpgkeys|sshkeys|apikeys|connected|mfa|password|general]
  }
}

By default all sections of the "Settings" page are enabled. If disabled, then the section will not be visible in the UI.

@Loqova
Copy link
Author

Loqova commented Jun 19, 2022

Great, thanks a lot. Is it only disabled in the UI? Therefore, would calling the functions directly still work? As that seems kind of insecure to me.

@greenpau
Copy link
Owner

@Loqova , it will be disabled everywhere.

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

No branches or pull requests

2 participants