From 457f8c6b38a5290affb7e6bd2c8091a97a9a0d42 Mon Sep 17 00:00:00 2001 From: Kallol Roy Date: Thu, 14 Apr 2022 20:45:20 +0530 Subject: [PATCH] Update IAM actions document for Infra Server Views (#6896) * Script added for table 'users' (#5722) * Script added for table 'users' Signed-off-by: root * updated down script Signed-off-by: root * updated up script Signed-off-by: root * updated up script Signed-off-by: root * iam added on roles tab Signed-off-by: Abdul-Az * add fallback and bldr channel env vars to envrc and set back to dev when doing builds (#5741) Signed-off-by: Rick Marry * Script added for table 'org_users' (#5738) Signed-off-by: root * added edit policy Signed-off-by: Abdul-Az * Storage functions for users table (#5731) * Storage functions added for users table Signed-off-by: root * Updated with review comments Signed-off-by: root * Chaitali/add server slider (#5728) * converted server modal into slider Signed-off-by: chaitali-mane * Updated test cases Signed-off-by: chaitali-mane * environments create, delete policy added Signed-off-by: Abdul-Az * edit env policy added Signed-off-by: Abdul-Az * added data bags policy Signed-off-by: Abdul-Az * Chaitali/add server slider (#5728) * converted server modal into slider Signed-off-by: chaitali-mane * Updated test cases Signed-off-by: chaitali-mane * ui three dots fix Signed-off-by: Abdul-Az * reverted iam actions Signed-off-by: Abdul-Az * Add changes for the create server slider (#5755) * added some changes for the create server slider Signed-off-by: Vinay Sharma * added some minor changes Signed-off-by: Vinay Sharma * removed roles iam Signed-off-by: Abdul-Az * environments authz reverted Signed-off-by: Abdul-Az * databags authz reverted Signed-off-by: Abdul-Az * Added API to get server users list from backend DB (#5760) Signed-off-by: root * Added users tab in server details page (#5802) * Added Users tab UI Signed-off-by: chaitali-mane * Added enitites api integration Signed-off-by: chaitali-mane * minor changes Signed-off-by: chaitali-mane * Updated minor change Signed-off-by: chaitali-mane * Added css change for notification overlap slider. (#5781) Signed-off-by: Himanshi Chhabra * Command to add the sample automate infra server users (#5786) * Shell script added to add the sample infra server users Signed-off-by: root * Minor changes added Signed-off-by: root * Renaming the sql files and modifying to incorporate WebUI key Signed-off-by: Kallol Roy * infra_server_actions tests Signed-off-by: Abdul-Az * infra server list doc update Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * lint fixes Signed-off-by: Abdul-Az * added infra server get test cases Signed-off-by: Abdul-Az * create infra server test case Signed-off-by: Abdul-Az * added infra server create test case Signed-off-by: Abdul-Az * updated docs Signed-off-by: Abdul-Az * infra server put and delete test case added Signed-off-by: Abdul-Az * wrapped server details into put api Signed-off-by: Abdul-Az * wrapped delete button into delete action Signed-off-by: Abdul-Az * error fix Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * doc formatted Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * Abdul/org actions (#5838) * wip Signed-off-by: Abdul-Az * wip Signed-off-by: Abdul-Az * ui buttons hiding logic Signed-off-by: Abdul-Az * orgs actions added with cypress test case Signed-off-by: Abdul-Az * lint fixes Signed-off-by: Abdul-Az * orgs actions docs updated Signed-off-by: Abdul-Az * doc formatted Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * Abdul/cookbooks actions (#5848) * cookbooks view actions added Signed-off-by: Abdul-Az * iam actions docs updated Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * proto buf regenerated Signed-off-by: Abdul-Az * Abdul/roles actions (#5853) * roles actions Signed-off-by: Abdul-Az * roles docs update ui fix Signed-off-by: Abdul-Az * wip Signed-off-by: Abdul-Az * roles view cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * roles create,update,delete ui actions Signed-off-by: Abdul-Az * compiled pb files Signed-off-by: Abdul-Az * create, update, delete cy test cases Signed-off-by: Abdul-Az * Abdul/environments actions (#5898) * added env iam actions Signed-off-by: Abdul-Az * ui changes for IAM Signed-off-by: Abdul-Az * added env test cases Signed-off-by: Abdul-Az * environments test cases added Signed-off-by: Abdul-Az * added environments api docs Signed-off-by: Abdul-Az * Abdul/databag item actions (#6049) * databags and items Signed-off-by: Abdul-Az * added data bag actions Signed-off-by: Abdul-Az * added test cases Signed-off-by: Abdul-Az * data bags item test cases added Signed-off-by: Abdul-Az * lint fix Signed-off-by: Abdul-Az * policyfiles actions added (#6081) Signed-off-by: Abdul-Az * added policygroups actions (#6123) Signed-off-by: Abdul-Az * infra_server_actions tests Signed-off-by: Abdul-Az * infra server list doc update Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * lint fixes Signed-off-by: Abdul-Az * added infra server get test cases Signed-off-by: Abdul-Az * create infra server test case Signed-off-by: Abdul-Az * added infra server create test case Signed-off-by: Abdul-Az * updated docs Signed-off-by: Abdul-Az * infra server put and delete test case added Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * doc formatted Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * Abdul/cookbooks actions (#5848) * cookbooks view actions added Signed-off-by: Abdul-Az * iam actions docs updated Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * proto buf regenerated Signed-off-by: Abdul-Az * Abdul/roles actions (#5853) * roles actions Signed-off-by: Abdul-Az * roles docs update ui fix Signed-off-by: Abdul-Az * wip Signed-off-by: Abdul-Az * roles view cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * roles create,update,delete ui actions Signed-off-by: Abdul-Az * compiled pb files Signed-off-by: Abdul-Az * create, update, delete cy test cases Signed-off-by: Abdul-Az * Abdul/environments actions (#5898) * added env iam actions Signed-off-by: Abdul-Az * ui changes for IAM Signed-off-by: Abdul-Az * added env test cases Signed-off-by: Abdul-Az * environments test cases added Signed-off-by: Abdul-Az * added environments api docs Signed-off-by: Abdul-Az * rebase error fix Signed-off-by: Abdul-Az * rebase fix Signed-off-by: Abdul-Az * rebase error fix Signed-off-by: Abdul-Az * iam permission to create, delete, get client (#6227) * iam prmission to create, delete, get client Signed-off-by: Abdul-Az * test cases for client Signed-off-by: Abdul-Az * added test cases Signed-off-by: Abdul-Az * added reset client key action Signed-off-by: Abdul-Az * added nodes iam actions (#6275) * added nodes iam actions Signed-off-by: Abdul-Az * added nodes test cases Signed-off-by: Abdul-Az * infra_server_actions tests Signed-off-by: Abdul-Az * infra server list doc update Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * lint fixes Signed-off-by: Abdul-Az * added infra server get test cases Signed-off-by: Abdul-Az * create infra server test case Signed-off-by: Abdul-Az * added infra server create test case Signed-off-by: Abdul-Az * updated docs Signed-off-by: Abdul-Az * infra server put and delete test case added Signed-off-by: Abdul-Az * wrapped delete button into delete action Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * doc formatted Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * Abdul/cookbooks actions (#5848) * cookbooks view actions added Signed-off-by: Abdul-Az * iam actions docs updated Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * proto buf regenerated Signed-off-by: Abdul-Az * Abdul/roles actions (#5853) * roles actions Signed-off-by: Abdul-Az * roles docs update ui fix Signed-off-by: Abdul-Az * wip Signed-off-by: Abdul-Az * roles view cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * roles create,update,delete ui actions Signed-off-by: Abdul-Az * compiled pb files Signed-off-by: Abdul-Az * create, update, delete cy test cases Signed-off-by: Abdul-Az * Abdul/environments actions (#5898) * added env iam actions Signed-off-by: Abdul-Az * ui changes for IAM Signed-off-by: Abdul-Az * added env test cases Signed-off-by: Abdul-Az * environments test cases added Signed-off-by: Abdul-Az * added environments api docs Signed-off-by: Abdul-Az * Abdul/databag item actions (#6049) * databags and items Signed-off-by: Abdul-Az * added data bag actions Signed-off-by: Abdul-Az * added test cases Signed-off-by: Abdul-Az * data bags item test cases added Signed-off-by: Abdul-Az * policyfiles actions added (#6081) Signed-off-by: Abdul-Az * added policygroups actions (#6123) Signed-off-by: Abdul-Az * infra_server_actions tests Signed-off-by: Abdul-Az * infra server list doc update Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * lint fixes Signed-off-by: Abdul-Az * added infra server get test cases Signed-off-by: Abdul-Az * create infra server test case Signed-off-by: Abdul-Az * added infra server create test case Signed-off-by: Abdul-Az * updated docs Signed-off-by: Abdul-Az * infra server put and delete test case added Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * doc formatted Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * Abdul/cookbooks actions (#5848) * cookbooks view actions added Signed-off-by: Abdul-Az * iam actions docs updated Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * wip cy tests Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * cookbooks cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * proto buf regenerated Signed-off-by: Abdul-Az * Abdul/roles actions (#5853) * roles actions Signed-off-by: Abdul-Az * roles docs update ui fix Signed-off-by: Abdul-Az * wip Signed-off-by: Abdul-Az * roles view cy test cases Signed-off-by: Abdul-Az * typo Signed-off-by: Abdul-Az * roles create,update,delete ui actions Signed-off-by: Abdul-Az * compiled pb files Signed-off-by: Abdul-Az * create, update, delete cy test cases Signed-off-by: Abdul-Az * Abdul/databag item actions (#6049) * databags and items Signed-off-by: Abdul-Az * added data bag actions Signed-off-by: Abdul-Az * added test cases Signed-off-by: Abdul-Az * data bags item test cases added Signed-off-by: Abdul-Az * policyfiles actions added (#6081) Signed-off-by: Abdul-Az * added policygroups actions (#6123) Signed-off-by: Abdul-Az * rebase fix Signed-off-by: Abdul-Az * iam permission to create, delete, get client (#6227) * iam prmission to create, delete, get client Signed-off-by: Abdul-Az * test cases for client Signed-off-by: Abdul-Az * added test cases Signed-off-by: Abdul-Az * added reset client key action Signed-off-by: Abdul-Az * added nodes iam actions (#6275) * added nodes iam actions Signed-off-by: Abdul-Az * added nodes test cases Signed-off-by: Abdul-Az * added node test cases Signed-off-by: Abdul-Az * docs fix Signed-off-by: Abdul-Az * Added pb files after proto compilation to fix the panic error Signed-off-by: root * api/external/infra_proxy/infra_proxy.pb.go Signed-off-by: sonali wale * added some minor changes Signed-off-by: Vinay Sharma * commented code Signed-off-by: Chaitali Mane * database scripts added (#6351) Signed-off-by: sonali wale * WebUI key into add chef-server slider (#6357) * web-ui-key Signed-off-by: sumanprogress * Updated code for webui key Signed-off-by: Chaitali Mane * Updated style Signed-off-by: Chaitali Mane * Updated cypress test Signed-off-by: Chaitali Mane * Added back button Signed-off-by: Chaitali Mane * changed name to slider Signed-off-by: Chaitali Mane Co-authored-by: sumanprogress * Create server API - create the chef server using the webui key (#6376) * added API chanegs for adding the chef server with webui key Signed-off-by: Vinay Sharma * added changes for the validation and test cases Signed-off-by: Vinay Sharma * API to validate the webui key (#6364) * added base changes for the API Signed-off-by: Vinay Sharma * added API changes to validate the webui key Signed-off-by: Vinay Sharma * added some minor changes for the fun comment Signed-off-by: Vinay Sharma * added review comment changes Signed-off-by: Vinay Sharma * added some minor changes for to handle the error Signed-off-by: Vinay Sharma * added changes to validate webui key before creating a server Signed-off-by: Vinay Sharma * added protobuff changes Signed-off-by: Vinay Sharma * Added Update web ui key slider (#6372) * Initial commit for update webUI key Signed-off-by: Chaitali Mane * added unit tests Signed-off-by: Chaitali Mane * Updated web ui key code Signed-off-by: Chaitali Mane * Added cypress test cases Signed-off-by: Chaitali Mane * Updated style changes Signed-off-by: Chaitali Mane * minor changes Signed-off-by: Chaitali Mane * Update update error Signed-off-by: Chaitali Mane * Added image Signed-off-by: Chaitali Mane * minor change Signed-off-by: Chaitali Mane * UI-API integration for web UI key (#6387) * lint fixes Signed-off-by: Abdul-Az * Added integration code Signed-off-by: Chaitali Mane Co-authored-by: Abdul-Az * Infra proxy API to get the organisation of chef server (#6363) * Get organisation of infra server from chef server API added Signed-off-by: sonali wale * minor changes added Signed-off-by: sonali wale * Test cases added Signed-off-by: sonali wale * Changes added in test cases Signed-off-by: sonali wale * Added some changes in test cases Signed-off-by: sonali wale * Removed test cases to check the existing one Signed-off-by: sonali wale * added test cases changes Signed-off-by: sonali wale * incorporating review comments Signed-off-by: sonali wale * Minor changes added in test cases Signed-off-by: sonali wale * added some logs Signed-off-by: sonali wale * changes added in test cases Signed-off-by: sonali wale * test cases changes added Signed-off-by: sonali wale * Fixes added for repo health status Signed-off-by: sonali wale * Fix added for repo health failure Signed-off-by: sonali wale * Changes added in bash script of add users to remove credential id from users table Signed-off-by: sonali wale * Conflicts resolved Signed-off-by: sonali wale * Server details page - UI should have the option to update the WebUI key (#6440) * added changes to update the webui key on server details page Signed-off-by: Vinay Sharma * added some minor changes Signed-off-by: Vinay Sharma * Show the validation status of the WebUI key on the Chef Server Metadata (#6435) * changes for the validate webui key on server details page Signed-off-by: Vinay Sharma * added chanegs for the validate webui key Signed-off-by: Vinay Sharma * added changes for the specs Signed-off-by: Vinay Sharma * added changes for the validate webui key error effect Signed-off-by: Vinay Sharma * API to update the web ui key (#6433) * Update web ui key API added Signed-off-by: sonali wale * Removed extra files Signed-off-by: sonali wale * Read secret changes added Signed-off-by: sonali wale * Conflicts resolved Signed-off-by: sonali wale * Test cases added Signed-off-by: sonali wale * Commented validate web ui key test cases Signed-off-by: sonali wale * Changes added in mock file Signed-off-by: sonali wale * uncomment validate web ui key test cases Signed-off-by: sonali wale * infra_viewer_actions added (#6436) Signed-off-by: Abdul-Az * Abdul/infra editor actions (#6453) * editor actions added Signed-off-by: Abdul-Az * infra_editor test cases Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * Changes to use web ui key in all the Infra Proxy APIs for Cookbooks, Policy Files, Policy Groups, Clients (#6457) * Changes added to use the web ui key Signed-off-by: sonali wale * added minor UI change Signed-off-by: Chaitali Mane Co-authored-by: Chaitali Mane * Database script for migration tables (#6500) * Script added for migration tables Signed-off-by: sonali wale * Insert scripts added for migration type and status Signed-off-by: sonali wale * Server id column added in migration table Signed-off-by: sonali wale * Index added on server_id column in migration table Signed-off-by: sonali wale * Abdul/infra editor actions (#6508) * editor actions added Signed-off-by: Abdul-Az * infra_editor test cases Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * infra editor actions update Signed-off-by: Abdul-Az * editor role fix Signed-off-by: Abdul-Az * test cases fix Signed-off-by: Abdul-Az * Abdul/infra project owner (#6512) * project owner wip Signed-off-by: Abdul-Az * project owner actions Signed-off-by: Abdul-Az * fix Signed-off-by: Abdul-Az * doc update Signed-off-by: Abdul-Az * pipeline fix Signed-off-by: Abdul-Az * Updated Infra Proxy cypress tests for web UI key (#6511) * Updated cypress tests for web ui key Signed-off-by: Chaitali Mane * Key in uppercase Signed-off-by: Chaitali Mane * Update for minor Signed-off-by: Chaitali Mane * removed unused lines Signed-off-by: Chaitali Mane * removed error unit tests Signed-off-by: Chaitali Mane * removed iam lint error Signed-off-by: Chaitali Mane * Adding Cypress env variable for WebUI key Signed-off-by: Kallol Roy * Updated variable Signed-off-by: Chaitali Mane * removed replace Signed-off-by: Chaitali Mane * Adding variable Signed-off-by: Chaitali Mane * minor change Signed-off-by: Chaitali Mane * removed hard coded values Signed-off-by: Chaitali Mane * Removed hard coded values Signed-off-by: Chaitali Mane * Updated variables Signed-off-by: Chaitali Mane Co-authored-by: Kallol Roy * New version of protoc and added migrations proto files (#6578) Signed-off-by: Yashvi Jain * Added sync organization and user button (#6592) * updated docs Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * lint fixes Signed-off-by: Abdul-Az * updated docs Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * Added button as per new design Signed-off-by: Chaitali Mane * update change Signed-off-by: Chaitali Mane Co-authored-by: Abdul-Az * Creating a new package migrations (#6595) Signed-off-by: Yashvi Jain * Storage functions for the migration phases (#6529) * Get organisation API changes added Signed-off-by: sonali wale * minor changes added Signed-off-by: sonali wale * Remove command to create an orgs Signed-off-by: sonali wale * Client Mock changes Signed-off-by: Yashvi Jain * Storage function for all the phases of migration Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Incorporated review comments Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Changes for review comments Signed-off-by: sonali wale * Comments removed Signed-off-by: sonali wale Co-authored-by: Yashvi Jain * Migration stage script and storage functions added (#6619) Signed-off-by: sonali wale * Addition of migration id and migration status in get server api (#6613) * resolving conflicts and rebasing it Signed-off-by: Yashvi Jain * Removing the loggers Signed-off-by: Yashvi Jain * Query changes for lastes migration status Signed-off-by: Yashvi Jain * changing the response varibale Signed-off-by: Yashvi Jain * Changes to audit the log for infra proxy (#6622) * added changes for infra proxy audit log * added reflect codes Signed-off-by: Kallol Roy * added changes for the audit logs for infra Signed-off-by: Vinay Sharma * removed commented code Signed-off-by: Vinay Sharma * added some minor changes Signed-off-by: Vinay Sharma Co-authored-by: Kallol Roy * Migration Data service creation and created a rpc method for upload zip file (#6612) * Changes for stream api for upload Signed-off-by: Yashvi Jain * changes Signed-off-by: Yashvi Jain * added some changes for the protofile Signed-off-by: Vinay Sharma * added function changes * added changes for the proto * added changes to devide the chunks in bytes * added changes for the validation Signed-off-by: Vinay Sharma * adding status in database Signed-off-by: Yashvi Jain * adding the request for server id and filename Signed-off-by: Yashvi Jain * Adding loggers and saving the failed migration phase Signed-off-by: Yashvi Jain * optimising the code Signed-off-by: Yashvi Jain * Changes for content-type Signed-off-by: Yashvi Jain * added changes for the validation Signed-off-by: Vinay Sharma * Upload to the hab svc data folder Signed-off-by: Kallol Roy * Enhance log and modify migration phases Signed-off-by: Kallol Roy * Granularize the migration stages Signed-off-by: Kallol Roy * Granularize the migration stages Signed-off-by: Kallol Roy Co-authored-by: Vinay Sharma Co-authored-by: Kallol Roy * API to fetch the status of the migration (#6637) * Get migrations status API added Signed-off-by: sonali wale * Added minor changes Signed-off-by: sonali wale * Modify Get server API for Migration status (#6645) * Modify Get server API for Migration status Signed-off-by: Yashvi Jain * Modify the get server API Signed-off-by: Yashvi Jain * Feature/models (#6655) * Pipeline demo * Demo Pipeline Signed-off-by: Pappu Kumar * Based on PR Review Signed-off-by: Pappu Kumar * Models Signed-off-by: Pappu Kumar * Models done * Package JSON change Signed-off-by: Pappu Kumar * Package JSON change Signed-off-by: Pappu Kumar * Package JSON change Signed-off-by: Pappu Kumar * Stalwart 32 upload slider functionality (#6654) * Added upload slider Signed-off-by: Chaitali Mane * Update upload functionality Signed-off-by: Chaitali Mane * Added drag and drop function Signed-off-by: Chaitali Mane * Added API integration code Signed-off-by: Chaitali Mane * Added file upload changes Signed-off-by: Chaitali Mane * Added cypress test cases Signed-off-by: Chaitali Mane * Added unit tests Signed-off-by: Chaitali Mane * Added loader Signed-off-by: Chaitali Mane * Updated code Signed-off-by: Chaitali Mane * added header changes + added some type changes + fixed slider open and close after upload Signed-off-by: Vinay Sharma * Updated for selector Signed-off-by: Chaitali Mane Co-authored-by: Vinay Sharma * Cancel migration API to cancel the running migration (#6653) * added changes for the cancel migration API Signed-off-by: Vinay Sharma * Added changes to update the status and clear off data Signed-off-by: Kallol Roy * Fixed SQL query Signed-off-by: Kallol Roy Co-authored-by: Kallol Roy * Stalwart 24 Pipeline function to store the orgs to database (#6658) * Pipeline function to store the orgs Signed-off-by: sonali wale * Added minor changes Signed-off-by: sonali wale * Code formatting and setting up tests DB Signed-off-by: Kallol Roy * Added migration status changes Signed-off-by: sonali wale * Added minor changes Signed-off-by: sonali wale * Comment removed Signed-off-by: sonali wale * Logs added Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Removed message variable Signed-off-by: sonali wale * Incorporating review comments Signed-off-by: sonali wale Co-authored-by: Kallol Roy * Feature/migration pipe (#6647) * Pipeline demo * Demo Pipeline Signed-off-by: Pappu Kumar * Based on PR Review Signed-off-by: Pappu Kumar * Models Signed-off-by: Pappu Kumar * Updateed select statement Signed-off-by: Pappu Kumar * Removed package-lock.json Signed-off-by: Pappu Kumar * Pipeline to process and close the go routines Signed-off-by: Kallol Roy * Feature/models (#6655) * Pipeline demo * Demo Pipeline Signed-off-by: Pappu Kumar * Based on PR Review Signed-off-by: Pappu Kumar * Models Signed-off-by: Pappu Kumar * Models done * Package JSON change Signed-off-by: Pappu Kumar * Package JSON change Signed-off-by: Pappu Kumar * Package JSON change Signed-off-by: Pappu Kumar * Setup pipeline to process data Signed-off-by: Kallol Roy * Some comment corrections Signed-off-by: Pappu Kumar Co-authored-by: Kallol Roy * Parse org pipeline function and test cases (#6664) * Adding parse servers orgs function and test data files Signed-off-by: Yashvi Jain * Addition of test cases Signed-off-by: Yashvi Jain * Adding loggers for parse orgs Signed-off-by: Yashvi Jain * resolving sonar issue Signed-off-by: Yashvi Jain * Adding deletebackup folder Signed-off-by: Yashvi Jain * Adding delete backup folder Signed-off-by: Yashvi Jain * Phase 2 (#6667) Signed-off-by: Pappu Kumar * Add projects for every org to be inserted in the database (#6669) Signed-off-by: Yashvi Jain * Get migration staged data API (#6673) * Get migration staged data API added Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Modified the response type Signed-off-by: sonali wale * Test cases added Signed-off-by: sonali wale * Updated test cases Signed-off-by: sonali wale * Updated parsed data Signed-off-by: sonali wale * json tag updated Signed-off-by: sonali wale * Feb/pipeline(unzip, pipeline log for error and success) (#6678) * Zip file * Zip file and migration done status Signed-off-by: Pappu Kumar * PR Changes * PR Changes Signed-off-by: Pappu Kumar * PR Commect fixed Signed-off-by: Pappu Kumar * Code smell Fixed Signed-off-by: Pappu Kumar * Update utility.go * Unzip Destination change Signed-off-by: Pappu Kumar * Some fixes Signed-off-by: Pappu Kumar * Changes Issues and PR comments Signed-off-by: Pappu Kumar * Error log modified Signed-off-by: Pappu Kumar * Code smell fixed Signed-off-by: Pappu Kumar * STALWART-31 Show migration acknowledgement on server details page (#6670) * added changes for the show migration status Signed-off-by: Vinay Sharma * added some UI changes to show the error message Signed-off-by: Vinay Sharma * added some changes to change the tooltip position Signed-off-by: Vinay Sharma * added changes for the preview screen * added some css changes Signed-off-by: Vinay Sharma * added changes to fix the sonar cloud issue Signed-off-by: Vinay Sharma * added review comment changes Signed-off-by: Vinay Sharma * API to trigger the second pipeline function - confirm preview (#6677) * added changes for trigger the second pipline function Signed-off-by: Vinay Sharma * Changes for lint * Updated error handling Signed-off-by: sonali wale Co-authored-by: Yashvi Jain Co-authored-by: sonali wale * Stalwart 25 pipeline function to store parsed stage file (#6683) * Create preview pipeline function added Signed-off-by: sonali wale * Test cases added Signed-off-by: sonali wale * Updated test cases Signed-off-by: sonali wale * Resolved conflicts Signed-off-by: sonali wale * Stalwart 22 preview screen modal (#6679) * Added preview screen slider Signed-off-by: Chaitali Mane * Added metadata changes Signed-off-by: Chaitali Mane * Added vault variable into cypress Signed-off-by: Chaitali Mane * Added cancel migration API integration Signed-off-by: Chaitali Mane * Added preview data API requests Signed-off-by: Chaitali Mane * Updated for cancel migration Signed-off-by: Chaitali Mane * Updated values with API data variables Signed-off-by: Chaitali Mane * Update for preview modal input Signed-off-by: Chaitali Mane * minor change Signed-off-by: Chaitali Mane * removed server IP dependancy Signed-off-by: Chaitali Mane * minor Signed-off-by: Chaitali Mane * removed lint in iam Signed-off-by: Chaitali Mane * removed file Signed-off-by: Chaitali Mane * Pipeline failure changes Signed-off-by: Yashvi Jain * Pipeline failure changes Signed-off-by: Yashvi Jain * pipeline failure changes Signed-off-by: Yashvi Jain * pipeline failure changes Signed-off-by: Yashvi Jain * removed commented code Signed-off-by: Chaitali Mane * Adding variable Signed-off-by: Chaitali Mane * Complitation error fix Signed-off-by: Yashvi Jain * Pipeline failure changes Signed-off-by: Yashvi Jain Co-authored-by: Yashvi Jain * Modified API for Local Users with Hash Password (#6694) * Added Test API for Local Users save Signed-off-by: Yashvi Jain * Removing duplicate code Signed-off-by: Yashvi Jain * Removing duplicate code Signed-off-by: Yashvi Jain * Changes for adding is hashed field in create user api Signed-off-by: Yashvi Jain * adding test cases Signed-off-by: Yashvi Jain * Feature/testing pipeline (#6704) * Testing * Pass service objects to utility pipeline functions Signed-off-by: Kallol Roy * Postgres connection fixes Signed-off-by: sonali wale * pipeline failure fixes Signed-off-by: Yashvi Jain * Phase1 debugged and fixed Signed-off-by: Pappu Kumar * Testing * Pass service objects to utility pipeline functions Signed-off-by: Kallol Roy * PR Commect fixed Signed-off-by: Pappu Kumar * fix * Changes Signed-off-by: Pappu Kumar * Adding authz client for project Signed-off-by: Yashvi Jain * Adding authz client for project Signed-off-by: Yashvi Jain * Added StoreOrg and some corrections to phase one * Remoed Global Variables * Updated migration id in get status call Signed-off-by: Chaitali Mane * Added confirm API integration code Signed-off-by: Chaitali Mane * Added major code changes Signed-off-by: Chaitali Mane * Added some changes Signed-off-by: Chaitali Mane * Added some improvements Signed-off-by: Chaitali Mane * Cencel migration API fixes Signed-off-by: sonali wale * Updated z-index Signed-off-by: Chaitali Mane * Updated script Signed-off-by: sonali wale * changes for active migration status Signed-off-by: Yashvi Jain * Updated get migration status query Signed-off-by: sonali wale * added in progress changes Signed-off-by: Chaitali Mane * Updated minor change Signed-off-by: Chaitali Mane * Spelling check Signed-off-by: Pappu Kumar * Naming convention change Signed-off-by: Pappu Kumar Co-authored-by: Kallol Roy Co-authored-by: sonali wale Co-authored-by: Yashvi Jain Co-authored-by: Chaitali Mane * Added cypress test cases (#6722) * Added cypress test cases Signed-off-by: Chaitali Mane * Added cypress test cases Signed-off-by: Chaitali Mane * Adding pipeline function for parsing org user association (#6707) * Adding pipeline function for parsing org user association Signed-off-by: Yashvi Jain * Changes for lint fixes Signed-off-by: Yashvi Jain * Fixing test cases for parse org users Signed-off-by: Yashvi Jain * Adding more test cases for Org User Association Signed-off-by: Yashvi Jain * Fixing code smells Signed-off-by: Yashvi Jain * adding correct action ops Signed-off-by: Yashvi Jain * Test cases correction for org users Signed-off-by: Yashvi Jain * Get org admins from back up zip Signed-off-by: sonali wale * Adding test cases for getting admin from org Signed-off-by: Yashvi Jain * Updated test cases Signed-off-by: sonali wale * Updated test data Signed-off-by: sonali wale * Added minor changes Signed-off-by: sonali wale * Added new line Signed-off-by: sonali wale * Storage function changes added Signed-off-by: sonali wale * Changes for review comment Signed-off-by: sonali wale Co-authored-by: sonali wale * Dave/stalwart 27 (#6719) * Validate Zip File Signed-off-by: Pappu Kumar * Done ZIp file Validation Signed-off-by: Pappu Kumar * Test ZIp file Validation Signed-off-by: Pappu Kumar * Key dump check added Signed-off-by: Pappu Kumar * Changes based on PR comments Signed-off-by: Pappu Kumar * Done testing Signed-off-by: Pappu Kumar * Merge conflict Signed-off-by: Pappu Kumar * Pappu/stalwart 35 (#6713) * Adding function for user exists Signed-off-by: Yashvi Jain * Parsing User done for a New PR Signed-off-by: Pappu Kumar * Linting issue Signed-off-by: Pappu Kumar * Code smell check Signed-off-by: Pappu Kumar * FIXED PR comments Signed-off-by: Pappu Kumar * FIXED PR Comments * PR Commits Signed-off-by: Pappu Kumar * Fixed code smell Signed-off-by: Pappu Kumar * Some minor bug fixes Signed-off-by: Pappu Kumar * Fixed PR review comments Signed-off-by: Pappu Kumar * Fixing code smell Signed-off-by: Pappu Kumar * Added checks Signed-off-by: Pappu Kumar * Added the check for user exists by connecting to local user service Signed-off-by: Yashvi Jain * Parsing User done for a New PR Signed-off-by: Pappu Kumar * Code smell check Signed-off-by: Pappu Kumar * FIXED PR comments Signed-off-by: Pappu Kumar * Fixed PR review comments Signed-off-by: Pappu Kumar * Fixing code smell Signed-off-by: Pappu Kumar * Fixing code smells Signed-off-by: Yashvi Jain * PR Comments Signed-off-by: Pappu Kumar * Done linting and PR FIX Signed-off-by: Pappu Kumar * Few fixes Signed-off-by: Pappu Kumar * Done Signed-off-by: Pappu Kumar * Adding check for local user for exisiting username Signed-off-by: Yashvi Jain * Adding check for local users Signed-off-by: Yashvi Jain * PR COMMENTS DONE Signed-off-by: Pappu Kumar * Fixing testing issue Signed-off-by: Yashvi Jain * Testing fixing for parse user Signed-off-by: Yashvi Jain * Done with testing Signed-off-by: Pappu Kumar * Changes for local user client Signed-off-by: Yashvi Jain * Changes for local user client port Signed-off-by: Yashvi Jain * Remaining changes are made * Comment Line Signed-off-by: Pappu Kumar * Rebasing with feature branch Signed-off-by: Yashvi Jain * Changes for code smells Signed-off-by: Yashvi Jain Co-authored-by: Yashvi Jain * Stalwart 52 Improvements in infra server integration test cases (#6712) * Improvements in integration test cases Signed-off-by: sonali wale * Updated test cases Signed-off-by: sonali wale * Storage functions for org users association (#6741) * Storage functions for org users association Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Adding hash password from json and creating local user (#6753) * Adding hash password from json and creating local user Signed-off-by: Yashvi Jain * Lint issues fixed Signed-off-by: Yashvi Jain * Modify the existing users table with more entries (#6742) * Modify the existing users table with more entries Signed-off-by: Pappu Kumar * Spelling checks Signed-off-by: Pappu Kumar * Code smell fix * Code smell fix Signed-off-by: Pappu Kumar * Conflicting user changes in Infra proxy (#6774) * updated docs Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * updated docs Signed-off-by: Abdul-Az * cypress error fix Signed-off-by: Abdul-Az * Added user API Signed-off-by: Chaitali Mane * minor change Signed-off-by: Chaitali Mane * Updated code for conflict user Signed-off-by: Chaitali Mane * Updated code for conflict user Signed-off-by: Chaitali Mane Co-authored-by: Abdul-Az * Pipeline function to populate org users association (#6770) * Added pipeline function to populate org user association Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Code smell fix Signed-off-by: sonali wale * Incorporating review comments Signed-off-by: sonali wale * Changes added for failed count Signed-off-by: sonali wale * Added pipeline changes for migration status and error handling Signed-off-by: sonali wale * Store Users (#6761) * Store Users Signed-off-by: Pappu Kumar * Store USers Signed-off-by: Pappu Kumar * Store USers Signed-off-by: Pappu Kumar * Done Signed-off-by: Pappu Kumar * Populate users into the automate db Signed-off-by: Pappu Kumar * Adding function for creating local users Signed-off-by: Yashvi Jain * Adding function for creating local users Signed-off-by: Yashvi Jain * COrrections to some code Signed-off-by: Pappu Kumar * PR Comment fixed Signed-off-by: Pappu Kumar * PR comments Signed-off-by: Pappu Kumar * PR Comments fixed Signed-off-by: Pappu Kumar * Checks and some corrections Signed-off-by: Pappu Kumar * Merge conflicts Signed-off-by: Pappu Kumar * Corrections: * test with continue Signed-off-by: Pappu Kumar * Added changes for error handling in pipeline Signed-off-by: sonali wale Co-authored-by: Yashvi Jain Co-authored-by: sonali wale * Added user tab in org details (#6789) * Added user tab in org details Signed-off-by: Chaitali Mane * Updated minor change Signed-off-by: Chaitali Mane * added variable type Signed-off-by: Chaitali Mane * Confirm preview button should send the changed and selected user details from UI. (#6801) * added changes for select all and change username on preview slider Signed-off-by: Vinay Sharma * added minor changes Signed-off-by: Vinay Sharma * Migrate User permissions for admin and non-admin (#6804) * Migrate User permissions for admin and non-admin Signed-off-by: Yashvi Jain * Migrate User permissions for admin and non-admin Signed-off-by: Yashvi Jain * Fixing code smells for migrate user permissions function Signed-off-by: Yashvi Jain * API to fetch the organisation users from automate DB (#6802) * Get orgs users API added Signed-off-by: sonali wale * Test cases added Signed-off-by: sonali wale * Test cases updated Signed-off-by: sonali wale * Updated test cases Signed-off-by: sonali wale * Fixing test cases for utility Signed-off-by: Yashvi Jain * PR changes for API endpoint Signed-off-by: Yashvi Jain Co-authored-by: Yashvi Jain * Migrate users to DB After send the changed and selected user details from UI. (#6819) * added changes to migrate users into DB after selecting from UI Signed-off-by: Vinay Sharma * added changes for the test cases Signed-off-by: Vinay Sharma * added some minor changes Signed-off-by: Vinay Sharma * Testing observations of zip file upload (#6823) * Testing observations for upload zip file API Signed-off-by: sonali wale * Added separate file Signed-off-by: sonali wale * Added org user API integration (#6817) * Added APi integration Signed-off-by: Chaitali Mane * Added code integration Signed-off-by: Chaitali Mane * Added cypress test case Signed-off-by: Chaitali Mane * Dave/stalwart 54 (#6808) * Demo Signed-off-by: Pappu Kumar * Update Public Key To Chef Server User Signed-off-by: Pappu Kumar * Done Update Key Signed-off-by: Pappu Kumar * Added reset key API Signed-off-by: sonali wale * Updated reset key function Signed-off-by: sonali wale * Updating user keys Signed-off-by: Pappu Kumar * Merge Conflicts Signed-off-by: Pappu Kumar * Change requests Signed-off-by: Pappu Kumar * Change requests Signed-off-by: Pappu Kumar * PR Comments Signed-off-by: Pappu Kumar Co-authored-by: sonali wale * minor changes Signed-off-by: Chaitali Mane * Org name is to be stored instead of full name Signed-off-by: Kallol Roy * Added uesr tab Signed-off-by: Chaitali Mane * Automate API needs to handle sync status (#6860) * Sync status Signed-off-by: Pappu Kumar * Sync migration time Signed-off-by: Pappu Kumar * Script to generate different sized knife ec backup (#6855) * Script to create the knife ec back up zip file Signed-off-by: sonali wale * Lint fixes Signed-off-by: sonali wale * Script changes Signed-off-by: sonali wale * zip creation changes Signed-off-by: sonali wale * Removed back up folder Signed-off-by: sonali wale * Comment changes Signed-off-by: sonali wale * script changes to zip the file Signed-off-by: sonali wale * Minor changes added Signed-off-by: sonali wale * Code smell fix Signed-off-by: sonali wale * Update .studio/infra-proxy-service * Setting username with index Signed-off-by: Kallol Roy Co-authored-by: Kallol Roy * Back up script fix Signed-off-by: sonali wale * Chef Infra Server WebUI Key (#6841) * added the section for WebUI in chef infra server Signed-off-by: Dishank Tiwari * removed the add organization section from the page Signed-off-by: Dishank Tiwari * fixed some minor issues in the page Signed-off-by: Dishank Tiwari * added the section for WebUI in chef infra server Signed-off-by: Dishank Tiwari * removed the add organization section from the page Signed-off-by: Dishank Tiwari * fixed some minor issues in the page Signed-off-by: Dishank Tiwari * updates the doc with webui section Signed-off-by: Dishank Tiwari * added images for the update webui key section Signed-off-by: Dishank Tiwari * bug fixes Signed-off-by: Dishank Tiwari * changes made to the webUI section Signed-off-by: Dishank Tiwari * updated the chef server information section Signed-off-by: Dishank Tiwari * Update components/docs-chef-io/content/automate/chef_infra_server.md Co-authored-by: Kallol Roy * Update components/docs-chef-io/content/automate/chef_infra_server.md Co-authored-by: Kallol Roy * review changes Signed-off-by: Dishank Tiwari * changes updated Signed-off-by: Dishank Tiwari Co-authored-by: Kallol Roy * Script changes for server deletion issue fixes (#6882) Signed-off-by: sonali wale * Update IAM actions document for Infra Server Views Signed-off-by: Kallol Roy * review changes Signed-off-by: Dishank Tiwari * fixed the spaces Signed-off-by: Dishank Tiwari Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Abdul-Az Co-authored-by: Rick Marry Co-authored-by: Chaitali Mane <71449322+chaitali-mane@users.noreply.github.com> Co-authored-by: vinay sharma Co-authored-by: Himanshi Chhabra <61003053+himanshi-chhabra@users.noreply.github.com> Co-authored-by: root Co-authored-by: Chaitali Mane Co-authored-by: sumanprogress Co-authored-by: Yashvi Jain <91940132+YashviJain01@users.noreply.github.com> Co-authored-by: Yashvi Jain Co-authored-by: Dave Augustus <95467821+dave-augustus@users.noreply.github.com> Co-authored-by: sonali wale Co-authored-by: Dishank Tiwari --- .../content/automate/iam_actions.md | 133 ++++++++++++++++++ 1 file changed, 133 insertions(+) diff --git a/components/docs-chef-io/content/automate/iam_actions.md b/components/docs-chef-io/content/automate/iam_actions.md index f1c7dd19c9d..beb917a150e 100644 --- a/components/docs-chef-io/content/automate/iam_actions.md +++ b/components/docs-chef-io/content/automate/iam_actions.md @@ -42,3 +42,136 @@ Specify the action to restrict user access to the specific action. | Manage Roles | Settings | iam:roles:* | /iam/v2/roles | https://{{< example_fqdn "automate" >}}/settings/roles | | Manage Projects | Settings | iam:projects:* | /iam/v2/projects | https://{{< example_fqdn "automate" >}}/settings/projects | {{% /responsive-table %}} + +## Infra Server View Actions + +These are *IAM Actions* for different views and action in the **Infra Server View** tab in Automate. + +| Task | Method | IAM Action | API endpoint | URL | +| ------| ---------- | --------- | ------------- | --------- | +| List Infra Servers | GET | infra:infraServers:list | /api/v0/infra/servers | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers | +| Get Infra Server | GET | infra:infraServers:get | /api/v0/infra/servers/{id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id} | +| Create Infra Server | POST | infra:infraServers:create | /api/v0/infra/servers | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers | +| Update Infra Server | PUT | infra:infraServers:update | /api/v0/infra/servers/{id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id} | +| Delete Infra Server | DELETE | infra:infraServers:delete | /api/v0/infra/servers/{id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id} | +| List Orgs | GET | infra:infraServersOrgs:list | /api/v0/infra/servers/{server_id}/orgs | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs | +| Get Org | GET | infra:infraServersOrgs:get | /api/v0/infra/servers/{server_id}/orgs/{id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{id} | +| Create Org | POST | infra:infraServersOrgs:create,iam:projects:assign | /api/v0/infra/servers/{server_id}/orgs | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs | +| Update Org | PUT | infra:infraServersOrgs:update | /api/v0/infra/servers/{server_id}/orgs/{id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{id} | +| Delete Org | DELETE | infra:infraServersOrgs:delete | /api/v0/infra/servers/{server_id}/orgs/{id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{id} | +| List Cookbooks | GET | infra:infraServersOrgsCookbooks:list | /api/v0/infra/servers/{server_id}/orgs/{org_id}/cookbooks | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/cookbooks | +| Get Cookbooks | GET | infra:infraServersOrgsCookbooks:get | /api/v0/infra/servers/{server_id}/orgs/{org_id}/cookbooks/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/cookbooks/{name} | +| List Roles | GET | infra:infraServersOrgsRoles:list | /api/v0/infra/servers/{id}/orgs/{org_id}/roles | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/roles | +| Get Roles | GET | infra:infraServersOrgsRoles:get | /api/v0/infra/servers/{id}/orgs/{org_id}/roles/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/roles/{name} | +| Create Roles | POST | infra:infraServersOrgsRoles:create | /api/v0/infra/servers/{id}/orgs/{org_id}/roles | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/roles | +| Update Roles | PUT | infra:infraServersOrgsRoles:update | /api/v0/infra/servers/{id}/orgs/{org_id}/roles/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/roles/{name} | +| Delete Roles | DELETE | infra:infraServersOrgsRoles:delete | /api/v0/infra/servers/{id}/orgs/{org_id}/roles/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/roles/{name} | +| List Environments | GET | infra:infraServersOrgsEnvironments:list | /api/v0/infra/servers/{id}/orgs/{org_id}/environments | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/environments | +| Get Environments | GET | infra:infraServersOrgsEnvironments:get | /api/v0/infra/servers/{id}/orgs/{org_id}/environments/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/environments/{name} | +| Create Environments | POST | infra:infraServersOrgsEnvironments:create | /api/v0/infra/servers/{id}/orgs/{org_id}/environments | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/environments | +| Update Environments | PUT | infra:infraServersOrgsEnvironments:update | /api/v0/infra/servers/{id}/orgs/{org_id}/environments/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/environments/{name} | +| Delete Environments | DELETE | infra:infraServersOrgsEnvironments:delete | /api/v0/infra/servers/{id}/orgs/{org_id}/environments/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/environments/{name} | +| Get DataBags | GET | infra:infraServersOrgsDataBags:get | /api/v0/infra/servers/{id}/orgs/{org_id}/data_bags | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/data_bags | +| Create DataBags | POST | infra:infraServersOrgsDataBags:create | /api/v0/infra/servers/{id}/orgs/{org_id}/data_bags | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/data_bags | +| Delete DataBags | DELETE | infra:infraServersOrgsDataBags:delete | /api/v0/infra/servers/{id}/orgs/{org_id}/data_bags/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{id}/orgs/{org_id}/data_bags/{name} | +| Get DataBagItem | GET | infra:infraServersOrgsDataBagsItem:get | /api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name}/{item} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name}/{item} | +| Create DataBagItem | POST | infra:infraServersOrgsDataBagsItem:create | /api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name} | +| Update DataBagItem | PUT | infra:infraServersOrgsDataBagsItem:update | /api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name}/{item_id} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name}/{item_id} | +| Delete DataBagsItem | DELETE | infra:infraServersOrgsDataBagsItem:delete | /api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name}/{item} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name}/{item} | +| Delete DataBags | DELETE | infra:infraServersOrgsDataBags:delete | /api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name} | https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags/{name} | +| Get PolicyFiles | GET | infra:infraServersOrgsPolicyFiles:get | /api/v0/infra/servers/{server_id}/orgs/{org_id}/policyfiles| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/policyfiles | +| Delete PolicyFiles | DELETE | infra:infraServersOrgsPolicyFiles:delete | /api/v0/infra/servers/{server_id}/orgs/{org_id}/policyfiles/{name}| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/policyfiles/{name} | +| Get PolicyGroups | GET | infra:infraServersOrgsPolicyGroups:get | /api/v0/infra/servers/{server_id}/orgs/{org_id}/policygroups/{name}| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/policygroups/{name} | +| Get Client | GET | infra:infraServersOrgsClient:get | /api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name} | +| Create Client | POST | infra:infraServersOrgsClient:create | /api/v0/infra/servers/{server_id}/orgs/{org_id}/clients| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients | +| Reset Client Key | PUT | infra:infraServersOrgsClient:update | /api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}/reset| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}/reset | +| Delete Client | DELETE | infra:infraServersOrgsClient:delete | /api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name} | +| Get Node | GET | infra:infraServersOrgsNodes:get | /api/v0/infra/servers/{server_id}/orgs/{org_id}/nodes| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/nodes | +| Update Node | POST | infra:infraServersOrgsNodes:update | /api/v0/infra/servers/{server_id}/orgs/{org_id}/nodes| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/nodes | +| Delete Node | DELETE | infra:infraServersOrgsNodes:delete | /api/v0/infra/servers/{server_id}/orgs/{org_id}/nodes/{name}| https://{{< example_fqdn "automate" >}}/api/v0/infra/servers/{server_id}/orgs/{org_id}/nodes/{name} | + +Three types of user policies automatically gets created when a project is created. + +### Infra Viewer Policy Actions + +``` +secrets:*:get, +secrets:*:list, +infra:*:get, +infra:*:list, +compliance:*:get, +compliance:*:list, +event:*:get, +event:*:list, +ingest:*:get, +ingest:*:list, +iam:projects:list, +iam:projects:get, +applications:*:get, +applications:*:list +``` + +### Infra Editor Policy Actions + +``` +infra:*:list, +infra:*:get, +infra:infraServersOrgsRoles:create, +infra:infraServersOrgsRoles:update, +infra:infraServersOrgsClient:create, +infra:infraServersOrgsClient:update, +infra:infraServersOrgsDataBags:create, +infra:infraServersOrgsDataBagsItem:create, +infra:infraServersOrgsDataBagsItem:update, +infra:infraServersOrgsEnvironments:create, +infra:infraServersOrgsEnvironments:update, +infra:infraServersOrgsNodes:update, +compliance:*, +event:*, +ingest:*, +secrets:*, +iam:projects:list, +iam:projects:get, +iam:projects:assign, +applications:* +``` + +### Infra Project Owner Policy Actions + +``` +infra:*:list, +infra:*:get, +infra:infraServersOrgsRoles:create, +infra:infraServersOrgsRoles:update, +infra:infraServersOrgsRoles:delete, +infra:infraServersOrgsClient:create, +infra:infraServersOrgsClient:update, +infra:infraServersOrgsClient:delete, +infra:infraServersOrgsDataBags:create, +infra:infraServersOrgsDataBags:delete, +infra:infraServersOrgsDataBagsItem:create, +infra:infraServersOrgsDataBagsItem:update, +infra:infraServersOrgsDataBagsItem:delete, +infra:infraServersOrgsEnvironments:create, +infra:infraServersOrgsEnvironments:update, +infra:infraServersOrgsEnvironments:delete, +infra:infraServersOrgsNodes:update, +infra:infraServersOrgsNodes:delete, +infra:infraServersOrgsPolicyFiles:delete, +compliance:*, +event:*, +ingest:*, +secrets:*, +iam:projects:list, +iam:projects:get, +iam:projects:assign, +iam:policies:list, +iam:policies:get, +iam:policyMembers:*, +iam:teams:list, +iam:teams:get, +iam:teamUsers:*, +iam:users:get, +iam:users:list, +applications:* +```