-
Notifications
You must be signed in to change notification settings - Fork 109
feat(access-control-service): add access-control-service to authorize the requests to /wsapi and Computing Unit endpoints
#3598
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
Merged
Merged
Changes from all commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
67d7529
feat: permission-service
aicam f82f6a4
fix: headers and config
aicam 0f7e184
Merge branch 'master' into permission-service
aicam 83745c3
fix: service build
aicam d6cb177
fix: arrow failed test case
aicam 0e581e7
fix: downgrading arrow lib in R
aicam c0102f4
fix: downgrading arrow lib in R
aicam 12cdf7d
fix: downgrading arrow lib in R
aicam 4d6af65
fix: downgrading arrow lib in R
aicam fd6c9ad
fix: downgrading arrow lib in R
aicam 82be22a
fix: downgrading arrow lib in R
aicam 10c05f6
fix: downgrading arrow lib in R
aicam c97227b
fix: downgrading arrow lib in R
aicam 27d4afb
fix: downgrading arrow lib in R
aicam e76a6e7
fix: downgrading arrow lib in R
aicam aec7aee
fix: downgrading arrow lib in R
aicam c65a1db
fix: downgrading arrow lib in R
aicam 377863f
fix: downgrading arrow lib in R
aicam 5cb1037
fix: downgrading arrow lib in R
aicam 9da3556
fix: downgrading arrow lib in R
aicam 65b065c
fix: downgrading arrow lib in R
aicam 38d9bf7
Merge branch 'Texera:master' into master
aicam d054a39
Merge branch 'refs/heads/master' into permission-service
aicam ed19464
Merge branch 'apache:master' into master
aicam a7cfdc1
fix: access usage
aicam 4dd56ad
Merge branch 'master' into permission-service
aicam a6a4ec4
fix: rename and front
aicam 2043ec9
Merge branch 'apache:master' into master
aicam 51fac50
Merge branch 'apache:master' into master
aicam 946c6ff
Merge branch 'apache:master' into master
aicam 98120f9
Merge branch 'apache:master' into master
aicam 1b1cd29
Merge branch 'apache:master' into master
aicam daf9e7a
Merge branch 'master' into permission-service
aicam 75be5cd
Merge branch 'master' into permission-service
aicam a10ea90
fix: comments
aicam 9ea6401
fix: comments
aicam 33f219e
Merge branch 'master' into permission-service
aicam 38f98a4
fix: Apache headers
aicam 5a23684
fix: Apache headers
aicam 1efb235
fix: naming
aicam ca9a4be
Merge branch 'apache:main' into master
aicam 8fc9be1
Merge branch 'main' into permission-service
aicam 9de6e93
fix: check header
aicam f0dd32f
Merge branch 'main' into permission-service
aicam 57fbcc5
fix: comments
aicam 0facebf
Merge branch 'main' into permission-service
aicam 055f671
Merge remote-tracking branch 'origin/permission-service' into permiss…
aicam 16f33e1
fix: Apache header
aicam 9f1f2fb
Merge branch 'main' into permission-service
aicam 879659b
Merge branch 'apache:main' into main
aicam feb2c4d
Merge branch 'apache:main' into main
aicam 774f017
Merge branch 'main' into permission-service
aicam 7d67268
Merge branch 'apache:main' into main
aicam cc9194d
Merge branch 'main' into permission-service
0199757
fix: comment
aicam 009e88d
Merge branch 'apache:main' into main
aicam fcaf641
Merge branch 'main' into permission-service
aicam 9af405f
feat: test case & delete k8s env
aicam 525555f
fix: cuAccess
aicam ff5d4cc
feat: test cases
aicam 95827e2
feat: modular auth
aicam 6806ded
Merge branch 'apache:main' into main
aicam 23aa44a
Merge branch 'main' into permission-service
aicam 26e463b
Merge branch 'main' into permission-service
aicam 5c24202
fix: comments
aicam 414d6ec
Merge branch 'main' into permission-service
aicam f551267
fix: remove Authorizer trait
aicam 85c3c55
Merge branch 'main' into permission-service
aicam a0c4d8a
Merge branch 'main' into permission-service
aicam 3594355
Merge branch 'apache:main' into main
aicam 1c8b5f0
Merge branch 'apache:main' into main
aicam aef1d79
Merge branch 'main' into permission-service
aicam b7e30d1
fix: delete
aicam 085fcf5
fix: remove redundant code
aicam 68c346b
Merge branch 'apache:main' into main
aicam 1deb2f1
Merge branch 'main' into permission-service
aicam 68959a8
fix: revert cu manage
aicam 535042a
Merge branch 'main' into permission-service
aicam 48d86da
fix: manage modes
aicam a785465
Merge branch 'main' into permission-service
aicam 4906924
fix: comment
aicam 5201f5c
fix: lint
aicam febf16e
fix: lint
aicam 4ef1a1b
Merge branch 'main' into permission-service
aicam 8c9833b
fix: remove formatting
aicam 136c8a6
Merge remote-tracking branch 'origin/permission-service' into permiss…
aicam e5864d4
Merge branch 'main' into permission-service
aicam 4002806
fix: remove formatting
aicam 3dae408
Merge branch 'apache:main' into main
aicam ef967dd
Merge branch 'main' into permission-service
aicam b07f550
Merge branch 'apache:main' into main
aicam 0ae22d0
Merge branch 'main' into permission-service
aicam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| FROM sbtscala/scala-sbt:eclipse-temurin-jammy-11.0.17_8_1.9.3_2.13.11 AS build | ||
|
|
||
| # Set working directory | ||
| WORKDIR /core | ||
|
|
||
| # Copy all projects under core to /core | ||
| COPY core/ . | ||
|
|
||
| # Update system and install dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
| netcat \ | ||
| unzip \ | ||
| libpq-dev \ | ||
| && apt-get clean | ||
|
|
||
| WORKDIR /core | ||
| # Add .git for runtime calls to jgit from OPversion | ||
| COPY .git ../.git | ||
|
|
||
| RUN sbt clean AccessControlService/dist | ||
|
|
||
| # Unzip the texera binary | ||
| RUN unzip access-control-service/target/universal/access-control-service-*.zip -d target/ | ||
|
|
||
| FROM eclipse-temurin:11-jre-jammy AS runtime | ||
|
|
||
| WORKDIR /core | ||
|
|
||
| COPY --from=build /.git /.git | ||
| # Copy the built texera binary from the build phase | ||
| COPY --from=build /core/target/access-control-service* /core/ | ||
| # Copy resources directories under /core from build phase | ||
| COPY --from=build /core/access-control-service/src/main/resources /core/access-control-service/src/main/resources | ||
|
|
||
| CMD ["bin/access-control-service"] | ||
|
|
||
| EXPOSE 9096 |
60 changes: 60 additions & 0 deletions
60
deployment/k8s/texera-helmchart/templates/access-control-service-deployment.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
aicam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: {{.Release.Name}}-{{ .Values.accessControlService.name }} | ||
| namespace: {{ .Release.Namespace }} | ||
| labels: | ||
| app: {{ .Release.Name }}-{{ .Values.accessControlService.name }} | ||
| spec: | ||
| replicas: {{ .Values.accessControlService.numOfPods | default 1 }} | ||
| selector: | ||
| matchLabels: | ||
| app: {{ .Release.Name }}-{{ .Values.accessControlService.name }} | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: {{ .Release.Name }}-{{ .Values.accessControlService.name }} | ||
| spec: | ||
| containers: | ||
| - name: {{ .Values.accessControlService.name }} | ||
| image: {{ .Values.accessControlService.imageName }} | ||
| imagePullPolicy: {{ .Values.texeraImages.pullPolicy }} | ||
| ports: | ||
| - containerPort: {{ .Values.accessControlService.service.port }} | ||
| env: | ||
| - name: STORAGE_JDBC_URL | ||
| value: jdbc:postgresql://{{ .Release.Name }}-postgresql:5432/texera_db?currentSchema=texera_db,public | ||
| - name: STORAGE_JDBC_PASSWORD | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: {{ .Release.Name }}-postgresql | ||
| key: postgres-password | ||
| livenessProbe: | ||
| httpGet: | ||
| path: /api/healthcheck | ||
| port: {{ .Values.accessControlService.service.port }} | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /api/healthcheck | ||
| port: {{ .Values.accessControlService.service.port }} | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 5 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.