https://github.com/os-climate/trino-github-group-provider
https://github.com/os-climate/trino-github-group-provider
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/os-climate/trino-github-group-provider
- Owner: os-climate
- License: apache-2.0
- Created: 2021-11-04T23:18:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T20:40:46.000Z (8 months ago)
- Last Synced: 2024-11-07T17:12:31.927Z (7 months ago)
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
An implementation of Trino Group Provider, which will map GitHub org teams to correspondin trino user groups.
## Build
### build plugin jar files
```sh
$ cd /path/to/plugin/repo
$ mvn clean package
```### build and push image
- Be sure to do this after a successful package build above.
- Specify your preferred image registry and username.
```sh
$ podman login -u your_user_name your.registry.com
$ mvn -Dpush.registry=your.registry.com -Dpush.user=your_user_name -pl plugin podman:build
$ mvn -Dpush.registry=your.registry.com -Dpush.user=your_user_name -pl plugin podman:push
```## cli
```
$ export GITHUB_API_TOKEN=your_token$ java -cp cli/target/osc-github-rest-cli-0.1.0-jar-with-dependencies.jar org.osclimate.githubrest.cli.ListTeams os-climate
Nov 07, 2021 1:51:14 PM okhttp3.internal.platform.Platform log
INFO: --> GET https://api.github.com/orgs/os-climate/teams?per_page=1000&page=1
Nov 07, 2021 1:51:14 PM okhttp3.internal.platform.Platform log
INFO: <-- 200 https://api.github.com/orgs/os-climate/teams?per_page=1000&page=1 (649ms, unknown-length body)
team: aicoe-osc-demo
team: corporate-data-pipeline-admin
team: corporate-data-pipeline-developers
team: entity-matching
team: itr-data-pipeline-admin
team: itr-data-pipeline-developers
team: odh-env-users
team: os-climate-corporate-data-project-team
team: os-climate-data-commons-project-team
team: os-climate-itr-tool-project-team
team: os-climate-physical-risk-tool-project
team: physrisk-data-pipeline-admin
team: physrisk-data-pipeline-developers
```### plugin configuration file
Create `/group-provider.properties` with the following required parameters, e.g.:
```
group-provider.name=osc-github-gp
github.org=os-climate
github.token=xxxxxx
```## references
This plugin was based on the following LDAP group-provider:
https://github.com/arghya18/trino-group-provider-ldap-ad