Skip to content

Commit 21c141a

Browse files
jlara310lesv
authored andcommitted
Restrict the export url to admins and cron jobs (GoogleCloudPlatform#1442)
1 parent 2d215ab commit 21c141a

File tree

1 file changed

+9
-0
lines changed
  • appengine-java8/datastore-schedule-export/src/main/webapp/WEB-INF

1 file changed

+9
-0
lines changed

appengine-java8/datastore-schedule-export/src/main/webapp/WEB-INF/web.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,13 @@
66
<welcome-file-list>
77
<welcome-file>index.jsp</welcome-file>
88
</welcome-file-list>
9+
<security-constraint>
10+
<web-resource-collection>
11+
<web-resource-name>export</web-resource-name>
12+
<url-pattern>/cloud-datastore-export</url-pattern>
13+
</web-resource-collection>
14+
<auth-constraint>
15+
<role-name>admin</role-name>
16+
</auth-constraint>
17+
</security-constraint>
918
</web-app>

0 commit comments

Comments
 (0)