This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade: start building
Secman
v3 with new technologies (#162)
* start building secman v3 * initialize the modfile of secman, update package.json * upgrade `secman v2` to `secman core (sc)` to use it with secman * update `dependabot` config file * remove workflows and actions * update `vscode` configs * create secman code scripts * add new go modules, create `tools` pkg * update go modules, create `api` package * upgrade secman vscode devcontainer * add new go modules and packages, create `constants` pkg * start building `ios` pkg to build secman cli iostreams * create secman iostrams tty_size functions, update modules * finish from secman iostreams colors functions * finish from secman iostreams package, add new modules * start building `cmd` and `internal` packages, update modules * build the version checker of secman in `internal/checker` * start building `internal/shared` package, add new go modules * build the shared style of secman in `internal/shared` * create secman cli options in `pkg/options` package * build secman generator in `pkg/generator`, update go modules * create secman initializer for `secman init` command * add `abdfnx/gosh` module, create `pkg/info` package * start building secman commands in `app` pkg, add new modules * building `pkg/pipe` package with `secman read` pipe * add secman password type function in `internal/shared` * create `secman delete` pipe in `pkg/pipe/delete` package * build `secman insert` command pipe in `pkg/pipe/insert` pkg * create secman password editor in `pkg/pipe/edit` package * finish from `secman edit` command pipe in `pkg/pipe/edit` pkg * start building `secman list` command pipe in `pkg/lister` package * create secman passwords handlers with bubble list * finish from `secman list` command pipe view and list functions * add `secman auth login` command `Login` function * build `secman auth logout` command functions in `pkg/auth/logout` * add `secman auth refresh` command functions in `pkg/auth/refresh` * build `secman auth` command in `app` package * build `secman edit` command in `app` package * create `secman delete` command in `app` package * add `secman insert` command in `app` package * create `secman read` command in `app` package * build `secman list` command in `app` package * start building secman help command handlers * build secman customize help * finish from secman root command and add all app commands * build secman main file * init secman task file, fix errors, update go modules * fix errors in `auth` command and options, update `.gitingore` * setup `golangci` for secman * configure `goreleaser` for secman to automate releaseing * docs(README): update secman readme to the next level * actions(go): build secman go workflow to check go status every commit * actions(codeql): setup codeql scanning code workflow * workflows(release): build and finish from secman release workflow * add `install` task, update codeowners, and contributing guide * add npm source file @abdfnx
- Loading branch information
Showing
152 changed files
with
7,508 additions
and
4,455 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
ARG VARIANT=16-bullseye | ||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | ||
ARG VARIANT=1.17 | ||
ARG NODE_VERSION="16" | ||
|
||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive | ||
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT} | ||
|
||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get install software-properties-common curl | ||
|
||
# Install Node.js | ||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi | ||
|
||
# Install Secman | ||
RUN su node -c "npm install -g secman" | ||
RUN su userx -c "curl -sL https://u.secman.dev | bash" | ||
|
||
# Initialize `~/.secman` | ||
RUN secman init |
This file contains 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 |
---|---|---|
@@ -1,28 +1,39 @@ | ||
{ | ||
"name": "Node.js", | ||
"name": "Go", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { "VARIANT": "16-bullseye" } | ||
}, | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"VARIANT": "1.17", | ||
"NODE_VERSION": "16" | ||
} | ||
}, | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
"settings": { | ||
"search.exclude": { | ||
"node_modules/**": true | ||
}, | ||
"go.toolsManagement.checkForUpdates": "local", | ||
"go.useLanguageServer": true, | ||
"go.gopath": "/go", | ||
"go.goroot": "/usr/local/go", | ||
"editor.formatOnSave": true, | ||
"editor.fontLigatures": true, | ||
"git.autofetch": true, | ||
"git.confirmSync": false, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"javascript.updateImportsOnFileMove.enabled": "always" | ||
"javascript.updateImportsOnFileMove.enabled": "always", | ||
"compile-hero.disable-compile-files-on-did-save-code": true | ||
}, | ||
"extensions": [ | ||
"ms-vscode.js-debug", | ||
"ms-azuretools.vscode-docker", | ||
"esbenp.prettier-vscode", | ||
"PKief.material-icon-theme", | ||
"aaron-bond.better-comments", | ||
"dsznajder.es7-react-js-snippets" | ||
"dsznajder.es7-react-js-snippets", | ||
"golang.go", | ||
"bbenoist.Nix" | ||
], | ||
"postCreateCommand": "yarn install", | ||
"remoteUser": "node" | ||
"postCreateCommand": "go mod tidy && cd core && yarn", | ||
"remoteUser": "userx" | ||
} |
This file contains 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
Validating CODEOWNERS rules …
This file contains 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 |
---|---|---|
@@ -1,5 +1 @@ | ||
* @abdfnx | ||
snapcraft.yaml @david-tomson | ||
.github/workflows/secman.yml @david-tomson | ||
.github/workflows/pack.yml @david-tomson | ||
README.md @Timothee-Cardoso | ||
* @abdfnx @Timothee-Cardoso @david-tomson |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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,26 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Build | ||
run: | | ||
go run ./scripts/date.go >> date.txt | ||
go build -ldflags "-X main.version=$(git describe --abbrev=0 --tags) -X main.buildDate=$(cat date.txt)" -o tran | ||
- name: Test | ||
run: go test -v ./... |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.