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

Update IAM actions document for Infra Server Views #6896

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
7768bc6
Script added for table 'users' (#5722)
sonali523 Sep 16, 2021
83ee496
iam added on roles tab
iamazzeez Sep 17, 2021
d5257fc
add fallback and bldr channel env vars to envrc and set back to dev w…
Sep 17, 2021
30b919e
Script added for table 'org_users' (#5738)
sonali523 Sep 16, 2021
8b3571a
added edit policy
iamazzeez Sep 17, 2021
e700d62
Storage functions for users table (#5731)
sonali523 Sep 17, 2021
9ace891
Chaitali/add server slider (#5728)
chaitali-mane Sep 17, 2021
183740e
environments create, delete policy added
iamazzeez Sep 17, 2021
a62764e
edit env policy added
iamazzeez Sep 20, 2021
658b97a
added data bags policy
iamazzeez Sep 20, 2021
72798fd
Chaitali/add server slider (#5728)
chaitali-mane Sep 17, 2021
befb7cd
ui three dots fix
iamazzeez Sep 20, 2021
182f2e4
reverted iam actions
iamazzeez Sep 21, 2021
dfe9866
Add changes for the create server slider (#5755)
vinay033 Sep 20, 2021
6312982
removed roles iam
iamazzeez Sep 21, 2021
7e795b4
environments authz reverted
iamazzeez Sep 21, 2021
1aeb7e3
databags authz reverted
iamazzeez Sep 21, 2021
ef58600
Added API to get server users list from backend DB (#5760)
sonali523 Sep 21, 2021
f8d422f
Added users tab in server details page (#5802)
chaitali-mane Sep 28, 2021
a3af8aa
Added css change for notification overlap slider. (#5781)
himanshi-chhabra Sep 28, 2021
c47b1b9
Command to add the sample automate infra server users (#5786)
sonali523 Sep 29, 2021
28f55b0
Renaming the sql files and modifying to incorporate WebUI key
kalroy Nov 25, 2021
43776d5
infra_server_actions tests
iamazzeez Sep 28, 2021
2cf49e1
infra server list doc update
iamazzeez Sep 28, 2021
8f93529
test cases fix
iamazzeez Sep 28, 2021
989fa9a
lint fixes
iamazzeez Sep 28, 2021
63c1f24
added infra server get test cases
iamazzeez Sep 28, 2021
b8d1976
create infra server test case
iamazzeez Sep 29, 2021
c5259c7
added infra server create test case
iamazzeez Sep 29, 2021
e629a1a
updated docs
iamazzeez Sep 29, 2021
f9d26bc
infra server put and delete test case added
iamazzeez Sep 29, 2021
d27f0fb
wrapped server details into put api
iamazzeez Sep 29, 2021
f7378b7
wrapped delete button into delete action
iamazzeez Sep 29, 2021
3e376bd
error fix
iamazzeez Sep 29, 2021
dcca730
cypress error fix
iamazzeez Sep 29, 2021
677cada
doc formatted
iamazzeez Oct 1, 2021
5f3d047
typo
iamazzeez Oct 6, 2021
53f7023
Abdul/org actions (#5838)
iamazzeez Oct 5, 2021
8d93d8f
typo
iamazzeez Oct 6, 2021
7f98548
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
d0a8dd5
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
93e1f61
Abdul/environments actions (#5898)
iamazzeez Oct 18, 2021
0447bfe
Abdul/databag item actions (#6049)
iamazzeez Nov 2, 2021
43d0d79
lint fix
iamazzeez Nov 10, 2021
3669944
policyfiles actions added (#6081)
iamazzeez Nov 10, 2021
221da1e
added policygroups actions (#6123)
iamazzeez Nov 16, 2021
2f36335
infra_server_actions tests
iamazzeez Sep 28, 2021
a846529
infra server list doc update
iamazzeez Sep 28, 2021
97d2720
test cases fix
iamazzeez Sep 28, 2021
8c7d553
lint fixes
iamazzeez Sep 28, 2021
bebd630
added infra server get test cases
iamazzeez Sep 28, 2021
ff578f2
create infra server test case
iamazzeez Sep 29, 2021
fd44165
added infra server create test case
iamazzeez Sep 29, 2021
1e43e95
updated docs
iamazzeez Sep 29, 2021
4734510
infra server put and delete test case added
iamazzeez Sep 29, 2021
cf53d67
cypress error fix
iamazzeez Sep 29, 2021
913da21
doc formatted
iamazzeez Oct 1, 2021
0840c69
typo
iamazzeez Oct 6, 2021
3491b11
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
5596661
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
74808f8
Abdul/environments actions (#5898)
iamazzeez Oct 18, 2021
b022bfe
rebase error fix
iamazzeez Nov 22, 2021
aa13414
rebase fix
iamazzeez Nov 22, 2021
40b314d
rebase error fix
iamazzeez Nov 22, 2021
f5618c7
iam permission to create, delete, get client (#6227)
iamazzeez Nov 29, 2021
ec11f72
added nodes iam actions (#6275)
iamazzeez Nov 29, 2021
606e3b9
infra_server_actions tests
iamazzeez Sep 28, 2021
127555b
infra server list doc update
iamazzeez Sep 28, 2021
05f492a
test cases fix
iamazzeez Sep 28, 2021
d18205c
lint fixes
iamazzeez Sep 28, 2021
ee32c50
added infra server get test cases
iamazzeez Sep 28, 2021
b6c5805
create infra server test case
iamazzeez Sep 29, 2021
9e4906b
added infra server create test case
iamazzeez Sep 29, 2021
efaa088
updated docs
iamazzeez Sep 29, 2021
0894483
infra server put and delete test case added
iamazzeez Sep 29, 2021
6d33470
wrapped delete button into delete action
iamazzeez Sep 29, 2021
3e13a99
cypress error fix
iamazzeez Sep 29, 2021
9b91759
doc formatted
iamazzeez Oct 1, 2021
6251b83
typo
iamazzeez Oct 6, 2021
755c97e
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
4c8a682
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
983b914
Abdul/environments actions (#5898)
iamazzeez Oct 18, 2021
8575b80
Abdul/databag item actions (#6049)
iamazzeez Nov 2, 2021
c1df35d
policyfiles actions added (#6081)
iamazzeez Nov 10, 2021
6a38f81
added policygroups actions (#6123)
iamazzeez Nov 16, 2021
1617516
infra_server_actions tests
iamazzeez Sep 28, 2021
75dff15
infra server list doc update
iamazzeez Sep 28, 2021
e328454
test cases fix
iamazzeez Sep 28, 2021
9cc7d3e
lint fixes
iamazzeez Sep 28, 2021
c115f0a
added infra server get test cases
iamazzeez Sep 28, 2021
ac94b59
create infra server test case
iamazzeez Sep 29, 2021
9e41cec
added infra server create test case
iamazzeez Sep 29, 2021
fd91b8b
updated docs
iamazzeez Sep 29, 2021
edaa80b
infra server put and delete test case added
iamazzeez Sep 29, 2021
267ac53
cypress error fix
iamazzeez Sep 29, 2021
30c2fd4
doc formatted
iamazzeez Oct 1, 2021
df5ea0a
typo
iamazzeez Oct 6, 2021
b86c351
Abdul/cookbooks actions (#5848)
iamazzeez Oct 7, 2021
8944398
Abdul/roles actions (#5853)
iamazzeez Oct 13, 2021
0694d49
Abdul/databag item actions (#6049)
iamazzeez Nov 2, 2021
6321f92
policyfiles actions added (#6081)
iamazzeez Nov 10, 2021
d973082
added policygroups actions (#6123)
iamazzeez Nov 16, 2021
27ff410
rebase fix
iamazzeez Nov 22, 2021
1f9be9e
iam permission to create, delete, get client (#6227)
iamazzeez Nov 29, 2021
e6475cf
added nodes iam actions (#6275)
iamazzeez Nov 29, 2021
8f49099
added node test cases
iamazzeez Dec 1, 2021
53d3b47
docs fix
iamazzeez Dec 1, 2021
74b2e49
Added pb files after proto compilation to fix the panic error
sonali523 Dec 3, 2021
5fd4eed
api/external/infra_proxy/infra_proxy.pb.go
sonali523 Dec 8, 2021
205878c
added some minor changes
vinay033 Dec 9, 2021
93c220c
commented code
chaitali-mane Dec 9, 2021
ffd55ab
database scripts added (#6351)
sonali523 Dec 13, 2021
4474352
WebUI key into add chef-server slider (#6357)
chaitali-mane Dec 14, 2021
ac86846
Create server API - create the chef server using the webui key (#6376)
vinay033 Dec 15, 2021
08a5520
API to validate the webui key (#6364)
vinay033 Dec 17, 2021
9227023
Added Update web ui key slider (#6372)
chaitali-mane Dec 20, 2021
13bc0a8
UI-API integration for web UI key (#6387)
chaitali-mane Dec 22, 2021
3b20b20
Infra proxy API to get the organisation of chef server (#6363)
sonali523 Dec 22, 2021
abe8480
Server details page - UI should have the option to update the WebUI …
vinay033 Dec 24, 2021
30f894b
Show the validation status of the WebUI key on the Chef Server Metada…
vinay033 Dec 27, 2021
ea8886c
API to update the web ui key (#6433)
sonali523 Dec 28, 2021
468b217
infra_viewer_actions added (#6436)
iamazzeez Dec 28, 2021
9701c07
Abdul/infra editor actions (#6453)
iamazzeez Dec 28, 2021
2cba34a
Changes to use web ui key in all the Infra Proxy APIs for Cookbooks, …
sonali523 Dec 29, 2021
305e7ee
Database script for migration tables (#6500)
sonali523 Jan 5, 2022
d8e0bf4
Abdul/infra editor actions (#6508)
iamazzeez Jan 10, 2022
45e3446
Abdul/infra project owner (#6512)
iamazzeez Jan 10, 2022
b8b7b06
Updated Infra Proxy cypress tests for web UI key (#6511)
chaitali-mane Jan 11, 2022
b5bd3ef
New version of protoc and added migrations proto files (#6578)
YashviJain01 Jan 18, 2022
c5c15aa
Added sync organization and user button (#6592)
chaitali-mane Jan 19, 2022
b43ade6
Creating a new package migrations (#6595)
YashviJain01 Jan 20, 2022
c070197
Storage functions for the migration phases (#6529)
sonali523 Jan 24, 2022
2538f2c
Migration stage script and storage functions added (#6619)
sonali523 Jan 25, 2022
09c3059
Addition of migration id and migration status in get server api (#6613)
YashviJain01 Jan 25, 2022
7f9cc96
Changes to audit the log for infra proxy (#6622)
vinay033 Jan 25, 2022
78c1b06
Migration Data service creation and created a rpc method for upload z…
YashviJain01 Jan 26, 2022
1f95a44
API to fetch the status of the migration (#6637)
sonali523 Jan 31, 2022
8899d6d
Modify Get server API for Migration status (#6645)
YashviJain01 Jan 31, 2022
9e170c3
Feature/models (#6655)
GorillaGigabytes Feb 1, 2022
26cd601
Stalwart 32 upload slider functionality (#6654)
chaitali-mane Feb 1, 2022
f89c6ec
Cancel migration API to cancel the running migration (#6653)
vinay033 Feb 1, 2022
0964a87
Stalwart 24 Pipeline function to store the orgs to database (#6658)
sonali523 Feb 2, 2022
8edc679
Feature/migration pipe (#6647)
GorillaGigabytes Feb 4, 2022
171c380
Parse org pipeline function and test cases (#6664)
YashviJain01 Feb 7, 2022
93ac9dd
Phase 2 (#6667)
GorillaGigabytes Feb 7, 2022
126f9f0
Add projects for every org to be inserted in the database (#6669)
YashviJain01 Feb 7, 2022
b1fa5f8
Get migration staged data API (#6673)
sonali523 Feb 8, 2022
e5211ae
Feb/pipeline(unzip, pipeline log for error and success) (#6678)
GorillaGigabytes Feb 9, 2022
352c6bd
STALWART-31 Show migration acknowledgement on server details page (#6…
vinay033 Feb 9, 2022
5a50422
API to trigger the second pipeline function - confirm preview (#6677)
vinay033 Feb 9, 2022
dc1223a
Stalwart 25 pipeline function to store parsed stage file (#6683)
sonali523 Feb 9, 2022
8ee4f45
Stalwart 22 preview screen modal (#6679)
chaitali-mane Feb 9, 2022
5d4c4c8
Modified API for Local Users with Hash Password (#6694)
YashviJain01 Feb 17, 2022
5382100
Feature/testing pipeline (#6704)
GorillaGigabytes Feb 18, 2022
bfecc87
Added cypress test cases (#6722)
chaitali-mane Feb 22, 2022
0c225e0
Adding pipeline function for parsing org user association (#6707)
YashviJain01 Feb 22, 2022
7d316ed
Dave/stalwart 27 (#6719)
GorillaGigabytes Feb 22, 2022
f5e0552
Pappu/stalwart 35 (#6713)
GorillaGigabytes Feb 23, 2022
817de36
Stalwart 52 Improvements in infra server integration test cases (#6712)
sonali523 Feb 23, 2022
7aaff1f
Storage functions for org users association (#6741)
sonali523 Mar 2, 2022
9321f70
Adding hash password from json and creating local user (#6753)
YashviJain01 Mar 3, 2022
021da58
Modify the existing users table with more entries (#6742)
GorillaGigabytes Mar 3, 2022
040501e
Conflicting user changes in Infra proxy (#6774)
chaitali-mane Mar 9, 2022
9988371
Pipeline function to populate org users association (#6770)
sonali523 Mar 9, 2022
9774f89
Store Users (#6761)
GorillaGigabytes Mar 9, 2022
a8db7dc
Added user tab in org details (#6789)
chaitali-mane Mar 14, 2022
64da729
Confirm preview button should send the changed and selected user deta…
vinay033 Mar 17, 2022
24084d9
Migrate User permissions for admin and non-admin (#6804)
YashviJain01 Mar 18, 2022
c79f1ae
API to fetch the organisation users from automate DB (#6802)
sonali523 Mar 22, 2022
608efb7
Migrate users to DB After send the changed and selected user details …
vinay033 Mar 22, 2022
84e0ee3
Testing observations of zip file upload (#6823)
sonali523 Mar 23, 2022
6dd81d0
Added org user API integration (#6817)
chaitali-mane Mar 23, 2022
39ad48b
Dave/stalwart 54 (#6808)
GorillaGigabytes Mar 23, 2022
7d7d1c4
minor changes
chaitali-mane Mar 24, 2022
a7aef0f
Org name is to be stored instead of full name
kalroy Mar 30, 2022
f725ae6
Added uesr tab
chaitali-mane Mar 31, 2022
62cb064
Automate API needs to handle sync status (#6860)
GorillaGigabytes Apr 4, 2022
03dd1dd
Script to generate different sized knife ec backup (#6855)
sonali523 Apr 5, 2022
2507f7f
Back up script fix
Apr 6, 2022
250e048
Chef Infra Server WebUI Key (#6841)
dishanktiwari2501 Apr 6, 2022
7f6bfef
Script changes for server deletion issue fixes (#6882)
sonali523 Apr 11, 2022
81c917a
Update IAM actions document for Infra Server Views
kalroy Apr 9, 2022
57b79ac
review changes
dishanktiwari2501 Apr 12, 2022
dd6f605
fixed the spaces
dishanktiwari2501 Apr 12, 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
6 changes: 6 additions & 0 deletions .expeditor/verify_private.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ 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
CYPRESS_AUTOMATE_INFRA_SERVER_FQDN:
path: secret/a2/testing/infra_server_fqdn
field: data
executor:
linux:
privileged: true
Expand Down
15 changes: 12 additions & 3 deletions .studio/common
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ function compile_client_mocks() {
pushd /src/api/interservice || return 1
mockgen_debug -source event/event.pb.go -destination event/event.pb.client_mock.go -package event -self_package github.com/chef/automate/api/interservice/event
mockgen_debug -source authz/project.pb.go -destination authz/project.pb.client_mock.go -package authz -self_package github.com/chef/automate/api/interservice/authz
mockgen_debug -source authz/policy.pb.go -destination authz/policy.pb.client_mock.go -package authz -self_package github.com/chef/automate/api/interservice/authz
mockgen_debug -source authz/authz.pb.go -destination authz/authz.pb.client_mock.go -package authz -self_package github.com/chef/automate/api/interservice/authz
mockgen_debug -source authn/authenticate.pb.go -destination authn/authenticate.pb.client_mock.go -package authn -self_package github.com/chef/automate/api/interservice/authn
mockgen_debug -source compliance/ingest/ingest/compliance.pb.go -destination compliance/ingest/ingest/compliance.pb.client_mock.go -package ingest -self_package github.com/chef/automate/api/interservice/compliance/ingest/ingest
mockgen_debug -source local_user/users.pb.go -destination local_user/users.pb.client_mock.go -package local_user -self_package github.com/chef/automate/api/interservice/local_user

# NOTE(ssd) 2020-02-17: Use "reflect-mode" for cfgmgmt and event_feed because of
# an issue with source-mode's ability to parse interfaces from the
# grpc package. Details here:
Expand All @@ -54,6 +57,14 @@ 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

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

Expand Down Expand Up @@ -200,9 +211,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
153 changes: 153 additions & 0 deletions .studio/infra-proxy-service
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ function infra_service_integration() {
log_line "Finished loading chef repo..."
}

document "infra_service_migration_integration" <<DOC
Runs the integration tests for the infra_service_migration_integration
DOC
function infra_service_migration_integration() {
# Go based integration tests
A2_SVC_NAME="infra-proxy-service" A2_SVC_PATH="/hab/svc/infra-proxy-service" go_test -run TestStorageStagedDataLoadSampleData -v "github.com/chef/automate/components/infra-proxy-service/integration_test"
}

document "infra_service_server_integration" <<DOC
Runs the integration tests for the infra_service_server_integration
DOC
function infra_service_server_integration() {
check_if_deployinate_started || return 1;
export CONTAINER_HOSTNAME=localhost
# Setup local chef server
# loads data which resides in dev-docs/adding-data/infra/chef-repo
infra_service_load_chef_repo
log_line "Started loading chef repo..."
# Go based integration tests
A2_SVC_NAME="infra-proxy-service" A2_SVC_PATH="/hab/svc/infra-proxy-service" go_test "github.com/chef/automate/components/infra-proxy-service/server"
}

document "infra_service_load_test_data" <<DOC
run the infra service's integration tests with data.

Expand Down Expand Up @@ -264,3 +286,134 @@ 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'"
}

document "infra_service_load_knife_ec_backup_file" <<DOC
Creates the sample knife ec backup file
Before running this command make sure either run 'start_infra_proxy_service' or 'start_all_services'
and also make sure that there is no any backup directory and backup.zip in /src/

-O No of Orgs default: 2
-U No of Users default: 200

Example:
-----------------------------
infra_service_load_knife_ec_backup_file -O 2 -U 200
DOC
function infra_service_load_knife_ec_backup_file() {
install_if_missing core/jq-static jq
install_if_missing core/grpcurl grpcurl

local OPTIND opt
local orgs=2
local users=200


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

log_line "Total number of orgs: $orgs"
log_line "Total number of users: $users"

# Create knife ec backup file
local user_prefix="user"
mkdir -p /src/backup
chmod 777 /src/backup
for i in $(seq 1 ${orgs}); do
timestamp=$(date +%s%N)
local org_id="org-${timestamp}-id"
local number_of_users=$((users/orgs))

chef-automate dev grpcurl infra-proxy-service -- -d \
"$(cat << EOF
{"org_id": "${org_id}", "number_of_users": "${number_of_users}"}
EOF
)" chef.automate.domain.infra_proxy.migrations.service.MigrationDataService.CreateBackup >/dev/null

log_line "For org_id '${org_id}', the numbers of users are ${number_of_users}"
done

install_if_missing core/zip zip
zip -r backup.zip backup
rm -rf backup

log_line "Sample back up zip created at path '/src/backup.zip'"
}
97 changes: 54 additions & 43 deletions api/external/iam/v2/request/users.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/external/iam/v2/request/users.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ message CreateUserReq {
string name = 2;
// Password for user. Used to sign in.
string password = 3;
//boolean for if hash password there
bool is_hashed = 4;
}

message ListUsersReq {}
Expand Down
2 changes: 1 addition & 1 deletion api/external/iam/v2/users.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ service Users {
option (chef.automate.api.iam.policy).action = "iam:users:create";
};

/*
/*
List all users

Lists all local users.
Expand Down
5 changes: 5 additions & 0 deletions api/external/iam/v2/users.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading