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

Misleading configuration documentation #3043

Closed
2 tasks done
esnible opened this issue Sep 19, 2023 · 1 comment · Fixed by #3047
Closed
2 tasks done

Misleading configuration documentation #3043

esnible opened this issue Sep 19, 2023 · 1 comment · Fixed by #3047
Labels
defect Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@esnible
Copy link

esnible commented Sep 19, 2023

Current Behavior

The documentation https://docs.dependencytrack.org/getting-started/configuration/#default-configuration mentions the properties alpine.enforce.authentication and alpine.enforce.authorization.

I believed these properties could be set to false. I did set them to false, and was able to read the user list without a valid API key, e.g. curl localhost:8081/api/v1/team

After getting success reading the team, I attempted to upload SBOMs with autoCreate=true without a valid key, but got The principal does not have permission to create project.. I thought I was doing something wrong. I could do some things, such as uploading a BOM to an existing project, but not others. I also had different success with some REST endpoints running 4.8.2 in Docker vs in Kubernetes.

After reading #2166 (comment) I realized that I was not allowed to disable security this way.

Steps to Reproduce

  1. Create Dependency-Track in Kubernetes with
    environment:
      - ALPINE_ENFORCE_AUTHENTICATION="false"
      - ALPINE_ENFORCE_AUTHORIZATION="false"

Expected Behavior

The behavior is fine; the documentation should mention that it is a bad idea to use these properties.

I was using Kubernetes KIND.

Dependency-Track Version

4.8.2

Dependency-Track Distribution

Container Image

Database Server

H2

Database Server Version

No response

Browser

Google Chrome

Checklist

@esnible esnible added defect Something isn't working in triage labels Sep 19, 2023
@nscuro nscuro added documentation Improvements or additions to documentation and removed in triage labels Sep 21, 2023
nscuro added a commit to nscuro/dependency-track that referenced this issue Sep 21, 2023
Removes `alpine.enforce.authentication` and `alpine.enforce.authorization` from `application.properties` and documentation. Settings those values to `false` is not supported.

Fixes DependencyTrack#3043

Signed-off-by: nscuro <[email protected]>
nscuro added a commit to nscuro/dependency-track that referenced this issue Sep 23, 2023
Removes `alpine.enforce.authentication` and `alpine.enforce.authorization` from `application.properties` and documentation. Settings those values to `false` is not supported.

Fixes DependencyTrack#3043

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added this to the 4.9 milestone Sep 23, 2023
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2023
mge-mm pushed a commit to mge-mm/dependency-track-mge that referenced this issue Nov 17, 2023
Removes `alpine.enforce.authentication` and `alpine.enforce.authorization` from `application.properties` and documentation. Settings those values to `false` is not supported.

Fixes DependencyTrack#3043

Signed-off-by: nscuro <[email protected]>
Signed-off-by: Marlon Gaethje <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
defect Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants