Skip to content

Commit

Permalink
Tokens are a risk to display on an unprotected system (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesv authored Jul 22, 2017
1 parent 33210e3 commit fd0ef5c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ public class GaeInfoServlet extends HttpServlet {
"/computeMetadata/v1/instance/service-accounts/default/aliases",
"/computeMetadata/v1/instance/service-accounts/default/",
"/computeMetadata/v1/instance/service-accounts/default/scopes",
"/computeMetadata/v1/instance/service-accounts/default/token",
// Tokens work - but are a security risk to display
// "/computeMetadata/v1/instance/service-accounts/default/token"
};

final String[] v1Acct = {
"/computeMetadata/v1/instance/service-accounts/{account}/aliases",
"/computeMetadata/v1/instance/service-accounts/{account}/email",
"/computeMetadata/v1/instance/service-accounts/{account}/scopes",
"/computeMetadata/v1/instance/service-accounts/{account}/token"
// Tokens work - but are a security risk to display
// "/computeMetadata/v1/instance/service-accounts/{account}/token"
};

final String metadata = "http://metadata.google.internal";
Expand Down

0 comments on commit fd0ef5c

Please sign in to comment.