GitXplorerGitXplorer
l

demo-dataset-access

public
0 stars
0 forks
5 issues

Commits

List of commits on branch master.
Unverified
021dddcaadd15bfab7f4ca584cc67d55a7760cdb

Fixing bug with conditions

committed 5 years ago
Unverified
80d2c0c1599af3efa300747e413e1f9a2876ca71

Merge branch 'master' of https://github.com/leighajarett/demo-dataset-access

committed 5 years ago
Unverified
831e78b3dd95cba84e830ce9e86a5175d27145f7

Modifying the gcloud ignoe

committed 5 years ago
Verified
9835b146b9206dffa3185637ceb25b86394ffe77

Rename Main.py to main.py

lleighajarett committed 5 years ago
Unverified
efca0fe0a0bee58a047aaac2cb72a55a32f0547c

Modifying the readme

committed 5 years ago
Unverified
55426ed2c42c4c5fdf3e5caac62861c5ad902935

refreshed ignored files.

committed 5 years ago

README

The README file for this repository.

demo-dataset-access

Cloud function, for granting temporary credentials / scratch schema for connecting to a Looker Instance. For use in an internal Google Apps Script that is triggered by a Form submission witht the necessary information. An email is then sent to the submitter with details on how to to setup the connection.

  1. Validate the request
  2. Creates a Service Account if one for that request does not already exist
  3. Creates a Scratch Dataset if one for that request does not already exist
  4. Update the policy for the service account so that it has the trialuser role for the number of weeks specified in the request
  5. Create a Cloud Secret with the JSON key for the Serice Account
  6. Update the policy for the secret so that the submitter has view capabilities
  7. Return the scratch dataset name, the SA email, the date the permissions expire, and a link to view the secret in Google Cloud Coneole