Skip to content

Commit e0d68de

Browse files
committed
Merge branch 'main' into cira
2 parents 4d3eb08 + 8bad606 commit e0d68de

File tree

151 files changed

+1985
-932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+1985
-932
lines changed

.github/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
linters-settings:
22
gci:
3-
local-prefixes: github.com/open-amt-cloud-toolkit/console
3+
local-prefixes: github.com/device-management-toolkit/console
44
errorlint:
55
errorf: true
66
errcheck:

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ jobs:
9898
runs-on: ubuntu-latest
9999
strategy:
100100
matrix:
101-
go-version: [1.22.x, 1.23.x]
101+
go-version: [1.23.x, 1.24.x]
102102
os:
103-
[windows-2019, windows-2022, ubuntu-22.04, ubuntu-20.04, ubuntu-24.04]
103+
[windows-2019, windows-2022, ubuntu-22.04, ubuntu-24.04]
104104
steps:
105105
- name: Harden Runner
106106
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
@@ -127,6 +127,7 @@ jobs:
127127
with:
128128
token: ${{ secrets.CODECOV_TOKEN }}
129129
- name: GitHub Upload Release Artifacts
130+
if: always()
130131
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
131132
with:
132133
name: JUnit Results ${{matrix.os}}-${{matrix.go-version}}-${{github.run_attempt}}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Check out Sample Web UI
7575
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # master
7676
with:
77-
repository: open-amt-cloud-toolkit/sample-web-ui
77+
repository: device-management-toolkit/sample-web-ui
7878
ref: main
7979
path: ./temp
8080

@@ -106,17 +106,17 @@ jobs:
106106
- shell: bash
107107
if: matrix.os == 'ubuntu-latest'
108108
run: |
109-
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${{ needs.prepare.outputs.version }}'" -trimpath -o dist/linux/console_linux_x64 ./cmd/app/main.go
109+
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'github.com/device-management-toolkit/console/internal/app.Version=${{ needs.prepare.outputs.version }}'" -trimpath -o dist/linux/console_linux_x64 ./cmd/app/main.go
110110
111111
- shell: bash
112112
if: matrix.os == 'windows-latest'
113113
run: |
114-
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${{ needs.prepare.outputs.version }}'" -trimpath -o dist/windows/console_windows_x64.exe ./cmd/app/main.go
114+
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X 'github.com/device-management-toolkit/console/internal/app.Version=${{ needs.prepare.outputs.version }}'" -trimpath -o dist/windows/console_windows_x64.exe ./cmd/app/main.go
115115
116116
- shell: bash
117117
if: matrix.os == 'macos-latest'
118118
run: |
119-
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${{ needs.prepare.outputs.version }}'" -trimpath -o dist/darwin/console_mac_arm64 ./cmd/app/main.go
119+
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w -X 'github.com/device-management-toolkit/console/internal/app.Version=${{ needs.prepare.outputs.version }}'" -trimpath -o dist/darwin/console_mac_arm64 ./cmd/app/main.go
120120
121121
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
122122
if: matrix.os == 'ubuntu-latest'

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
linters-settings:
22
gci:
3-
local-prefixes: github.com/open-amt-cloud-toolkit/console
3+
local-prefixes: github.com/device-management-toolkit/console
44
errorlint:
55
errorf: true
66
errcheck:

.releaserc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@
99
}
1010
],
1111
"plugins": [
12-
"@semantic-release/commit-analyzer",
12+
[
13+
"@semantic-release/commit-analyzer",
14+
{
15+
"releaseRules": [
16+
{
17+
"type": "chore",
18+
"release": "patch"
19+
}
20+
]
21+
}
22+
],
1323
"@semantic-release/release-notes-generator",
1424
"@semantic-release/changelog",
1525
[

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# Step 1: Modules caching
2-
FROM golang:1.24-alpine3.20@sha256:3d9132b88a6317b846b55aa8e821821301906fe799932ecbc4f814468c6977a5 AS modules
2+
FROM golang:1.24-alpine3.20@sha256:9f98e9893fbc798c710f3432baa1e0ac6127799127c3101d2c263c3a954f0abe AS modules
33
COPY go.mod go.sum /modules/
44
WORKDIR /modules
55
RUN apk add --no-cache git
66
RUN go mod download
77

88
# Step 2: Builder
9-
FROM golang:1.24-alpine3.20@sha256:3d9132b88a6317b846b55aa8e821821301906fe799932ecbc4f814468c6977a5 AS builder
9+
FROM golang:1.24-alpine3.20@sha256:9f98e9893fbc798c710f3432baa1e0ac6127799127c3101d2c263c3a954f0abe AS builder
1010
COPY --from=modules /go/pkg /go/pkg
1111
COPY . /app
1212
WORKDIR /app
1313
RUN go mod tidy
14+
RUN mkdir -p /app/tmp/
1415
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
1516
go build -o /bin/app ./cmd/app
1617
RUN mkdir -p /.config/device-management-toolkit
1718
# Step 3: Final
1819
FROM scratch
20+
ENV TMPDIR=/tmp
21+
COPY --from=builder /app/tmp /tmp
1922
COPY --from=builder /app/config /config
2023
COPY --from=builder /app/internal/app/migrations /migrations
2124
COPY --from=builder /bin/app /app

README.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
![Build](https://img.shields.io/github/actions/workflow/status/open-amt-cloud-toolkit/console/ci.yml?style=for-the-badge&label=Build&logo=github)
2-
![Codecov](https://img.shields.io/codecov/c/github/open-amt-cloud-toolkit/console?style=for-the-badge&logo=codecov)
3-
[![OSSF-Scorecard Score](https://img.shields.io/ossf-scorecard/github.com/open-amt-cloud-toolkit/console?style=for-the-badge&label=OSSF%20Score)](https://api.securityscorecards.dev/projects/github.com/open-amt-cloud-toolkit/console)
1+
![Build](https://img.shields.io/github/actions/workflow/status/device-management-toolkit/console/ci.yml?style=for-the-badge&label=Build&logo=github)
2+
![Codecov](https://img.shields.io/codecov/c/github/device-management-toolkit/console?style=for-the-badge&logo=codecov)
3+
[![OSSF-Scorecard Score](https://img.shields.io/ossf-scorecard/github.com/device-management-toolkit/console?style=for-the-badge&label=OSSF%20Score)](https://api.securityscorecards.dev/projects/github.com/device-management-toolkit/console)
44
[![Discord](https://img.shields.io/discord/1063200098680582154?style=for-the-badge&label=Discord&logo=discord&logoColor=white&labelColor=%235865F2&link=https%3A%2F%2Fdiscord.gg%2FDKHeUNEWVH)](https://discord.gg/DKHeUNEWVH)
55
# Console
66

77

8-
> Disclaimer: Production viable releases are tagged and listed under 'Releases'. Console is under development. **The current available tags for download are Alpha version code and should not be used in production.** For these Alpha tags, certain features may not function yet, visual look and feel may change, or bugs/errors may occur. Follow along our [Feature Backlog for future releases and feature updates](https://github.com/orgs/open-amt-cloud-toolkit/projects/10).
8+
> Disclaimer: Production viable releases are tagged and listed under 'Releases'. Console is under development. **The current available tags for download are Alpha version code and should not be used in production.** For these Alpha tags, certain features may not function yet, visual look and feel may change, or bugs/errors may occur. Follow along our [Feature Backlog for future releases and feature updates](https://github.com/orgs/device-management-toolkit/projects/10).
99
1010
## Overview
1111

1212
Console is an application that provides a 1:1, direct connection for AMT devices for use in an enterprise environment. Users can add activated AMT devices to access device information and device management functionality such as power control, remote keyboard-video-mouse (KVM) control, and more.
1313

14-
<!-- **For detailed documentation** about Getting Started or other features of the Open AMT Cloud Toolkit, see the [docs](https://open-amt-cloud-toolkit.github.io/docs). -->
15-
1614
<br>
1715

1816
## Quick start
1917

2018
### For Users
2119

22-
1. Find the latest release of Console under [Github Releases](https://github.com/open-amt-cloud-toolkit/console/releases/latest).
20+
1. Find the latest release of Console under [Github Releases](https://github.com/device-management-toolkit/console/releases/latest).
2321

2422
2. Download the appropriate binary assets for your OS and Architecture under the *Assets* dropdown section.
2523

@@ -40,16 +38,12 @@ $ make run
4038

4139
Download and check out the sample-web-ui:
4240
```
43-
git clone https://github.com/open-amt-cloud-toolkit/sample-web-ui
41+
git clone https://github.com/device-management-toolkit/sample-web-ui
4442
```
4543

4644
Ensure that the environment file has cloud set to `false` and that the URLs for RPS and MPS are pointing to where you have `Console` running. The default is `http://localhost:8181`. Follow the instructions for launching and running the UI in the sample-web-ui readme.
4745

4846

49-
50-
51-
52-
5347
## Dev tips for passing CI Checks
5448

5549
- Install gofumpt `go install mvdan.cc/gofumpt@latest` (replaces gofmt)
@@ -63,12 +57,12 @@ Ensure that the environment file has cloud set to `false` and that the URLs for
6357

6458
## Additional Resources
6559

66-
- For detailed documentation and Getting Started, [visit the docs site](https://open-amt-cloud-toolkit.github.io/docs).
60+
- For detailed documentation and Getting Started, [visit the docs site](https://device-management-toolkit.github.io/docs).
6761

6862
<!-- - Looking to contribute? [Find more information here about contribution guidelines and practices](.\CONTRIBUTING.md). -->
6963

70-
- Find a bug? Or have ideas for new features? [Open a new Issue](https://github.com/open-amt-cloud-toolkit/console/issues).
64+
- Find a bug? Or have ideas for new features? [Open a new Issue](https://github.com/device-management-toolkit/console/issues).
7165

72-
- Need additional support or want to get the latest news and events about Open AMT? Connect with the team directly through Discord.
66+
- Need additional support or want to get the latest news and events about Device Management Toolkit? Connect with the team directly through Discord.
7367

7468
[![Discord Banner 1](https://discordapp.com/api/guilds/1063200098680582154/widget.png?style=banner2)](https://discord.gg/DKHeUNEWVH)

cmd/app/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"os/exec"
88
"runtime"
99

10-
"github.com/open-amt-cloud-toolkit/go-wsman-messages/v2/pkg/security"
10+
"github.com/device-management-toolkit/go-wsman-messages/v2/pkg/security"
1111

12-
"github.com/open-amt-cloud-toolkit/console/config"
13-
"github.com/open-amt-cloud-toolkit/console/internal/app"
12+
"github.com/device-management-toolkit/console/config"
13+
"github.com/device-management-toolkit/console/internal/app"
1414
)
1515

1616
// Function pointers for better testability.

cmd/app/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/stretchr/testify/assert"
88
"github.com/stretchr/testify/mock"
99

10-
"github.com/open-amt-cloud-toolkit/console/config"
10+
"github.com/device-management-toolkit/console/config"
1111
)
1212

1313
type MockCommandExecutor struct {

config/config.go

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,28 @@ type (
6060
Password string `yaml:"password" env:"EA_PASSWORD"`
6161
}
6262

63+
// Auth -.
6364
Auth struct {
64-
Disabled bool `yaml:"disabled" env:"AUTH_DISABLED"`
65-
// BASIC
65+
Disabled bool `yaml:"disabled" env:"AUTH_DISABLED"`
6666
AdminUsername string `yaml:"adminUsername" env:"AUTH_ADMIN_USERNAME"`
6767
AdminPassword string `yaml:"adminPassword" env:"AUTH_ADMIN_PASSWORD"`
6868
JWTKey string `env-required:"true" yaml:"jwtKey" env:"AUTH_JWT_KEY"`
6969
JWTExpiration time.Duration `yaml:"jwtExpiration" env:"AUTH_JWT_EXPIRATION"`
7070
RedirectionJWTExpiration time.Duration `yaml:"redirectionJWTExpiration" env:"AUTH_REDIRECTION_JWT_EXPIRATION"`
71-
// OAUTH
72-
ClientID string `yaml:"clientId" env:"AUTH_CLIENT_ID"`
73-
Issuer string `yaml:"issuer" env:"AUTH_ISSUER"`
71+
ClientID string `yaml:"clientId" env:"AUTH_CLIENT_ID"`
72+
Issuer string `yaml:"issuer" env:"AUTH_ISSUER"`
73+
UI UIAuthConfig `yaml:"ui"`
74+
}
75+
76+
// UIAuthConfig -.
77+
UIAuthConfig struct {
78+
ClientID string `yaml:"clientId"`
79+
Issuer string `yaml:"issuer"`
80+
RedirectURI string `yaml:"redirectUri"`
81+
Scope string `yaml:"scope"`
82+
ResponseType string `yaml:"responseType"`
83+
RequireHTTPS bool `yaml:"requireHttps"`
84+
StrictDiscoveryDocumentValidation bool `yaml:"strictDiscoveryDocumentValidation"`
7485
}
7586
)
7687

@@ -80,7 +91,7 @@ func NewConfig() (*Config, error) {
8091
ConsoleConfig = &Config{
8192
App: App{
8293
Name: "console",
83-
Repo: "open-amt-cloud-toolkit/console",
94+
Repo: "device-management-toolkit/console",
8495
Version: "DEVELOPMENT",
8596
CommonName: "localhost",
8697
EncryptionKey: "",
@@ -113,6 +124,15 @@ func NewConfig() (*Config, error) {
113124
// OAUTH CONFIG, if provided will not use basic auth
114125
ClientID: "",
115126
Issuer: "",
127+
UI: UIAuthConfig{
128+
ClientID: "",
129+
Issuer: "",
130+
RedirectURI: "",
131+
Scope: "",
132+
ResponseType: "",
133+
RequireHTTPS: false,
134+
StrictDiscoveryDocumentValidation: true,
135+
},
116136
},
117137
}
118138

0 commit comments

Comments
 (0)