• Sri's avatar
    Backend for Service Account Creation flow · 86a53b7e
    Sri authored
    - `BaseController` for all `google_cloud` requests
        - `GoogleCloudController` extends `BaseController`
    
    - `ServiceAccountsController`
        - Perform Google OAuth2 on access
        - Flash alert on decline
    
    - `ServiceAccounts # index` renders ID placeholder to show form
        - User's GCP projects are fetched
        - If `cloudresourcemanager` API is enabled, else alert user
            - Alert if no GCP projects found for user
        - Render `gcp_projects` and project `environments` for vue component
    
    - `ServiceAccounts # create` creates service accounts
        - If `iam` API is enabled, else alert user
        - Receives selected GCP project and Environment from form submission
        - Creates service account and service account key
        - Stores GCP project id, service account and key as project CI vars
        - Redirect to `project/google_cloud` main page
    86a53b7e
client_spec.rb 7.68 KB