Skip to content
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

ssh/check-user-ssh.sh design FVT testing using .git/hooks #57

Closed
BradleyA opened this issue Jul 26, 2019 · 2 comments
Closed

ssh/check-user-ssh.sh design FVT testing using .git/hooks #57

BradleyA opened this issue Jul 26, 2019 · 2 comments

Comments

@BradleyA
Copy link
Owner

ssh/check-user-ssh.sh design FVT testing using .git/hooks
docker-security-infrastructure/ssh/TEST/[ALL,check-user-ssh.ssh, . . . ]

docker-security-infrastructure/ssh/TEST/check-user-ssh.sh/ directory FVT tests ideas:

FVT-option-help-001
FVT-option-help-001.expected
FVT-option-help-001.out
FVT-option-help-002
FVT-option-help-002.expected
FVT-option-help-002.out
FVT-option-help-003
FVT-option-help-003.expected
FVT-option-help-003.out
FVT-option-help-004
FVT-option-help-004.expected
FVT-option-help-004.out
FVT-option-help-005
FVT-option-help-005.expected
FVT-option-help-005.out
FVT-option-help-006
FVT-option-help-006.expected
FVT-option-help-006.out
option-usage-001
option-usage-001.expected
option-usage-002
option-usage-002.expected
option-usage-003
option-usage-003.expected
option-version-001
option-version-001.expected
option-version-002
option-version-002.expected
option-version-003
option-version-003.expected
@BradleyA
Copy link
Owner Author

output from first run of .git/hooks/post-commit

.git/hooks/post-commit: line 17: GIT_AUTHOR_DATE: command not found
GIT_AUTHOR_DATE ><
.git/hooks/post-commit: line 18: GIT_AUTHOR_NAME: command not found
GIT_AUTHOR_NAME ><
.git/hooks/post-commit: line 19: GIT_AUTHOR_EMAIL: command not found
GIT_AUTHOR_EMAIL ><
.git/hooks/post-commit: line 20: GIT_REFLOG_ACTION: command not found
GIT_REFLOG_ACTION ><
.git/hooks/post-commit: line 21: GIT_INDEX_FILE: command not found
GIT_INDEX_FILE ><
$GIT_DIR >.git<
fatal: ambiguous argument '–git-dir': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
$(git rev-parse –git-dir) >–git-dir<
pwd >/home/uadmin/github/BradleyA/docker-security-infrastructure<
XDG_SESSION_ID=c2
GIT_DIR=.git
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.1.203 45762 22
DOCKER_HOST=tcp://six-rpi3b.cptx86.com:2376
GIT_AUTHOR_DATE=@1564163638 -0500
GTK_MODULES=gail:atk-bridge
SSH_TTY=/dev/pts/1
GIT_EDITOR=:
USER=uadmin
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
GIT_INDEX_FILE=.git/index
GIT_AUTHOR_NAME=Bradley Allen
DOCKER_TLS_VERIFY=1
GIT_PREFIX=
MAIL=/var/mail/uadmin
PATH=/usr/lib/git-core:/home/uadmin/bin:/home/uadmin/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REGISTRY_HOST=two.cptx86.com
REGISTRY_PORT=17313
PWD=/home/uadmin/github/BradleyA/docker-security-infrastructure
LANG=en_US.UTF-8
DOCKER_CERT_PATH=/home/uadmin/.docker
SHLVL=3
HOME=/home/uadmin
LANGUAGE=en_US:en
LOGNAME=uadmin
VISUAL=/usr/bin/vi
DOCKER_CONTENT_TRUST=1
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
SSH_CONNECTION=192.168.1.203 45762 192.168.1.106 22
LESSOPEN=| /usr/bin/lesspipe %s
XDG_RUNTIME_DIR=/run/user/10000
GIT_AUTHOR_EMAIL=allen.bradley@ymail.com
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
            [-R number] [-m flag] hostname [server]
       -a is equivalent to -v -t ANY
       -c specifies query class for non-IN data
       -C compares SOA records on authoritative nameservers
       -d is equivalent to -v
       -l lists all hosts in a domain, using AXFR
       -i IP6.INT reverse lookups
       -N changes the number of dots allowed before root lookup is done
       -r disables recursive processing
       -R specifies number of retries for UDP packets
       -s a SERVFAIL response should stop query
       -t specifies the query type
       -T enables TCP/IP mode
       -v enables verbose output
       -w specifies to wait forever for a reply
       -W specifies how long to wait for a reply
       -4 use IPv4 query transport only
       -6 use IPv6 query transport only
       -m set memory debugging flag (trace|record|usage)
       -V print version number and exit
hook ><

@BradleyA
Copy link
Owner Author

Hooks are per-repository and are never pushed. Similarly, the repo config isn't pushed either, nor is anything in .git/info , or a number of other things. Pushing and pulling only exchanges branches/tags and commit objects (and anything reachable from a commit, e.g. trees, blobs)

BradleyA added a commit that referenced this issue Jul 26, 2019
BradleyA added a commit that referenced this issue Jul 26, 2019
BradleyA added a commit that referenced this issue Jul 26, 2019
BradleyA added a commit that referenced this issue Jul 26, 2019
BradleyA added a commit that referenced this issue Jul 26, 2019
BradleyA added a commit that referenced this issue Jul 26, 2019
BradleyA added a commit that referenced this issue Jul 27, 2019
BradleyA added a commit that referenced this issue Jul 28, 2019
BradleyA added a commit that referenced this issue Jul 28, 2019
…er-ssh.sh: add production standard 9.0 Parse CLI options and arguments #57
@BradleyA BradleyA added this to Completed in ssh - R&D May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
ssh - R&D
  
Completed
Development

No branches or pull requests

1 participant