Skip to content

Commit dfdbadc

Browse files
committed
clean for public release
1 parent 364439a commit dfdbadc

16 files changed

+73
-48
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
version: 2
77
updates:
8-
# Enable version updates for Go modules
8+
# Enable version updates for Docker modules
99
- package-ecosystem: "docker"
1010
directory: "/"
1111
schedule:
@@ -15,4 +15,4 @@ updates:
1515
- package-ecosystem: "github-actions"
1616
directory: "/"
1717
schedule:
18-
interval: "daily"
18+
interval: "daily"

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Docker meta
2121
id: meta
22-
uses: docker/metadata-action@v4
22+
uses: docker/metadata-action@v5
2323
with:
2424
images: ghcr.io/nutanix-cloud-native/ntnx-api-proxy
2525
tags: |
@@ -30,14 +30,14 @@ jobs:
3030
3131
- name: Login to Registry
3232
if: github.event_name != 'pull_request'
33-
uses: docker/login-action@v2
33+
uses: docker/login-action@v3
3434
with:
3535
registry: ghcr.io
3636
username: ${{ github.actor }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838

3939
- name: Build and push
40-
uses: docker/build-push-action@v4
40+
uses: docker/build-push-action@v5
4141
with:
4242
context: .
4343
push: ${{ github.event_name != 'pull_request' }}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Black Duck Intelligent Policy Check
1+
name: Black Duck Daily Policy Check
22
on:
33
schedule:
44
- cron: "0 0 * * *"
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

14-
- name: Run Synopsys Detect
15-
uses: synopsys-sig/detect-action@v0.3.4
14+
- name: Black Duck Full Scan
15+
uses: synopsys-sig/synopsys-action@v1.6.0
1616
with:
17-
scan-mode: INTELLIGENT
18-
github-token: ${{ secrets.GITHUB_TOKEN }}
19-
detect-version: 8.10.0
20-
blackduck-url: ${{ secrets.BLACKDUCK_URL }}
21-
blackduck-api-token: ${{ secrets.BLACKDUCK_API_TOKEN }}
17+
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
18+
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
blackduck_scan_full: true
21+
blackduck_scan_failure_severities: 'BLOCKER,CRITICAL'

.github/workflows/synopsys.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,24 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

16-
- name: Run Synopsys Detect
17-
uses: synopsys-sig/[email protected]
16+
- name: Black Duck Full Scan
17+
if: ${{ github.event_name != 'pull_request' }}
18+
uses: synopsys-sig/[email protected]
1819
with:
19-
github-token: ${{ secrets.GITHUB_TOKEN }}
20-
detect-version: 8.10.0
21-
blackduck-url: ${{ secrets.BLACKDUCK_URL }}
22-
blackduck-api-token: ${{ secrets.BLACKDUCK_API_TOKEN }}
20+
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
21+
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
blackduck_scan_full: true
24+
blackduck_scan_failure_severities: 'BLOCKER,CRITICAL'
25+
26+
- name: Black Duck PR Scan
27+
if: ${{ github.event_name == 'pull_request' }}
28+
uses: synopsys-sig/[email protected]
29+
with:
30+
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
31+
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
blackduck_scan_full: false
34+
blackduck_automation_prcomment: true

.github/workflows/trivy-scan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: "ubuntu-latest"
1818
steps:
1919
- name: Checkout Code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Get repository name
2323
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
@@ -31,7 +31,7 @@ jobs:
3131
docker build -t ${{ env.REPOSITORY_NAME }}:${{ github.sha }} .
3232
3333
- name: Run Trivy vulnerability scanner
34-
uses: aquasecurity/trivy-action@0.11.2
34+
uses: aquasecurity/trivy-action@0.16.0
3535
with:
3636
image-ref: "${{ env.REPOSITORY_NAME }}:${{ github.sha }}"
3737
format: "sarif"

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cert.key
33
.terraform*
44
*.tfstate*
55
terraform.tfvars
6-
terraform/cert/tls.*
7-
terraform/cert/ca.*
8-
terraform/cert/additional_ca.crt
6+
tofu/cert/tls.*
7+
tofu/cert/ca.*
8+
tofu/cert/additional_ca.crt
99
files/docker.config

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010

1111
---
1212

13+
Disclaimer: The software code configuration provided herein is intended solely for illustrative purposes and serves as an example. This configuration is not officially supported. Users are advised that the example may not be adapted for production environments, and its use is at their own risk. It is recommended that users seek professional advice for configuring the software in a production or critical environment.
14+
15+
---
16+
1317
This tool allows the concentration of Prism Central API calls to a single point to simplify filtering and limit access.
1418

15-
This tool has been validated with the following components:
19+
This tool has been tested with the following components:
1620

1721
PC v1 & v2 API
1822
- CSI 3.0
@@ -24,10 +28,10 @@ PC v3 API:
2428
- CSI 3.0
2529

2630
PC v4 API:
27-
- CSI 3.0
28-
- vm-operator (beta)
31+
- CSI 3.0ea
32+
33+
Tools and APIs call may evolve over time, which may require updating the proxy configuration before upgrading any dependent solutions.
2934

30-
*** potential issue with v4 SDK and Auth Proxy ***
3135

3236
## How to use this image
3337

@@ -45,15 +49,14 @@ services:
4549
restart: always
4650
ports:
4751
- 9440:9440
52+
# - 8080:8080 #used for metrics export
4853
environment:
4954
FQDN: proxy-pc.demo.com
5055
NUTANIX_ENDPOINT: pc.demo.com
5156
# TRAEFIK_LOG_LEVEL: "info"
5257
# TRAEFIK_SERVERSTRANSPORT_ROOTCAS: /etc/traefik/cert/ca.cer
53-
# AUTH_PROXY: enable
54-
# NUTANIX_USERNAME: admin
55-
# NUTANIX_PASSWORD: Bik7Tr750!
5658
# DASHBOARD: enable
59+
# TRAEFIK_METRICS_PROMETHEUS: "true"
5760
volumes:
5861
- ./cert:/etc/traefik/cert
5962
# - ./auth:/etc/traefik/auth
@@ -95,7 +98,7 @@ Advanced configuration is possible using the following env variables:
9598
| TRAEFIK_LOG_LEVEL | Log level of proxy logs | false | error |
9699
| TRAEFIK_SERVERSTRANSPORT_ROOTCAS | Path of the CA file to validate backend | false | *none* |
97100
| TRAEFIK_SERVERSTRANSPORT_INSECURESKIPVERIFY | Disable SSL certificate verification | false | false |
98-
101+
| TRAEFIK_METRICS_PROMETHEUS | enable metrics export via Prometheus | false | false |
99102

100103

101104
## Advanced configuration
@@ -118,6 +121,10 @@ Proxy will be available at the following address: `https://FQDN:9440/dashboard/`
118121

119122

120123

124+
## Alternate install
125+
126+
You can explore the OpenTofu install method in this [folder](tofu).
127+
121128
## Contributing
122129

123130
See the [contributing docs](CONTRIBUTING.md).
@@ -136,4 +143,4 @@ Issues and enhancement requests can be submitted in the [Issues tab of this repo
136143

137144
## License
138145

139-
The project is released under version 2.0 of the [Apache license](http://www.apache.org/licenses/LICENSE-2.0).
146+
The project is released under version 2.0 of the [Apache license](http://www.apache.org/licenses/LICENSE-2.0).

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ services:
77
restart: always
88
ports:
99
- 9440:9440
10+
# - 8080:8080
1011
environment:
1112
FQDN: proxy-pc.demo.com
1213
NUTANIX_ENDPOINT: pc.demo.com
1314
# TRAEFIK_LOG_LEVEL: "info"
1415
# TRAEFIK_SERVERSTRANSPORT_ROOTCAS: /etc/traefik/cert/ca.cer
15-
# AUTH_PROXY: enable
16-
# NUTANIX_USERNAME: admin
17-
# NUTANIX_PASSWORD: Bik7Tr750!
1816
# DASHBOARD: enable
17+
# TRAEFIK_METRICS_PROMETHEUS="true"
1918
volumes:
2019
- ./cert:/etc/traefik/cert
2120
# - ./auth:/etc/traefik/auth
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Terraform Deployment
1+
# OpenTofu Deployment
22

33
## Prerequisite
44

@@ -10,24 +10,24 @@
1010

1111
## Deployment
1212

13-
First customize `terraform.tfvars` by your demand and initialize Terraform with:
13+
First customize `tofu.tfvars` by your demand and initialize OpenTofu with:
1414

1515
```
16-
terraform init
16+
tofu init
1717
```
1818

19-
Apply the terraform manifest by running
19+
Apply the OpenTofu manifest by running
2020

2121
```
22-
terraform apply
22+
tofu apply
2323
```
2424

2525
## Cleanup
2626

2727
To remove the API-Proxy run
2828

2929
```
30-
terraform destroy
30+
tofu destroy
3131
```
3232

3333
## Things to know and current limitations
File renamed without changes.

0 commit comments

Comments
 (0)