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

URL handling for security.config-file on access-control.properties #195

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

Conversation

JeanMichelApeupres
Copy link

As mentioned here https://trino.io/docs/current/security/file-system-access-control.html#configuration, the security.config-file can either be stored locally or remotely. Thus, this PR add the possibility to use a remote HTTP(S) endpoint to read the configuration file from.

Copy link

cla-bot bot commented Jul 29, 2024

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@nineinchnick
Copy link
Member

@cla-bot check

Copy link

cla-bot bot commented Aug 24, 2024

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

Copy link

cla-bot bot commented Aug 24, 2024

The cla-bot has been summoned, and re-checked this pull request!

@nineinchnick
Copy link
Member

@cla-bot check

Copy link

cla-bot bot commented Nov 17, 2024

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

Copy link

cla-bot bot commented Nov 17, 2024

The cla-bot has been summoned, and re-checked this pull request!

@@ -80,14 +80,27 @@ data:
{{- .Values.server.coordinatorExtraConfig | nindent 4 }}
{{- end }}

{{- if .Values.accessControl }}{{- if eq .Values.accessControl.type "configmap" }}
{{ if .Values.accessControl }}
{{- if and (eq .Values.accessControl.type "remote") (.Values.accessControl.url) }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{{- if and (eq .Values.accessControl.type "remote") (.Values.accessControl.url) }}
{{- if eq .Values.accessControl.type "remote" }}
{{- if not .Values.accessControl.url }}
{{- fail "`.accessControl.url` is required when `.accessControl.type` is set to `remote`" }}
{{- end }}

# refreshPeriod: "60s"
# url: "http://trino-test/config"
# jsonPointer: "/data"
# # Rules file is mounted to /etc/trino/access-control
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# # Rules file is mounted to /etc/trino/access-control

@@ -91,8 +91,9 @@ accessControl: {}
# accessControl -- [System access
# control](https://trino.io/docs/current/security/built-in-system-access-control.html)
# configuration.
# type can be either 'configmap' when using a local file or 'remote' when using a file from an http/https URL
Copy link
Member

Choose a reason for hiding this comment

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

All docs should be correct sentences, start with a capital letter.

Suggested change
# type can be either 'configmap' when using a local file or 'remote' when using a file from an http/https URL
# Type can be either `configmap` when using a local file, or `remote` when using a file from an URL.

Copy link
Member

Choose a reason for hiding this comment

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

Also, see the repository README on how to run pre-commit hooks to regenerate the Chart's README.

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

Successfully merging this pull request may close these issues.

2 participants