-
Notifications
You must be signed in to change notification settings - Fork 0
project init #1
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
project init #1
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
20f859f
save install ca scripts
IlmLV b9828f3
add tests
IlmLV 31f6304
run push actions only on main
IlmLV fc949ca
Update README.md
IlmLV 91e3d7e
Update install-ca-cert.sh
IlmLV c9bb1d3
Update tests/docker-linux-setup.sh
IlmLV 2abfc5e
Simplify HTTPS server readiness check in entrypoint.linux.sh
Copilot 1c26e79
Update install-ca-cert.ps1
IlmLV 27edecb
Update install-ca-cert.sh
IlmLV 8765f71
Update tests/windows.ps1
IlmLV c987e71
WIP: begin runtime cert gen, arg parsing, TLS fallback changes
Copilot d7af330
Address comments: runtime cert gen, arg/force flags, TLS fallback, se…
Copilot c6057c7
fix some tests
IlmLV 243ee5f
Fix Stop-Job -Force: remove invalid -Force param from Stop-Job in win…
Copilot c68b033
code cleanup
IlmLV 1c12eed
update tests
IlmLV 5094a02
code quality improvements
IlmLV 3d4732c
remove brave test add todos for missing browser tests
IlmLV e870adc
cleanup
IlmLV ebdd569
add auto-approve option
IlmLV 5268c82
add graceful interrupt
IlmLV bd79c80
Update tests/windows.ps1
IlmLV 792a1d3
Apply suggestions from code review
IlmLV f54e937
Apply suggestions from code review
IlmLV 6c5397a
Apply suggestions from code review
IlmLV ec97506
refactor(tests): replace Invoke-WithInput with direct Invoke-Script, …
Copilot b6b6639
Apply suggestions from code review
IlmLV a4a1f54
feat(ps1): add early elevation check; simplify README admin instructions
Copilot e439434
Apply suggestions from code review
IlmLV 074e02c
code quality improvements
IlmLV 9c0780d
Apply suggestions from code review
IlmLV c02ecbd
Apply suggestions from code review
IlmLV 9bf701b
fix: remove -UseBasicParsing; reliable openssl cleanup; add --force/-…
Copilot 8ce22d1
Apply suggestions from code review
IlmLV 9420e31
refactor: require PowerShell 7+; simplify platform detection and inse…
Copilot 926d67f
Apply suggestions from code review
IlmLV 323dd92
Update install-ca-cert.ps1
IlmLV 405a80a
Apply suggestions from code review
IlmLV ce08d14
Apply suggestions from code review
IlmLV 189d26d
Apply suggestions from code review
IlmLV e7c9f9b
Apply suggestions from code review
IlmLV 8ba9ecd
feat: add elevation check to test harness and CA cert validation to i…
Copilot 5dd8399
Apply suggestions from code review
IlmLV e449d55
fix: resolve CI test failures in Linux and Windows test suites
Copilot 708f1df
3 iterations of copilot review improvements
IlmLV 8ee1e30
claude codereview improvements
IlmLV 582114f
fix: address reviewer feedback — SourceIdentifier, leaf cert test, RE…
Copilot a4bbab5
style: add BasicConstraints OID comment in generate-certs.ps1
Copilot df92a2c
fix: correct New-SelfSignedCertificate KeyUsage and openssl output ca…
Copilot 1739e0a
fix: resolve Pester test failures from PEM loading issues
Copilot 81d37fa
fix: use split/join for PEM base64 wrapping to avoid trailing newline…
Copilot ebb7e7e
improve script non interactive usage
IlmLV 6aeba75
update readme
IlmLV 87ea2ac
reduce powershell requirements and fix line endings
IlmLV 28aeebd
powershell v5 compatibility
IlmLV f3b2fca
add vscode task and launch configuration
IlmLV ac720cc
shorten oneliner
IlmLV c3d31db
shorten oneliner bash examples
IlmLV bbfdf85
rename repository to install-ca
IlmLV 9df7b3b
Apply suggestions from code review
IlmLV fc0d8ff
rename casource to url for ps script
IlmLV 758879c
Merge branch 'feature/create-scripts' of github.com:IlmLV/install-ca …
IlmLV ae3aa1f
Apply suggestions from code review
IlmLV 7b93fb3
Apply suggestions from code review
IlmLV 0b7d660
add long for m--url to ps script
IlmLV 8b793c4
Apply suggestions from code review
IlmLV 15a34ec
fix inconsistent comments and docs
IlmLV 1d4c108
update ca certs after teardown
IlmLV dade694
fix irm iex Initialize
IlmLV 37ba7b2
fix: prevent PS5.1 openssl stderr from crashing generate-certs.ps1 Be…
Copilot 632a232
fix: keep openssl s_server alive in CI by redirecting stdin
Copilot 5ac883d
fix: add -UseBasicParsing to Invoke-WebRequest in HTTPS trust test
Copilot cc3d34d
ps script remove bom
IlmLV 2bce495
fix non elevated user warning output
IlmLV c868430
fix ps output
IlmLV da2ecd1
cleanup output
IlmLV 4874247
irm iex fixes
IlmLV 8d12598
iem fix
IlmLV bfa028d
iem fix
IlmLV caf36e0
clarify readme windows requirements
IlmLV 50586d1
fix bash piping
IlmLV 03b2016
add more tests
IlmLV d0932f7
Apply suggestions from code review
IlmLV c384932
Apply suggestions from code review
IlmLV 6108ad9
fix: add UTF-8 BOM to PS1 files; replace broken coproc with /dev/null
Copilot dc2d685
fix: propagate Install exit code in Invoke-Oneliner
Copilot 32b1403
remove bom and reason it was used
IlmLV a25420c
replace ps1 script unicode characters with ascii
IlmLV 097dce6
pr review fixes
IlmLV d23b2de
Apply suggestions from code review
IlmLV 22f6a2c
restore tls version config on host running script
IlmLV bb5687f
Apply suggestions from code review
IlmLV 2fb6292
dynamic arch for linux install script
IlmLV cf48e84
fix
IlmLV 2a33de5
prevent multiple url passing
IlmLV 5e4edef
fix
IlmLV cbf9e78
PR review fixes
IlmLV 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Normalize line endings: LF in repository | ||
| * text=auto eol=lf | ||
|
|
||
| # Shell scripts: LF always | ||
| *.sh text eol=lf | ||
|
|
||
| # PowerShell scripts: CRLF on checkout | ||
| *.ps1 text eol=crlf |
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,63 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| schedule: | ||
| - cron: "0 2 1 * *" | ||
|
|
||
| jobs: | ||
| # ── Linux / Bash ───────────────────────────────────────────────────────────── | ||
| test-bash: | ||
| name: BATS (Linux - ${{ matrix.distro }}) | ||
| runs-on: ubuntu-latest | ||
| if: ${{ github.event_name != 'schedule' || github.ref == 'refs/heads/main' }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - distro: ubuntu | ||
| dockerfile: tests/Dockerfile.ubuntu | ||
| tag: install-ca-bats-ubuntu:ci | ||
| - distro: debian | ||
| dockerfile: tests/Dockerfile.debian | ||
| tag: install-ca-bats-debian:ci | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Build test image | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: . | ||
| file: ${{ matrix.dockerfile }} | ||
| load: true | ||
| tags: ${{ matrix.tag }} | ||
| cache-from: type=gha,scope=bats-${{ matrix.distro }} | ||
| cache-to: type=gha,scope=bats-${{ matrix.distro }},mode=max | ||
|
|
||
| - name: Run BATS tests | ||
| run: docker run --rm ${{ matrix.tag }} | ||
|
|
||
| # ── Windows / Native ──────────────────────────────────────────────────────── | ||
| test-windows: | ||
| name: Pester (Windows) | ||
| runs-on: windows-latest | ||
| if: ${{ github.event_name != 'schedule' || github.ref == 'refs/heads/main' }} | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Pester | ||
| shell: powershell | ||
| run: Install-Module -Name Pester -MinimumVersion 5.0 -Force -Scope CurrentUser | ||
|
|
||
| - name: Run Windows tests | ||
| shell: powershell | ||
| run: Invoke-Pester tests/windows.ps1 -Output Detailed -CI | ||
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,74 @@ | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Test: Linux All", | ||
| "type": "node-terminal", | ||
| "request": "launch", | ||
| "command": "bash tests/run-tests.sh", | ||
| "cwd": "${workspaceFolder}", | ||
| "presentation": { | ||
| "group": "linux", | ||
| "order": 1 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Test: Linux Ubuntu", | ||
| "type": "node-terminal", | ||
| "request": "launch", | ||
| "command": "bash tests/run-tests.sh linux-ubuntu", | ||
| "cwd": "${workspaceFolder}", | ||
| "presentation": { | ||
| "group": "linux", | ||
| "order": 2 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Test: Linux Debian", | ||
| "type": "node-terminal", | ||
| "request": "launch", | ||
| "command": "bash tests/run-tests.sh linux-debian", | ||
| "cwd": "${workspaceFolder}", | ||
| "presentation": { | ||
| "group": "linux", | ||
| "order": 3 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Debug: install-ca.sh", | ||
| "type": "node-terminal", | ||
| "request": "launch", | ||
| "command": "bash install-ca.sh", | ||
| "cwd": "${workspaceFolder}", | ||
| "console": "integratedTerminal", | ||
| "presentation": { | ||
| "group": "linux", | ||
| "order": 4 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Test: Windows", | ||
| "type": "node-terminal", | ||
| "request": "launch", | ||
| "command": "powershell -NoProfile -ExecutionPolicy Bypass -Command \"Invoke-Pester '${workspaceFolder}/tests/windows.ps1' -Output Detailed\"", | ||
| "cwd": "${workspaceFolder}", | ||
| "presentation": { | ||
| "group": "windows", | ||
| "order": 1 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Debug: install-ca.ps1", | ||
| "type": "PowerShell", | ||
| "request": "launch", | ||
| "script": "${workspaceFolder}/install-ca.ps1", | ||
| "args": [], | ||
| "cwd": "${workspaceFolder}", | ||
| "console": "integratedTerminal", | ||
| "presentation": { | ||
| "group": "---", | ||
| "order": 2 | ||
| } | ||
| } | ||
| ] | ||
| } |
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,74 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "label": "Test: Linux Ubuntu", | ||
| "type": "shell", | ||
| "command": "bash tests/run-tests.sh linux-ubuntu", | ||
| "group": "test", | ||
| "presentation": { | ||
| "echo": true, | ||
| "reveal": "always", | ||
| "focus": false, | ||
| "panel": "dedicated", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Linux Debian", | ||
| "type": "shell", | ||
| "command": "bash tests/run-tests.sh linux-debian", | ||
| "group": "test", | ||
| "presentation": { | ||
| "echo": true, | ||
| "reveal": "always", | ||
| "focus": false, | ||
| "panel": "dedicated", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Linux All", | ||
| "type": "shell", | ||
| "command": "bash tests/run-tests.sh", | ||
| "group": { | ||
| "kind": "test", | ||
| "isDefault": true | ||
| }, | ||
| "presentation": { | ||
| "echo": true, | ||
| "reveal": "always", | ||
| "focus": false, | ||
| "panel": "dedicated", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Windows", | ||
| "type": "shell", | ||
| "command": "Invoke-Pester tests/windows.ps1 -Output Detailed", | ||
| "options": { | ||
| "shell": { | ||
| "executable": "powershell", | ||
| "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"] | ||
| } | ||
| }, | ||
| "group": "test", | ||
| "presentation": { | ||
| "echo": true, | ||
| "reveal": "always", | ||
| "focus": false, | ||
| "panel": "dedicated", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "problemMatcher": [] | ||
| } | ||
| ] | ||
| } |
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,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 Ilmars Kluss | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
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.