מידע מעורפל בנושא קבצים רגישים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ערכת ה-SDK של המחבר מכילה פונקציונליות SensitiveDataCodec
שמאפשרת לכם לקודד ולפענח מידע בקובץ ההגדרות. כדי להסתיר מידע רגיש בקובץ התצורה:
מריצים את המחבר עם הפרמטרים -DsecurityLevel=OBFUSCATED
ו-com.google.enterprise.cloudsearch.sdk.config.SensitiveDataCodec
.
הפקודה הזו מבקשת את פרמטר ההגדרה הרגיש בקובץ ההגדרות, כמו פרמטר sharepoint.password
שמכיל סיסמה למקור נתונים.
java -DsecurityLevel=OBFUSCATED -cp google-cloudsearch-csv-connector-v1-0.0.5.jar com.google.enterprise.cloudsearch.sdk.config.SensitiveDataCodec
הפלט של הפקודה הזו הוא ערך מוצפן שדומה ל-obf:Pm1saUwfSUJb5sPblTjPUw==
.
בקובץ התצורה, מוסיפים את הערך המוסתר במקום המחרוזת הרגישה. לדוגמה:
sharepoint.password=obf:Pm1saUwfSUJb5sPblTjPUw==
אפשר גם להשתמש בזוג מפתחות עם מפתחות משלכם מ-Java Keystore. לדוגמה:
java -DsecurityLevel=ENCRYPTED -Djavax.net.ssl.keyStore=encryptKeyStore.jks -Djavax.net.ssl.keyStorePassword=testtest -Djavax.net.ssl.keyStoreType=JKS -Dalias=testkeypair -cp google-cloudsearch-csv-connector-v1-0.0.5.jar com.google.enterprise.cloudsearch.sdk.config.SensitiveDataCodec
אם אתם משתמשים במפתחות משלכם, אתם צריכים להעביר פרמטרים דומים כשאתם מפעילים את המחבר.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-29 (שעון UTC)."],[],[],null,["# Obfuscate sensitive configuration file information\n\nThe connector SDK contains `SensitiveDataCodec` functionality allowing you to\nencode and decode information your configuration file. To obfuscate\nsensitive information in your configuration file:\n\n1. Run your connector with the `-DsecurityLevel=OBFUSCATED` and\n `com.google.enterprise.cloudsearch.sdk.config.SensitiveDataCodec` parameters.\n This command requests the sensitive configuration parameter in your\n configuration file, such as a `sharepoint.password` parameter containing a\n password to a data source.\n\n java -DsecurityLevel=OBFUSCATED -cp google-cloudsearch-csv-connector-v1-0.0.5.jar com.google.enterprise.cloudsearch.sdk.config.SensitiveDataCodec\n\n This command outputs an obfuscated value similar to `obf:Pm1saUwfSUJb5sPblTjPUw==`.\n2. In your configuration file, add the obfuscated value in place of the\n sensitive string. For example:\n\n sharepoint.password=obf:Pm1saUwfSUJb5sPblTjPUw==\n\nYou can also use a key pair with your own keys from Java Keystore. For example: \n\n java -DsecurityLevel=ENCRYPTED -Djavax.net.ssl.keyStore=encryptKeyStore.jks -Djavax.net.ssl.keyStorePassword=testtest -Djavax.net.ssl.keyStoreType=JKS -Dalias=testkeypair -cp google-cloudsearch-csv-connector-v1-0.0.5.jar com.google.enterprise.cloudsearch.sdk.config.SensitiveDataCodec\n\nIf you are using your own keys, you must pass similar parameters while\nrunning your connector."]]