Skip to content

Commit 7ea3d9f

Browse files
zhravanraghavyuvagithub-actions[bot]
authored
chore: clean up conflicts (#322)
* feat : Nixopus CLI (#274) Co-authored-by: shravan20 <mrshravankumarb@gmail.com> * fix: branch-rule on release cli (#318) * fix: change release cli naming issue in workflow path * fix: update release cli workflow * chore(release): update changelog (#281) Co-authored-by: raghavyuva <raghavyuva@users.noreply.github.com> * Update release-cli.yml (#319) * fix: login with ip address deployments * chore: fallback to rsa keytype for ssh generation * Update docs/cli/commands/conflict.md --------- Co-authored-by: Raghavendra Bhat <53376933+raghavyuva@users.noreply.github.com> Co-authored-by: raghavyuva <vikramnbhat15@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: raghavyuva <raghavyuva@users.noreply.github.com>
1 parent bbbe6b3 commit 7ea3d9f

File tree

9 files changed

+45
-83
lines changed

9 files changed

+45
-83
lines changed

.github/workflows/release-cli.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Build and Package CLI
22

33
on:
44
push:
5-
branches: [feat/cli_releaser]
5+
branches: [master]
66
paths:
77
- "cli/**"
8-
- ".github/workflows/build-and-package-cli.yml"
8+
- ".github/workflows/release-cli.yml"
99
workflow_dispatch:
1010

1111
jobs:
@@ -173,7 +173,7 @@ jobs:
173173
create-release:
174174
needs: build-and-package
175175
runs-on: ubuntu-latest
176-
if: github.ref == 'refs/heads/feat/cli_releaser' && github.event_name == 'push'
176+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
177177

178178
steps:
179179
- name: Checkout code
@@ -267,9 +267,8 @@ jobs:
267267
268268
This PR was automatically created by the CLI release workflow." \
269269
--base master \
270-
--head "$BRANCH_NAME" \
271-
--label "automated" \
272-
--label "cli" || echo "Failed to create PR, but continuing with release"
270+
--head "$BRANCH_NAME" || echo "Failed to create PR, but continuing with release"
271+
273272
env:
274273
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
275274

CHANGELOG.md

Lines changed: 22 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
# [0.1.0-alpha.10](https://github.com/raghavyuva/nixopus/compare/v0.1.0-alpha.9...v0.1.0-alpha.10) (2025-06-30)
1+
# [0.1.0-alpha.13](https://github.com/raghavyuva/nixopus/compare/v0.1.0-alpha.12...v0.1.0-alpha.13) (2025-08-09)
2+
3+
4+
### Bug Fixes
5+
6+
* update release cli workflow ([38075dd](https://github.com/raghavyuva/nixopus/commit/38075dd853281eb3954964a6d25f01fd160c7686))
7+
8+
9+
10+
# [0.1.0-alpha.12](https://github.com/raghavyuva/nixopus/compare/v0.1.0-alpha.11...v0.1.0-alpha.12) (2025-08-09)
11+
12+
13+
### Bug Fixes
14+
15+
* branch-rule on release cli ([#318](https://github.com/raghavyuva/nixopus/issues/318)) ([2ed3d17](https://github.com/raghavyuva/nixopus/commit/2ed3d172a498bde12f20f6401ae9ac84b02cdaf2))
16+
* change release cli naming issue in workflow path ([353777e](https://github.com/raghavyuva/nixopus/commit/353777ed3cf56b0ae9ba84553e8e29e3c23116a8))
17+
* update release branch to trigger on master push ([adfdeba](https://github.com/raghavyuva/nixopus/commit/adfdeba581d3a21d0c3f8155c953a7e583958016))
18+
19+
20+
21+
# [0.1.0-alpha.11](https://github.com/raghavyuva/nixopus/compare/v0.1.0-alpha.9...v0.1.0-alpha.11) (2025-07-13)
222

323

424
### Bug Fixes
@@ -12,6 +32,7 @@
1232
* remove fallback to access denied component when something is not passed to rbac related guard as props ([c1b6ad4](https://github.com/raghavyuva/nixopus/commit/c1b6ad426ccf7608583765c117848b23d349faa0))
1333
* remove macos related inconsistency in dev env setup action file ([fb812af](https://github.com/raghavyuva/nixopus/commit/fb812affbf12f02e879b5b02b8681428147e1df0))
1434
* update changelog workflow to include only master branch push ([b0e38dc](https://github.com/raghavyuva/nixopus/commit/b0e38dccc18de00301abcc6b87400deeee0731c6))
35+
* update release workfflow not to push rather create a pr with changes ([a554c87](https://github.com/raghavyuva/nixopus/commit/a554c87f1fa143a049ccf48c3327d1cd357fa975))
1536
* update workflows to be more specific on the events thus by making better use of actions' ([a1a144b](https://github.com/raghavyuva/nixopus/commit/a1a144b71d363f818868474e89eba3673a866a33))
1637
* uses permission guard to have more type safe declarations ([813924c](https://github.com/raghavyuva/nixopus/commit/813924c22ea17988e6c1fd6fb91e2ed94ea3fce4))
1738

@@ -239,61 +260,3 @@
239260

240261

241262

242-
# [0.1.0-alpha.2](https://github.com/raghavyuva/nixopus/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) (2025-04-18)
243-
244-
245-
### Bug Fixes
246-
247-
* add required permissions for release-drafter ([0bd91a2](https://github.com/raghavyuva/nixopus/commit/0bd91a2b16759b432f0f8d9afb06a17200b6e427))
248-
* correct sort-by value to merged_at ([db19ec9](https://github.com/raghavyuva/nixopus/commit/db19ec9559e8d9d05547670e428aa3848514976f))
249-
* **openapi-spec:** routes.go to implement consistent grouping strategy for proper openapi spec generation ([804040d](https://github.com/raghavyuva/nixopus/commit/804040d9715fc25820e174ff2b76eb012ca640fd))
250-
251-
252-
### Features
253-
254-
* **update-readme:** add release status badge ([3586c20](https://github.com/raghavyuva/nixopus/commit/3586c201028b2c73df1c8926ea41eeab56ca8c6b))
255-
256-
257-
258-
# [0.1.0-alpha.1](https://github.com/raghavyuva/nixopus/compare/93187f3e6b34a5df7e7d5677ef64dec4608bcd2c...v0.1.0-alpha.1) (2025-04-18)
259-
260-
261-
### Bug Fixes
262-
263-
* **domain-validation:** allow wildcard domain and check only for main domain instead of looking out for *.example.tld in net.LookupIP() ([c12b377](https://github.com/raghavyuva/nixopus/commit/c12b377d277f42d96a3c31dae0cb273b9a443f0a))
264-
* handle missing issue number in release notification ([24a97b3](https://github.com/raghavyuva/nixopus/commit/24a97b389d4043842d3d1ec5b6d5f1ca592ae053))
265-
* **installation-script:** admin registration throws 400 bad request always and not handled properly in our install.py ([d9db6ac](https://github.com/raghavyuva/nixopus/commit/d9db6acb7dfa1b4d960497be56dad9dec006edc6))
266-
* **middleware:** resolve persistent logout issue, add debug logs, update avatar fallback to use username initials ([4a12290](https://github.com/raghavyuva/nixopus/commit/4a12290b9be5d4a75346957d5b4761bfdfe0e4c5))
267-
* **port-issues-view:** keep port next public port when .env copied to view ([bb8570b](https://github.com/raghavyuva/nixopus/commit/bb8570be4b009547aaeeb9134be7d0612e6006aa))
268-
* **pre-commit:** remove pre commit hook ([6d7a779](https://github.com/raghavyuva/nixopus/commit/6d7a7798241ecb21d3ecb312ce522e87c11e974c))
269-
* **README:** Status Badge for the Container Build ([da309f9](https://github.com/raghavyuva/nixopus/commit/da309f96f3255bda8eeaa2dad07129bf9407f1c0))
270-
* **README:** Status Badge for the security scan ([3f54165](https://github.com/raghavyuva/nixopus/commit/3f541651f848300fe56d84a27021a48ce41d2107))
271-
* **rename-action:** renames container ci cd to package manager in build container action workflow ([0b1d189](https://github.com/raghavyuva/nixopus/commit/0b1d189aba3c385dea3ea274244312651550ef53))
272-
* **rename-action:** renames container ci cd to package manager in build container action workflow ([d5f03a6](https://github.com/raghavyuva/nixopus/commit/d5f03a69c3375827a8b7c9de9c6383620a4a7444))
273-
* **update-labeler-action:** labeler action to have contents: write ([a03ba3c](https://github.com/raghavyuva/nixopus/commit/a03ba3cb66d12cec3394a4a1f54a7cee4413ca1c))
274-
* **update-labeler-action:** labeler action to have correct write permission for issues ([222f261](https://github.com/raghavyuva/nixopus/commit/222f26181c066dd2bdc5d4ab4918a13248b4a35e))
275-
* **workflows:** disabled some which are not actually working out ([8c4a6ca](https://github.com/raghavyuva/nixopus/commit/8c4a6cabd14b23863ac91b13a390ab168a009ba8))
276-
277-
278-
### Features
279-
280-
* :sparkles: Rest endpoints for organization roles and permissions for users ([93187f3](https://github.com/raghavyuva/nixopus/commit/93187f3e6b34a5df7e7d5677ef64dec4608bcd2c))
281-
* **docker-image-optimization:** nextjs image size reduction from 2.8gb to 270mb ([b45dd48](https://github.com/raghavyuva/nixopus/commit/b45dd48f4635bd87b7fff14b3aa1da016f92f93e))
282-
* **file-manager:** improve resposiveness of file manager ([4da64a7](https://github.com/raghavyuva/nixopus/commit/4da64a7fc9e0fd6bd177455ba7fe47a404da265d))
283-
* **file-manager:** update with keyboard shortcuts for copy move delete layout change, show hide hidden files creating new files ([ca5aad6](https://github.com/raghavyuva/nixopus/commit/ca5aad65589de3f7b524e1f410d923d180935c10))
284-
* **format-workflow:** pushes as the commit to the same branch ([2c37474](https://github.com/raghavyuva/nixopus/commit/2c374742a1579f751688f9cc9b2afdb1d005dca9))
285-
* **format-workflow:** the format.yaml now formats pull requests and pushes to the branches ([28f540d](https://github.com/raghavyuva/nixopus/commit/28f540d03c71716d93497702cda1cb788c9be19b))
286-
* **labeler:** action that labels our pull requests based on the files changed config specified in labeler.yml ([b8b76a6](https://github.com/raghavyuva/nixopus/commit/b8b76a6f1523f1055897213850b90106f78dabd7))
287-
* **notification:** integrates discord and slack along with email, creates migrations, ui, and controllers and service files to add update delete the webhooks configs ([2bc691e](https://github.com/raghavyuva/nixopus/commit/2bc691eae4051a5805e4868505c2858e3412d656))
288-
* **release-workflow:** debug release workflow ([f3f7a0d](https://github.com/raghavyuva/nixopus/commit/f3f7a0df9065c3ad1c97846f27b61e58fbd3aec9))
289-
* **release-workflow:** debug release workflow ([6551769](https://github.com/raghavyuva/nixopus/commit/655176948365d90e4c4bab4e4243fe0238e9bd59))
290-
* **release-workflow:** debug release workflow ([0c16aff](https://github.com/raghavyuva/nixopus/commit/0c16aff893562a78f6c437aad9a01d6f62f3b782))
291-
* **release-workflow:** debug release workflow ([5006d67](https://github.com/raghavyuva/nixopus/commit/5006d67f9e92cba77f94d5f6097f4a5881e34980))
292-
* **terminal:** fixes issues with terminal writing with spaces, terminal initializing terminal styling issues ([8a67e6b](https://github.com/raghavyuva/nixopus/commit/8a67e6bb9af5fd7bd8b200c2000a392f5378aca7))
293-
* **update-labeler:** labeler uses the PAT instead of access token ([0956d74](https://github.com/raghavyuva/nixopus/commit/0956d74ab9f9c2bba02b2b741332c580e62dc6f7))
294-
* **update-nixopus:** routes for checking for updates / auto updates, and force update of the nixopus app itself todo (implement the service layer for how do we compare the docker image versions and update ([48af332](https://github.com/raghavyuva/nixopus/commit/48af3324bd098992df515430eeb63080c5f2e324))
295-
* **user-settings:** user settings are no more stored in localstorage, it now uses database for patching individual preference like language font etc, user can toggle to choose auto update of nixopus ([98231ad](https://github.com/raghavyuva/nixopus/commit/98231ad1869b801b0047721d5614f288bd6c7112))
296-
* **vulnerability:** fixes CVE-2024-21538 (HIGH) and CVE-2025-30204 (HIGH) ([c25e0c7](https://github.com/raghavyuva/nixopus/commit/c25e0c7fa9ad742a25f95ae7e2a780a881cad573))
297-
298-
299-

cli/app/commands/install/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def main_install_callback(value: bool):
4646

4747
@install_app.command(name="ssh")
4848
def ssh(
49-
path: str = typer.Option("~/.ssh/nixopus_ed25519", "--path", "-p", help="The SSH key path to generate"),
50-
key_type: str = typer.Option("ed25519", "--key-type", "-t", help="The SSH key type (rsa, ed25519, ecdsa)"),
49+
path: str = typer.Option("~/.ssh/nixopus_rsa", "--path", "-p", help="The SSH key path to generate"),
50+
key_type: str = typer.Option("rsa", "--key-type", "-t", help="The SSH key type (rsa, ed25519, ecdsa)"),
5151
key_size: int = typer.Option(4096, "--key-size", "-s", help="The SSH key size"),
5252
passphrase: str = typer.Option(None, "--passphrase", "-P", help="The passphrase to use for the SSH key"),
5353
verbose: bool = typer.Option(False, "--verbose", "-v", help="Verbose output"),

docs/cli/cli-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ $ nixopus install ssh [OPTIONS]
455455

456456
**Options**:
457457

458-
* `-p, --path TEXT`: The SSH key path to generate [default: ~/.ssh/nixopus_ed25519]
459-
* `-t, --key-type TEXT`: The SSH key type (rsa, ed25519, ecdsa) [default: ed25519]
458+
* `-p, --path TEXT`: The SSH key path to generate [default: ~/.ssh/nixopus_rsa]
459+
* `-t, --key-type TEXT`: The SSH key type (rsa, ed25519, ecdsa) [default: rsa]
460460
* `-s, --key-size INTEGER`: The SSH key size [default: 4096]
461461
* `-P, --passphrase TEXT`: The passphrase to use for the SSH key
462462
* `-v, --verbose`: Verbose output

docs/cli/commands/install.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ nixopus install ssh [OPTIONS]
6262

6363
| Option | Short | Description | Default |
6464
|--------|-------|-------------|---------|
65-
| `--path` | `-p` | SSH key file path | `~/.ssh/nixopus_ed25519` |
66-
| `--key-type` | `-t` | Key type (rsa, ed25519, ecdsa) | `ed25519` |
65+
| `--path` | `-p` | SSH key file path | `~/.ssh/nixopus_rsa` |
66+
| `--key-type` | `-t` | Key type (rsa, ed25519, ecdsa) | `rsa` |
6767
| `--key-size` | `-s` | Key size in bits | `4096` |
6868
| `--passphrase` | `-P` | Passphrase for key encryption | None |
6969
| `--force` | `-f` | Overwrite existing SSH keys | `false` |
@@ -78,7 +78,7 @@ nixopus install ssh [OPTIONS]
7878
**Examples:**
7979

8080
```bash
81-
# Generate default Ed25519 key
81+
# Generate default RSA key
8282
nixopus install ssh
8383

8484
# Generate RSA key with custom path and size
@@ -125,8 +125,8 @@ The install command reads configuration values from the built-in `config.prod.ya
125125
| Setting | Default Value | Description |
126126
|---------|---------------|-------------|
127127
| Timeout | `300` seconds | Maximum time to wait for installation steps |
128-
| SSH Key Path | `~/.ssh/nixopus_ed25519` | Default SSH key location |
129-
| SSH Key Type | `ed25519` | Default SSH key algorithm |
128+
| SSH Key Path | `~/.ssh/nixopus_rsa` | Default SSH key location |
129+
| SSH Key Type | `rsa` | Default SSH key algorithm |
130130
| SSH Key Size | `4096` bits | Default key size for RSA keys |
131131

132132
### Configuration Source

docs/cli/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ clone:
6565
### SSH Configuration
6666
```yaml
6767
ssh_key_size: 4096
68-
ssh_key_type: ed25519
68+
ssh_key_type: rsa
6969
ssh_file_path: ssh/id_rsa
7070
```
7171

helpers/config.dev.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
SSH_HOST: ${SSH_HOST:-localhost}
1414
SSH_PORT: ${SSH_PORT:-22}
1515
SSH_USER: ${SSH_USER:-$USER}
16-
SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY:-~/.ssh/id_ed25519_nixopus}
16+
SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY:-~/.ssh/id_rsa_nixopus}
1717
SSH_PASSWORD: ${SSH_PASSWORD:-}
1818
DOCKER_HOST: ${DOCKER_HOST:-unix:///var/run/docker.sock}
1919
REDIS_URL: ${REDIS_URL:-redis://localhost:6379}
@@ -152,6 +152,6 @@ clone:
152152

153153
ports: [8080, 7443, 6379, 5432, 22]
154154
ssh_key_size: 4096
155-
ssh_key_type: ed25519
155+
ssh_key_type: rsa
156156
ssh_passphrase:
157-
ssh_file_path: ~/.ssh/id_ed25519_nixopus
157+
ssh_file_path: ~/.ssh/id_rsa_nixopus

helpers/config.prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ clone:
139139

140140
ports: [2019, 80, 443, 7443, 8443, 6379, 5432]
141141
ssh_key_size: 4096
142-
ssh_key_type: ed25519
142+
ssh_key_type: rsa
143143
ssh_passphrase:
144144
ssh_file_path: ssh/id_rsa

view/lib/auth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,31 @@ export function setAuthTokens(tokens: AuthTokens, ctx?: any): void {
6060
ctx.cookies.set('token', access_token, {
6161
maxAge: expires_in || 7 * 24 * 60 * 60,
6262
path: '/',
63-
secure: process.env.NODE_ENV === 'production',
63+
secure: false,
6464
sameSite: 'lax'
6565
});
6666

6767
if (refresh_token) {
6868
ctx.cookies.set('refreshToken', refresh_token, {
6969
maxAge: 14 * 24 * 60 * 60,
7070
path: '/',
71-
secure: process.env.NODE_ENV === 'production',
71+
secure: false,
7272
sameSite: 'lax'
7373
});
7474
}
7575
} else {
7676
setCookie(ctx, 'token', access_token, {
7777
maxAge: expires_in || 7 * 24 * 60 * 60,
7878
path: '/',
79-
secure: process.env.NODE_ENV === 'production',
79+
secure: false,
8080
sameSite: 'lax'
8181
});
8282

8383
if (refresh_token) {
8484
setCookie(ctx, 'refreshToken', refresh_token, {
8585
maxAge: 14 * 24 * 60 * 60,
8686
path: '/',
87-
secure: process.env.NODE_ENV === 'production',
87+
secure: false,
8888
sameSite: 'lax'
8989
});
9090
}

0 commit comments

Comments
 (0)