{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by Anup Rai · Feb 24 at 07:41 AM · 17 Views apigeehybirdsecrets

Storing data in a Kubernetes secret

We are using Kubernetes secret to store API sensitive data like target client Id, secrets and credentials and we are reading this in API Proxies in Apigee Hybrid.


We referred below documentation to create the secrets -

https://cloud.google.com/apigee/docs/hybrid/v1.3/k8s-secrets

1) We deleted the secrets completely but still proxy was getting the secret values. Are the pods caching these secrets? If yes, what is the ttl for this cache. Is this ttl value configurable?

2) We have given the properties file names as upper and lower case mixed but policies are expecting the file names in all lower case. Is this expected?

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
1
Best Answer

Answer by dane knezic   · Feb 24 at 08:15 AM

RE 1, you will need to restart the pods

RE 2 Do you have a specific example of how you're using it in a policy?

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Anup Rai · Feb 24 at 09:43 AM 0
Link

I have created a properties file like below -

SampleTest.properties

api-key=secret-key

I am trying to read the value using Assign message policy like below -

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AssignMessage async="false" continueOnError="false" enabled="true" name="AM-ExtractSecret">
    <DisplayName>AM-ExtractSecret</DisplayName>
    <Properties/>
    <AssignVariable>
        <Name>apikey</Name>
        <Ref>private.secret.SampleTest.properties.api-key</Ref>
    </AssignVariable>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
    <AssignTo createNew="false" transport="http" type="request"/>
</AssignMessage>

This throws an error as unresolved variable. But when I give the file name in AM policy in smaller case then it works -

<Ref>private.secret.sampletest.properties.api-key</Ref>
avatar image Anup Rai Anup Rai · Feb 24 at 01:30 PM 0
Link

There is a note added in Apigee docs -

https://cloud.google.com/apigee/docs/hybrid/v1.3/k8s-secrets#retrieving-data-from-a-secret

Note: This filename must be in lowercase letters.

Follow this Question

Answers Answers and Comments

67 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

is there a page for updates on Apigee service or API availability , announcements, service bulletins? 1 Answer

how to create single proxy for multiple api2 controller 0 Answers

Apigee Edge - 4MV4D - SOAP - REST - Custom Logic 1 Answer

Coursera Training: API Design and Fundamentals of Google Cloud's Apigee API Platform: Week 1: First (Setup) Lab faild 1 Answer

how do we control multiple device login? 3 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Articles
  • Ideas
  • Badges