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

Feature/infra proxy pipeline #6617

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
c3c282f
Script added for table 'users' (#5722)
sonali523 Sep 16, 2021
f5d2180
iam added on roles tab
iamazzeez Sep 17, 2021
36bcc3d
add fallback and bldr channel env vars to envrc and set back to dev w…
Sep 17, 2021
ed1da75
Script added for table 'org_users' (#5738)
sonali523 Sep 16, 2021
452be0d
added edit policy
iamazzeez Sep 17, 2021
404b274
Storage functions for users table (#5731)
sonali523 Sep 17, 2021
9966918
Chaitali/add server slider (#5728)
chaitali-mane Sep 17, 2021
6874604
environments create, delete policy added
iamazzeez Sep 17, 2021
c766927
edit env policy added
iamazzeez Sep 20, 2021
50c0b36
added data bags policy
iamazzeez Sep 20, 2021
f0e5902
Chaitali/add server slider (#5728)
chaitali-mane Sep 17, 2021
417cf07
ui three dots fix
iamazzeez Sep 20, 2021
9f592ec
reverted iam actions
iamazzeez Sep 21, 2021
3c79c3d
Add changes for the create server slider (#5755)
vinay033 Sep 20, 2021
ed49fb8
removed roles iam
iamazzeez Sep 21, 2021
8a0a0a9
environments authz reverted
iamazzeez Sep 21, 2021
cbe2ad1
databags authz reverted
iamazzeez Sep 21, 2021
69bdb37
Added API to get server users list from backend DB (#5760)
sonali523 Sep 21, 2021
2aea513
Added users tab in server details page (#5802)
chaitali-mane Sep 28, 2021
8704e44
Added css change for notification overlap slider. (#5781)
himanshi-chhabra Sep 28, 2021
4c79374
Command to add the sample automate infra server users (#5786)
sonali523 Sep 29, 2021
e34f440
Renaming the sql files and modifying to incorporate WebUI key
kalroy Nov 25, 2021
ac9165f
infra_server_actions tests
iamazzeez Sep 28, 2021
25ee1b5
infra server list doc update
iamazzeez Sep 28, 2021
eb71b0a
test cases fix
iamazzeez Sep 28, 2021
4b8f34f
lint fixes
iamazzeez Sep 28, 2021
5d0add4
added infra server get test cases
iamazzeez Sep 28, 2021
07af58c
create infra server test case
iamazzeez Sep 29, 2021
f6c7e63
added infra server create test case
iamazzeez Sep 29, 2021
61dab79
updated docs
iamazzeez Sep 29, 2021
d4f7755
infra server put and delete test case added
iamazzeez Sep 29, 2021
68acc57
wrapped server details into put api
iamazzeez Sep 29, 2021
b80bfc1
wrapped delete button into delete action
iamazzeez Sep 29, 2021
61b168d
error fix
iamazzeez Sep 29, 2021
de18fa3
cypress error fix
iamazzeez Sep 29, 2021
112a65b
doc formatted
iamazzeez Oct 1, 2021
55354cb
typo
iamazzeez Oct 6, 2021
fdb5d34
Abdul/org actions (#5838)
iamazzeez Oct 5, 2021
a59b9f8
typo
iamazzeez Oct 6, 2021
ba9c253
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
9763ae6
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
d81bbbe
Abdul/environments actions (#5898)
iamazzeez Oct 18, 2021
ee6c064
Abdul/databag item actions (#6049)
iamazzeez Nov 2, 2021
b3b3f06
lint fix
iamazzeez Nov 10, 2021
6a1b3b6
policyfiles actions added (#6081)
iamazzeez Nov 10, 2021
6f4f454
added policygroups actions (#6123)
iamazzeez Nov 16, 2021
5418214
infra_server_actions tests
iamazzeez Sep 28, 2021
5ee7197
infra server list doc update
iamazzeez Sep 28, 2021
d37f6e8
test cases fix
iamazzeez Sep 28, 2021
b9756c2
lint fixes
iamazzeez Sep 28, 2021
1270809
added infra server get test cases
iamazzeez Sep 28, 2021
1109e5f
create infra server test case
iamazzeez Sep 29, 2021
5f7d5be
added infra server create test case
iamazzeez Sep 29, 2021
e0a7e12
updated docs
iamazzeez Sep 29, 2021
21acd4c
infra server put and delete test case added
iamazzeez Sep 29, 2021
b4fd3c8
cypress error fix
iamazzeez Sep 29, 2021
0c4153e
doc formatted
iamazzeez Oct 1, 2021
5299176
typo
iamazzeez Oct 6, 2021
71eb829
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
ad15c2a
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
d5423e9
Abdul/environments actions (#5898)
iamazzeez Oct 18, 2021
2c32a6e
rebase error fix
iamazzeez Nov 22, 2021
c0a98e7
rebase fix
iamazzeez Nov 22, 2021
4564322
rebase error fix
iamazzeez Nov 22, 2021
fea45d6
iam permission to create, delete, get client (#6227)
iamazzeez Nov 29, 2021
9ad9305
added nodes iam actions (#6275)
iamazzeez Nov 29, 2021
e265a47
infra_server_actions tests
iamazzeez Sep 28, 2021
e3b2503
infra server list doc update
iamazzeez Sep 28, 2021
c185959
test cases fix
iamazzeez Sep 28, 2021
4fd64fc
lint fixes
iamazzeez Sep 28, 2021
c225062
added infra server get test cases
iamazzeez Sep 28, 2021
246ff4c
create infra server test case
iamazzeez Sep 29, 2021
f8e7edf
added infra server create test case
iamazzeez Sep 29, 2021
f3c9970
updated docs
iamazzeez Sep 29, 2021
49e5319
infra server put and delete test case added
iamazzeez Sep 29, 2021
dac926c
wrapped delete button into delete action
iamazzeez Sep 29, 2021
5a09097
cypress error fix
iamazzeez Sep 29, 2021
ae98bfa
doc formatted
iamazzeez Oct 1, 2021
0a84fa2
typo
iamazzeez Oct 6, 2021
429b46c
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
b07decf
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
2c1088f
Abdul/environments actions (#5898)
iamazzeez Oct 18, 2021
dbab8b2
Abdul/databag item actions (#6049)
iamazzeez Nov 2, 2021
dc96039
policyfiles actions added (#6081)
iamazzeez Nov 10, 2021
1e2d9aa
added policygroups actions (#6123)
iamazzeez Nov 16, 2021
0e2f9c8
infra_server_actions tests
iamazzeez Sep 28, 2021
84db4b1
infra server list doc update
iamazzeez Sep 28, 2021
0483bee
test cases fix
iamazzeez Sep 28, 2021
52dc62c
lint fixes
iamazzeez Sep 28, 2021
2fd3a96
added infra server get test cases
iamazzeez Sep 28, 2021
86a7723
create infra server test case
iamazzeez Sep 29, 2021
1e55cbb
added infra server create test case
iamazzeez Sep 29, 2021
2c4cc65
updated docs
iamazzeez Sep 29, 2021
322dac5
infra server put and delete test case added
iamazzeez Sep 29, 2021
1bd3db1
cypress error fix
iamazzeez Sep 29, 2021
64287cc
doc formatted
iamazzeez Oct 1, 2021
1179cb1
typo
iamazzeez Oct 6, 2021
773319e
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
ce46ad0
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
211e485
Abdul/databag item actions (#6049)
iamazzeez Nov 2, 2021
442b5f1
policyfiles actions added (#6081)
iamazzeez Nov 10, 2021
65e7f8d
added policygroups actions (#6123)
iamazzeez Nov 16, 2021
b6390d4
rebase fix
iamazzeez Nov 22, 2021
8694733
iam permission to create, delete, get client (#6227)
iamazzeez Nov 29, 2021
f56f706
added nodes iam actions (#6275)
iamazzeez Nov 29, 2021
11277f4
added node test cases
iamazzeez Dec 1, 2021
71177c2
docs fix
iamazzeez Dec 1, 2021
338a53e
Added pb files after proto compilation to fix the panic error
sonali523 Dec 3, 2021
bee4c55
api/external/infra_proxy/infra_proxy.pb.go
sonali523 Dec 8, 2021
84b138d
added some minor changes
vinay033 Dec 9, 2021
276a832
commented code
chaitali-mane Dec 9, 2021
c267212
database scripts added (#6351)
sonali523 Dec 13, 2021
2549812
WebUI key into add chef-server slider (#6357)
chaitali-mane Dec 14, 2021
039a826
Create server API - create the chef server using the webui key (#6376)
vinay033 Dec 15, 2021
3d7e944
API to validate the webui key (#6364)
vinay033 Dec 17, 2021
73caefb
Added Update web ui key slider (#6372)
chaitali-mane Dec 20, 2021
9831c6e
UI-API integration for web UI key (#6387)
chaitali-mane Dec 22, 2021
146e139
Infra proxy API to get the organisation of chef server (#6363)
sonali523 Dec 22, 2021
ae92fba
Server details page - UI should have the option to update the WebUI …
vinay033 Dec 24, 2021
b1b2b5b
Show the validation status of the WebUI key on the Chef Server Metada…
vinay033 Dec 27, 2021
9a613a7
API to update the web ui key (#6433)
sonali523 Dec 28, 2021
53c1033
infra_viewer_actions added (#6436)
iamazzeez Dec 28, 2021
6a3441f
Abdul/infra editor actions (#6453)
iamazzeez Dec 28, 2021
c227718
Changes to use web ui key in all the Infra Proxy APIs for Cookbooks, …
sonali523 Dec 29, 2021
5c7fdd6
Database script for migration tables (#6500)
sonali523 Jan 5, 2022
59aeff4
Abdul/infra editor actions (#6508)
iamazzeez Jan 10, 2022
be3dd15
Abdul/infra project owner (#6512)
iamazzeez Jan 10, 2022
56ef9ef
Updated Infra Proxy cypress tests for web UI key (#6511)
chaitali-mane Jan 11, 2022
4b6991b
New version of protoc and added migrations proto files (#6578)
YashviJain01 Jan 18, 2022
98639c7
Added sync organization and user button (#6592)
chaitali-mane Jan 19, 2022
80ff2ba
Creating a new package migrations (#6595)
YashviJain01 Jan 20, 2022
7a002d5
Storage functions for the migration phases (#6529)
sonali523 Jan 24, 2022
20ccc72
Migration stage script and storage functions added (#6619)
sonali523 Jan 25, 2022
4dbdfa8
Addition of migration id and migration status in get server api (#6613)
YashviJain01 Jan 25, 2022
c5978ad
Changes to audit the log for infra proxy (#6622)
vinay033 Jan 25, 2022
7fda7f0
Migration Data service creation and created a rpc method for upload z…
YashviJain01 Jan 26, 2022
804b88a
Gotten demo pipeline ready
Jan 25, 2022
c1ba310
Data pipeline architecture
Jan 28, 2022
8d07dc1
Removed a file
Jan 28, 2022
dceab3a
Brainstorming ideas
kalroy Jan 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .expeditor/verify_private.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ steps:
CYPRESS_AUTOMATE_INFRA_ADMIN_KEY:
path: secret/a2/testing/infra_admin_key
field: data
CYPRESS_AUTOMATE_INFRA_WEBUI_KEY:
path: secret/a2/testing/infra_webui_key
field: data
executor:
linux:
privileged: true
Expand Down
8 changes: 5 additions & 3 deletions .studio/common
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ function compile_client_mocks() {
pushd /src/api/external || return 1
mockgen_debug -source secrets/secrets.pb.go -destination secrets/secrets.pb.client_mock.go -package secrets -self_package github.com/chef/automate/api/external/secrets
popd || return 1

pushd /src/api/external || return 1
mockgen_debug -source infra_proxy/infra_proxy.pb.go -destination infra_proxy/infra_proxy.pb.client_mock.go -package infra_proxy -self_package github.com/chef/automate/api/external/infra_proxy
popd || return 1
)
}

Expand Down Expand Up @@ -200,9 +204,7 @@ document "build" <<EOF
EOF
function build() {
local hab_build
#set HAB_BLDR_CHANNEL to dev as part of the hab package refresh
local HAB_BLDR_CHANNEL=dev

HAB_BLDR_CHANNEL=dev
# Support for hab v.0.63.0
if [ -f /bin/build ]; then
hab_build=/bin/build
Expand Down
67 changes: 67 additions & 0 deletions .studio/infra-proxy-service
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,70 @@ DOC
function infra_service_psql() {
chef-automate dev psql chef_infra_proxy
}

document "infra_service_load_sample_users" <<DOC
Adds the sample data of automate infra server users
Before running this command make sure either run 'start_infra_proxy_service' or 'start_all_services'

-N No of records Default: 50

Example:
-----------------------------
infra_service_load_sample_users -N 100
DOC
function infra_service_load_sample_users() {
install_if_missing core/jq-static jq
install_if_missing core/grpcurl grpcurl

local OPTIND opt
local records=50

log_line "Total number of records: $records"

while getopts ":N:" opt; do
case $opt in
N) records="$OPTARG"
;;
\?) echo "Invalid option -$OPTARG" >&2
;;
: )
echo "Invalid option: $OPTARG requires an argument" 1>&2
;;
esac
done
shift $((OPTIND -1))

local timestamp
local server_prefix
local server_id
local fqdn="api.chef.io"
local ip_address
timestamp=$(date +%s%N)
server_prefix="chef-server-${timestamp}"
server_id="${server_prefix}-id"
ip_address=$(printf "%d.%d.%d.%d" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")
# Add server in automate
chef-automate dev grpcurl infra-proxy-service -- -d \
"$(cat << EOF
{"id": "${server_id}", "name": "${server_prefix}", "ip_address": "${ip_address}", "fqdn": "${fqdn}"}
EOF
)" chef.automate.domain.infra_proxy.service.InfraProxyService.CreateServer >/dev/null

# Add users in automate
local user_prefix="automate-user"
for _ in $(seq 1 ${records}); do
timestamp=$(date +%s%N)
local userId="${user_prefix}-${timestamp}-id"
local infraServerUsername="infra-user-${timestamp}"
local automateUserId="${user_prefix}-${timestamp}"
chef-automate dev psql -d chef_infra_proxy << EOF
INSERT INTO users (
id, server_id,
infra_server_username,
automate_user_id,
created_at,updated_at)
VALUES ('${userId}', '${server_id}', '${infraServerUsername}','${automateUserId}',now(), now())
EOF
done
log_line "Sample data loaded of $records users for server with server name '$server_prefix' and server id '$server_id'"
}
Loading